{"answers":{"affected":"12 open source packages ship an affected version, including org.springframework.security:spring-security-core.","exploited":"There is no known exploitation of CVE-2024-38827 in the wild and no public exploit code.","fix":"Upgrade org.springframework.security:spring-security-core to a fixed version for your release line: 5.7.14, 5.8.16, 6.0.14 or 6.1.12.","what":"CVE-2024-38827 is a medium-severity authentication bypass vulnerability in Spring Security, published on 2 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-38827 and fix it if it is affected.\n\nWhat it is: CVE-2024-38827 is a medium-severity authentication bypass vulnerability in Spring Security, published on 2 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-38827 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.springframework.security:spring-security-core (Maven): affected all versions; fixed in 5.7.14\n- org.springframework.security:spring-security-core (Maven): affected all versions; fixed in 5.7.14\n- org.springframework.security:spring-security-core (Maven): affected from 5.8.0; fixed in 5.8.16\n- org.springframework.security:spring-security-core (Maven): affected from 5.8.0; fixed in 5.8.16\n- org.springframework.security:spring-security-core (Maven): affected from 6.0.0; fixed in 6.0.14\n- org.springframework.security:spring-security-core (Maven): affected from 6.0.0; fixed in 6.0.14\n- org.springframework.security:spring-security-core (Maven): affected from 6.1.0; fixed in 6.1.12\n- org.springframework.security:spring-security-core (Maven): affected from 6.1.0; fixed in 6.1.12\n- org.springframework.security:spring-security-core (Maven): affected from 6.2.0; fixed in 6.2.8\n- org.springframework.security:spring-security-core (Maven): affected from 6.2.0; fixed in 6.2.8\n- org.springframework.security:spring-security-core (Maven): affected from 6.3.0; fixed in 6.3.5\n- org.springframework.security:spring-security-core (Maven): affected from 6.3.0; fixed in 6.3.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-38827/ (Markdown: https://insights.sbomify.com/CVE-2024-38827/index.md)","id":"CVE-2024-38827","markdown":"https://insights.sbomify.com/CVE-2024-38827/index.md","name":"CVE-2024-38827","record":{"aliases":["CLEANSTART-2026-QB96901","ECHO-74b0-b853-7934","GHSA-q3v6-hm2v-pw99","ROOT-APP-MAVEN-CVE-2024-38827"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Spring Security library","requires_auth":"none","summary":"Attackers can bypass authorization rules due to locale-dependent string comparison flaws in Spring Security, potentially gaining unauthorized access.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[],"cvss":{"score":4.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"}],"description":"The usage of String.toLowerCase() and String.toUpperCase() has some Locale dependent exceptions that could potentially result in authorization rules not working properly.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Spring Security Authorization Bypass for Case Sensitive Comparisons","id":"CVE-2024-38827","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"auth_bypass","year":"2024"},"n_packages":12,"n_references":1,"next":{"headline":"CVE-2024-38828: DoS via Spring MVC controller method with byte[] parameter","id":"CVE-2024-38828"},"packages":[{"ecosystem":"Maven","fixed":["5.7.14"],"introduced":["0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":null,"source":"GHSA-q3v6-hm2v-pw99"},{"ecosystem":"Maven","fixed":["5.7.14"],"introduced":["0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","source":"GHSA-q3v6-hm2v-pw99"},{"ecosystem":"Maven","fixed":["5.8.16"],"introduced":["5.8.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":null,"source":"GHSA-q3v6-hm2v-pw99"},{"ecosystem":"Maven","fixed":["5.8.16"],"introduced":["5.8.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","source":"GHSA-q3v6-hm2v-pw99"},{"ecosystem":"Maven","fixed":["6.0.14"],"introduced":["6.0.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":null,"source":"GHSA-q3v6-hm2v-pw99"},{"ecosystem":"Maven","fixed":["6.0.14"],"introduced":["6.0.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","source":"GHSA-q3v6-hm2v-pw99"},{"ecosystem":"Maven","fixed":["6.1.12"],"introduced":["6.1.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":null,"source":"GHSA-q3v6-hm2v-pw99"},{"ecosystem":"Maven","fixed":["6.1.12"],"introduced":["6.1.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","source":"GHSA-q3v6-hm2v-pw99"},{"ecosystem":"Maven","fixed":["6.2.8"],"introduced":["6.2.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":null,"source":"GHSA-q3v6-hm2v-pw99"},{"ecosystem":"Maven","fixed":["6.2.8"],"introduced":["6.2.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","source":"GHSA-q3v6-hm2v-pw99"},{"ecosystem":"Maven","fixed":["6.3.5"],"introduced":["6.3.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":null,"source":"GHSA-q3v6-hm2v-pw99"},{"ecosystem":"Maven","fixed":["6.3.5"],"introduced":["6.3.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","source":"GHSA-q3v6-hm2v-pw99"}],"prev":{"headline":"CVE-2024-38826 Cloud Controller Denial of Service Attack","id":"CVE-2024-38826"},"products":["Spring Security"],"published":"2024-12-02","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-01-24","vendors":["Spring by VMware Tanzu"]},"summary":"Attackers can bypass authorization rules due to locale-dependent string comparison flaws in Spring Security, potentially gaining unauthorized access.","url":"https://insights.sbomify.com/CVE-2024-38827/"}