{"answers":{"affected":"12 open source packages ship an affected version, including org.springframework.security:spring-security-bom and org.springframework.security:spring-security-web. It affects 8 products.","exploited":"There is no known exploitation of CVE-2021-22112 in the wild and no public exploit code.","fix":"Upgrade org.springframework.security:spring-security-bom to a fixed version for your release line: 5.2.9, 5.3.8 or 5.4.4.","what":"CVE-2021-22112 is a high-severity vulnerability in Oracle Communications Element Manager, published on 23 Feb 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-22112 and fix it if it is affected.\n\nWhat it is: CVE-2021-22112 is a high-severity vulnerability in Oracle Communications Element Manager, published on 23 Feb 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-22112 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.springframework.security:spring-security-bom (Maven): affected all versions; fixed in 5.2.9\n- org.springframework.security:spring-security-bom (Maven): affected all versions; fixed in 5.2.9\n- org.springframework.security:spring-security-bom (Maven): affected from 5.3.0; fixed in 5.3.8\n- org.springframework.security:spring-security-bom (Maven): affected from 5.3.0; fixed in 5.3.8\n- org.springframework.security:spring-security-bom (Maven): affected from 5.4.0; fixed in 5.4.4\n- org.springframework.security:spring-security-bom (Maven): affected from 5.4.0; fixed in 5.4.4\n- org.springframework.security:spring-security-web (Maven): affected all versions; fixed in 5.2.9\n- org.springframework.security:spring-security-web (Maven): affected all versions; fixed in 5.2.9\n- org.springframework.security:spring-security-web (Maven): affected from 5.3.0; fixed in 5.3.8\n- org.springframework.security:spring-security-web (Maven): affected from 5.3.0; fixed in 5.3.8\n- org.springframework.security:spring-security-web (Maven): affected from 5.4.0; fixed in 5.4.4\n- org.springframework.security:spring-security-web (Maven): affected from 5.4.0; fixed in 5.4.4\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-2021-22112/ (Markdown: https://insights.sbomify.com/CVE-2021-22112/index.md)","id":"CVE-2021-22112","markdown":"https://insights.sbomify.com/CVE-2021-22112/index.md","name":"CVE-2021-22112","record":{"aliases":["GHSA-gq28-h5vg-8prx","ROOT-APP-MAVEN-CVE-2021-22112"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Java security library","requires_auth":"low_privilege","summary":"Spring Security fails to save SecurityContext changes, allowing attackers to extend elevated privileges across the application if specific coding patterns are present.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[{"product":"communications_element_manager","vendor":"oracle"},{"product":"communications_interactive_session_recorder","vendor":"oracle"},{"product":"communications_unified_inventory_management","vendor":"oracle"},{"product":"hospitality_cruise_shipboard_property_management_system","vendor":"oracle"},{"product":"insurance_policy_administration","vendor":"oracle"},{"product":"mysql_enterprise_monitor","vendor":"oracle"},{"product":"spring_security","vendor":"pivotal_software"},{"product":"spring_security","vendor":"vmware"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"Spring Security 5.4.x prior to 5.4.4, 5.3.x prior to 5.3.8.RELEASE, 5.2.x prior to 5.2.9.RELEASE, and older unsupported versions can fail to save the SecurityContext if it is changed more than once in a single request.A malicious user cannot cause the bug to happen (it must be programmed in). However, if the application's intent is to only allow the user to run with elevated privileges in a small portion of the application, the bug can be leveraged to extend those privileges to the rest of the application.","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":"Privilege escalation in spring security","id":"CVE-2021-22112","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"oracle:communications_element_manager","products":["oracle:communications_element_manager","oracle:communications_unified_inventory_management","oracle:mysql_enterprise_monitor"],"type":"privilege_escalation","year":"2021"},"n_packages":12,"n_references":15,"next":{"headline":"Incorrect Authorization in Spring Cloud Netflix Zuul","id":"CVE-2021-22113"},"packages":[{"ecosystem":"Maven","fixed":["5.2.9"],"introduced":["0"],"last_affected":[],"package":"org.springframework.security:spring-security-bom","purl":null,"source":"GHSA-gq28-h5vg-8prx"},{"ecosystem":"Maven","fixed":["5.2.9"],"introduced":["0"],"last_affected":[],"package":"org.springframework.security:spring-security-bom","purl":"pkg:maven/org.springframework.security/spring-security-bom","source":"GHSA-gq28-h5vg-8prx"},{"ecosystem":"Maven","fixed":["5.3.8"],"introduced":["5.3.0"],"last_affected":[],"package":"org.springframework.security:spring-security-bom","purl":null,"source":"GHSA-gq28-h5vg-8prx"},{"ecosystem":"Maven","fixed":["5.3.8"],"introduced":["5.3.0"],"last_affected":[],"package":"org.springframework.security:spring-security-bom","purl":"pkg:maven/org.springframework.security/spring-security-bom","source":"GHSA-gq28-h5vg-8prx"},{"ecosystem":"Maven","fixed":["5.4.4"],"introduced":["5.4.0"],"last_affected":[],"package":"org.springframework.security:spring-security-bom","purl":null,"source":"GHSA-gq28-h5vg-8prx"},{"ecosystem":"Maven","fixed":["5.4.4"],"introduced":["5.4.0"],"last_affected":[],"package":"org.springframework.security:spring-security-bom","purl":"pkg:maven/org.springframework.security/spring-security-bom","source":"GHSA-gq28-h5vg-8prx"},{"ecosystem":"Maven","fixed":["5.2.9"],"introduced":["0"],"last_affected":[],"package":"org.springframework.security:spring-security-web","purl":null,"source":"GHSA-gq28-h5vg-8prx"},{"ecosystem":"Maven","fixed":["5.2.9"],"introduced":["0"],"last_affected":[],"package":"org.springframework.security:spring-security-web","purl":"pkg:maven/org.springframework.security/spring-security-web","source":"GHSA-gq28-h5vg-8prx"},{"ecosystem":"Maven","fixed":["5.3.8"],"introduced":["5.3.0"],"last_affected":[],"package":"org.springframework.security:spring-security-web","purl":null,"source":"GHSA-gq28-h5vg-8prx"},{"ecosystem":"Maven","fixed":["5.3.8"],"introduced":["5.3.0"],"last_affected":[],"package":"org.springframework.security:spring-security-web","purl":"pkg:maven/org.springframework.security/spring-security-web","source":"GHSA-gq28-h5vg-8prx"},{"ecosystem":"Maven","fixed":["5.4.4"],"introduced":["5.4.0"],"last_affected":[],"package":"org.springframework.security:spring-security-web","purl":null,"source":"GHSA-gq28-h5vg-8prx"},{"ecosystem":"Maven","fixed":["5.4.4"],"introduced":["5.4.0"],"last_affected":[],"package":"org.springframework.security:spring-security-web","purl":"pkg:maven/org.springframework.security/spring-security-web","source":"GHSA-gq28-h5vg-8prx"}],"prev":{"headline":"Denial of service in Cloud Foundry Cloud Controller","id":"CVE-2021-22101"},"products":["Spring Security"],"published":"2021-02-23","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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Spring Security fails to save SecurityContext changes, allowing attackers to extend elevated privileges across the application if specific coding patterns are present.","url":"https://insights.sbomify.com/CVE-2021-22112/"}