{"answers":{"affected":"8 open source packages ship an affected version, including org.springframework.security:spring-security-config. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-34042 in the wild and no public exploit code.","fix":"Upgrade org.springframework.security:spring-security-config to a fixed version for your release line: 5.7.11, 5.8.7, 6.0.7 or 6.1.4.","what":"CVE-2023-34042 is a medium-severity vulnerability in Spring Security, published on 5 Feb 2024. 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-2023-34042 and fix it if it is affected.\n\nWhat it is: CVE-2023-34042 is a medium-severity vulnerability in Spring Security, published on 5 Feb 2024. 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-2023-34042 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.springframework.security:spring-security-config (Maven): affected from 5.7.9; fixed in 5.7.11\n- org.springframework.security:spring-security-config (Maven): affected from 5.7.9; fixed in 5.7.11\n- org.springframework.security:spring-security-config (Maven): affected from 5.8.4; fixed in 5.8.7\n- org.springframework.security:spring-security-config (Maven): affected from 5.8.4; fixed in 5.8.7\n- org.springframework.security:spring-security-config (Maven): affected from 6.0.4; fixed in 6.0.7\n- org.springframework.security:spring-security-config (Maven): affected from 6.0.4; fixed in 6.0.7\n- org.springframework.security:spring-security-config (Maven): affected from 6.1.1; fixed in 6.1.4\n- org.springframework.security:spring-security-config (Maven): affected from 6.1.1; fixed in 6.1.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-2023-34042/ (Markdown: https://insights.sbomify.com/CVE-2023-34042/index.md)","id":"CVE-2023-34042","markdown":"https://insights.sbomify.com/CVE-2023-34042/index.md","name":"CVE-2023-34042","record":{"aliases":["GHSA-9gp8-6cg8-7h34"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Spring Security library","requires_auth":"high_privilege","summary":"A world-writable configuration file in Spring Security allows local attackers to modify it, potentially leading to future exploits.","user_interaction":"not_required","vuln_class":"misconfiguration"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[{"product":"spring_security","vendor":"vmware"}],"cvss":{"score":4.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"}],"description":"The spring-security.xsd file inside the \nspring-security-config jar is world writable which means that if it were\n extracted it could be written by anyone with access to the file system.\n\nWhile there are no known exploits, this is an example of “CWE-732: \nIncorrect Permission Assignment for Critical Resource” and could result \nin an exploit. Users should update to the latest version of Spring \nSecurity to mitigate any future exploits found around this issue.","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's spring-security.xsd file is world writable","id":"CVE-2023-34042","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"misconfiguration","year":"2023"},"n_packages":8,"n_references":1,"next":{"headline":"Privilege escalation in VMware Aria Operations","id":"CVE-2023-34043"},"packages":[{"ecosystem":"Maven","fixed":["5.7.11"],"introduced":["5.7.9"],"last_affected":[],"package":"org.springframework.security:spring-security-config","purl":null,"source":"GHSA-9gp8-6cg8-7h34"},{"ecosystem":"Maven","fixed":["5.7.11"],"introduced":["5.7.9"],"last_affected":[],"package":"org.springframework.security:spring-security-config","purl":"pkg:maven/org.springframework.security/spring-security-config","source":"GHSA-9gp8-6cg8-7h34"},{"ecosystem":"Maven","fixed":["5.8.7"],"introduced":["5.8.4"],"last_affected":[],"package":"org.springframework.security:spring-security-config","purl":null,"source":"GHSA-9gp8-6cg8-7h34"},{"ecosystem":"Maven","fixed":["5.8.7"],"introduced":["5.8.4"],"last_affected":[],"package":"org.springframework.security:spring-security-config","purl":"pkg:maven/org.springframework.security/spring-security-config","source":"GHSA-9gp8-6cg8-7h34"},{"ecosystem":"Maven","fixed":["6.0.7"],"introduced":["6.0.4"],"last_affected":[],"package":"org.springframework.security:spring-security-config","purl":null,"source":"GHSA-9gp8-6cg8-7h34"},{"ecosystem":"Maven","fixed":["6.0.7"],"introduced":["6.0.4"],"last_affected":[],"package":"org.springframework.security:spring-security-config","purl":"pkg:maven/org.springframework.security/spring-security-config","source":"GHSA-9gp8-6cg8-7h34"},{"ecosystem":"Maven","fixed":["6.1.4"],"introduced":["6.1.1"],"last_affected":[],"package":"org.springframework.security:spring-security-config","purl":null,"source":"GHSA-9gp8-6cg8-7h34"},{"ecosystem":"Maven","fixed":["6.1.4"],"introduced":["6.1.1"],"last_affected":[],"package":"org.springframework.security:spring-security-config","purl":"pkg:maven/org.springframework.security/spring-security-config","source":"GHSA-9gp8-6cg8-7h34"}],"prev":{"headline":"CVE-2023-34041-Abuse of HTTP Hop-by-Hop Headers in Cloud Foundry Gorouter","id":"CVE-2023-34041"},"products":["Spring Security"],"published":"2024-02-05","related":[{"cvss_score":9.8,"headline":"Authorization Bypass in Spring Security","id":"CVE-2014-3527","kev_date_added":null,"published":"2017-05-25"},{"cvss_score":9.6,"headline":"Spring Security OAuth2 Authorization Server: Insufficient validation of Dynamic Client Registration metadata","id":"CVE-2026-59354","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":9.4,"headline":"Spring Security embedded UnboundID LDAP server exposes well-known administrative bind DN on all network interfaces","id":"CVE-2026-59270","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":9.1,"headline":"Under Some Conditions Spring Security HTTP Headers Are not Written","id":"CVE-2026-22732","kev_date_added":null,"published":"2026-03-19"},{"cvss_score":9.1,"headline":"Access Control Bypass in Spring Security","id":"CVE-2023-34034","kev_date_added":null,"published":"2023-07-19"},{"cvss_score":8.2,"headline":"Spring Security Authorization Server Default Consent Page is vulnerable to Cross-Site Scripting (XSS)","id":"CVE-2026-47877","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":8.1,"headline":"Deserialization of Untrusted Data in Spring Security","id":"CVE-2017-4995","kev_date_added":null,"published":"2017-11-27"}],"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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-06-03","vendors":["N/A"]},"summary":"A world-writable configuration file in Spring Security allows local attackers to modify it, potentially leading to future exploits.","url":"https://insights.sbomify.com/CVE-2023-34042/"}