{"answers":{"affected":"4 open source packages ship an affected version, including org.springframework.security:spring-security-core. It affects 1 product.","exploited":"There is no known exploitation of CVE-2011-2731 in the wild and no public exploit code.","fix":"Upgrade org.springframework.security:spring-security-core to a fixed version for your release line: 2.0.7 or 3.0.6.","what":"CVE-2011-2731 is a medium-severity vulnerability in n/a, published on 5 Dec 2012. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2011-2731 and fix it if it is affected.\n\nWhat it is: CVE-2011-2731 is a medium-severity vulnerability in n/a, published on 5 Dec 2012. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2011-2731 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 2.0.7\n- org.springframework.security:spring-security-core (Maven): affected all versions; fixed in 2.0.7\n- org.springframework.security:spring-security-core (Maven): affected from 3.0.0; fixed in 3.0.6\n- org.springframework.security:spring-security-core (Maven): affected from 3.0.0; fixed in 3.0.6\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-2011-2731/ (Markdown: https://insights.sbomify.com/CVE-2011-2731/index.md)","id":"CVE-2011-2731","markdown":"https://insights.sbomify.com/CVE-2011-2731/index.md","name":"CVE-2011-2731","record":{"aliases":["GHSA-4644-hg35-55m9"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Spring Security library","requires_auth":"low_privilege","summary":"A race condition in Spring Security allows attackers to gain privileges by exploiting shared authentication contexts in concurrent threads.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"springsource_spring_security","vendor":"vmware"}],"cvss":{"score":5.1,"severity":"medium","source":"nvd","vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","version":"2.0"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"description":"Race condition in the RunAsManager mechanism in VMware SpringSource Spring Security before 2.0.7 and 3.0.x before 3.0.6 stores the Authentication object in the shared security context, which allows attackers to gain privileges via a crafted thread.","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":"Concurrent Execution using Shared Resource with Improper Synchronization in Spring Security","id":"CVE-2011-2731","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"race_condition","year":"2011"},"n_packages":4,"n_references":4,"next":{"headline":"Improper Control of Generation of Code in Spring Security","id":"CVE-2011-2732"},"packages":[{"ecosystem":"Maven","fixed":["2.0.7"],"introduced":["0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":null,"source":"GHSA-4644-hg35-55m9"},{"ecosystem":"Maven","fixed":["2.0.7"],"introduced":["0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","source":"GHSA-4644-hg35-55m9"},{"ecosystem":"Maven","fixed":["3.0.6"],"introduced":["3.0.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":null,"source":"GHSA-4644-hg35-55m9"},{"ecosystem":"Maven","fixed":["3.0.6"],"introduced":["3.0.0"],"last_affected":[],"package":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","source":"GHSA-4644-hg35-55m9"}],"prev":{"headline":"Improper Neutralization of Directives in Dynamically Evaluated Code in Spring Framework","id":"CVE-2011-2730"},"products":["n/a"],"published":"2012-12-05","related":[{"cvss_score":5,"headline":"Exposure of Sensitive Information to an Unauthorized Actor in Spring Security","id":"CVE-2012-5055","kev_date_added":null,"published":"2012-12-05"},{"cvss_score":4.3,"headline":"Improper Control of Generation of Code in Spring Security","id":"CVE-2011-2732","kev_date_added":null,"published":"2012-12-05"}],"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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"A race condition in Spring Security allows attackers to gain privileges by exploiting shared authentication contexts in concurrent threads.","url":"https://insights.sbomify.com/CVE-2011-2731/"}