{"answers":{"affected":"4 open source packages ship an affected version, including org.springframework:spring-web. It affects 32 products.","exploited":"There is no known exploitation of CVE-2021-22118 in the wild and no public exploit code.","fix":"Upgrade org.springframework:spring-web to a fixed version for your release line: 5.2.15 or 5.3.7.","what":"CVE-2021-22118 is a high-severity vulnerability in Oracle Commerce Guided Search, published on 27 May 2021. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-22118 and fix it if it is affected.\n\nWhat it is: CVE-2021-22118 is a high-severity vulnerability in Oracle Commerce Guided Search, published on 27 May 2021. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-22118 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.springframework:spring-web (Maven): affected from 5.2.0; fixed in 5.2.15\n- org.springframework:spring-web (Maven): affected from 5.2.0; fixed in 5.2.15\n- org.springframework:spring-web (Maven): affected from 5.3.0; fixed in 5.3.7\n- org.springframework:spring-web (Maven): affected from 5.3.0; fixed in 5.3.7\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-22118/ (Markdown: https://insights.sbomify.com/CVE-2021-22118/index.md)","id":"CVE-2021-22118","markdown":"https://insights.sbomify.com/CVE-2021-22118/index.md","name":"CVE-2021-22118","record":{"aliases":["CLSA-2026-1792687946","GHSA-gfwj-fwqj-fp3v","UBUNTU-CVE-2021-22118"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["privilege_escalation","data_read","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Spring Framework","requires_auth":"low_privilege","summary":"A locally authenticated user can escalate privileges to read, modify, or overwrite files in Spring WebFlux applications by manipulating temporary storage directories.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[{"product":"hci","vendor":"netapp"},{"product":"management_services_for_element_software","vendor":"netapp"},{"product":"commerce_guided_search","vendor":"oracle"},{"product":"communications_brm_-_elastic_charging_engine","vendor":"oracle"},{"product":"communications_cloud_native_core_binding_support_function","vendor":"oracle"},{"product":"communications_cloud_native_core_policy","vendor":"oracle"},{"product":"communications_cloud_native_core_security_edge_protection_proxy","vendor":"oracle"},{"product":"communications_cloud_native_core_service_communication_proxy","vendor":"oracle"},{"product":"communications_cloud_native_core_unified_data_repository","vendor":"oracle"},{"product":"communications_diameter_intelligence_hub","vendor":"oracle"},{"product":"communications_element_manager","vendor":"oracle"},{"product":"communications_interactive_session_recorder","vendor":"oracle"},{"product":"communications_network_integrity","vendor":"oracle"},{"product":"communications_session_report_manager","vendor":"oracle"},{"product":"communications_session_route_manager","vendor":"oracle"},{"product":"communications_unified_inventory_management","vendor":"oracle"},{"product":"documaker","vendor":"oracle"},{"product":"enterprise_data_quality","vendor":"oracle"},{"product":"financial_services_analytical_applications_infrastructure","vendor":"oracle"},{"product":"healthcare_data_repository","vendor":"oracle"},{"product":"insurance_policy_administration","vendor":"oracle"},{"product":"insurance_rules_palette","vendor":"oracle"},{"product":"mysql_enterprise_monitor","vendor":"oracle"},{"product":"retail_assortment_planning","vendor":"oracle"},{"product":"retail_customer_management_and_segmentation_foundation","vendor":"oracle"},{"product":"retail_financial_integration","vendor":"oracle"},{"product":"retail_integration_bus","vendor":"oracle"},{"product":"retail_merchandising_system","vendor":"oracle"},{"product":"retail_order_broker","vendor":"oracle"},{"product":"retail_predictive_application_server","vendor":"oracle"},{"product":"utilities_testing_accelerator","vendor":"oracle"},{"product":"spring_framework","vendor":"vmware"}],"cvss":{"score":7.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"},{"id":"CWE-269","name":"Improper Privilege Management"}],"description":"In Spring Framework, versions 5.2.x prior to 5.2.15 and versions 5.3.x prior to 5.3.7, a WebFlux application is vulnerable to a privilege escalation: by (re)creating the temporary storage directory, a locally authenticated malicious user can read or modify files that have been uploaded to the WebFlux application, or overwrite arbitrary files with multipart request data.","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":"Improper Privilege Management in Spring Framework","id":"CVE-2021-22118","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"oracle:commerce_guided_search","products":["oracle:commerce_guided_search","oracle:communications_cloud_native_core_binding_support_function","oracle:communications_cloud_native_core_policy","oracle:communications_element_manager","oracle:communications_session_report_manager","oracle:communications_session_route_manager","oracle:communications_unified_inventory_management","oracle:financial_services_analytical_applications_infrastructure","oracle:mysql_enterprise_monitor","oracle:retail_customer_management_and_segmentation_foundation","oracle:retail_merchandising_system","vmware:spring_framework"],"type":"privilege_escalation","year":"2021"},"n_packages":4,"n_references":7,"next":{"headline":"Resource Exhaustion in Spring Security","id":"CVE-2021-22119"},"packages":[{"ecosystem":"Maven","fixed":["5.2.15"],"introduced":["5.2.0"],"last_affected":[],"package":"org.springframework:spring-web","purl":null,"source":"GHSA-gfwj-fwqj-fp3v"},{"ecosystem":"Maven","fixed":["5.2.15"],"introduced":["5.2.0"],"last_affected":[],"package":"org.springframework:spring-web","purl":"pkg:maven/org.springframework/spring-web","source":"GHSA-gfwj-fwqj-fp3v"},{"ecosystem":"Maven","fixed":["5.3.7"],"introduced":["5.3.0"],"last_affected":[],"package":"org.springframework:spring-web","purl":null,"source":"GHSA-gfwj-fwqj-fp3v"},{"ecosystem":"Maven","fixed":["5.3.7"],"introduced":["5.3.0"],"last_affected":[],"package":"org.springframework:spring-web","purl":"pkg:maven/org.springframework/spring-web","source":"GHSA-gfwj-fwqj-fp3v"}],"prev":{"headline":"Privilege escalation in RabbitMQ","id":"CVE-2021-22117"},"products":["Spring Framework"],"published":"2021-05-27","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":"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-03","vendors":["n/a"]},"summary":"A locally authenticated user can escalate privileges to read, modify, or overwrite files in Spring WebFlux applications by manipulating temporary storage directories.","url":"https://insights.sbomify.com/CVE-2021-22118/"}