CVE-2024-38827 is a medium-severity (CVSS 4.8) CWE-639 vulnerability in org.springframework.security:spring-security-core. A fix is available for org.springframework.security:spring-security-core — see the affected versions and patch details below.
Spring Framework has Authorization Bypass for Case Sensitive Comparisons
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2024-38827.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.springframework.security:spring-security-core☕org.springframework.security:spring-security-core☕org.springframework.security:spring-security-core☕org.springframework.security:spring-security-core☕org.springframework.security:spring-security-core☕org.springframework.security:spring-security-coreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
The usage of String.toLowerCase() and String.toUpperCase() has some Locale dependent exceptions that could potentially result in authorization rules not working properly.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.springframework.security:spring-security-core | all versions | 5.7.14org.springframework.security:spring-security-core:5.7.14 |
| ☕Maven | org.springframework.security:spring-security-core | ≥ 5.8.0&&< 5.8.16 | 5.8.16org.springframework.security:spring-security-core:5.8.16 |
| ☕Maven | org.springframework.security:spring-security-core | ≥ 6.0.0&&< 6.0.14 | 6.0.14org.springframework.security:spring-security-core:6.0.14 |
| ☕Maven | org.springframework.security:spring-security-core | ≥ 6.1.0&&< 6.1.12 | 6.1.12org.springframework.security:spring-security-core:6.1.12 |
| ☕Maven | org.springframework.security:spring-security-core | ≥ 6.2.0&&< 6.2.8 | 6.2.8org.springframework.security:spring-security-core:6.2.8 |
| ☕Maven | org.springframework.security:spring-security-core | ≥ 6.3.0&&< 6.3.5 | 6.3.5org.springframework.security:spring-security-core:6.3.5 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.springframework.security:spring-security-core, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.springframework.security:spring-security-core to 5.7.14 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-38827 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Moderate impact: CVE-2024-38827 affects Red Hat products that include the vulnerable Spring Security core code. In certain locale-sensitive environments, String.toLowerCase() or String.toUpperCase() can perform case conversion differently than authorization comparisons expect, causing authorization rules to be…
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.Source: Red Hat security advisory for CVE-2024-38827 (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| OpenShift Developer Tools and Services 4.12 | ocp-tools-4/jenkins-rhel8:1792044326 | RHSA-2026:88152 |
| OpenShift Developer Tools and Services 4.13 | ocp-tools-4/jenkins-rhel8:1792044327 | RHSA-2026:88149 |
| OpenShift Developer Tools and Services 4.14 | ocp-tools-4/jenkins-rhel8:1792044382 | RHSA-2026:88151 |
| OpenShift Developer Tools and Services 4.15 | ocp-tools-4/jenkins-rhel8:1792044386 | RHSA-2026:88150 |
| OpenShift Developer Tools and Services 4.16 | ocp-tools-4/jenkins-rhel9:1792040287 | RHSA-2026:88156 |
| OpenShift Developer Tools and Services 4.17 | ocp-tools-4/jenkins-rhel9:1792040131 | RHSA-2026:88159 |
| OpenShift Developer Tools and Services 4.18 | ocp-tools-4/jenkins-rhel9:1792041514 | RHSA-2026:88153 |
| OpenShift Developer Tools and Services 4.19 | ocp-tools-4/jenkins-rhel9:1792040733 | RHSA-2026:88158 |
Frequently Asked Questions
Is CVE-2024-38827 in your dependencies?
Find it across Maven, including transitive dependencies.