CVE-2023-34042
Spring Security's spring-security.xsd file is world writable
Reported by vmware · Published February 5, 2024
spring-security-core is fixed in 6.1.4, 6.0.7, 5.8.7 and 1 more (Maven Central)
The spring-security.xsd file inside the spring-security-config jar is world writable which means that if it were extracted it could be written by anyone with access to the file system. While there are no known exploits, this is an example of “CWE-732: Incorrect Permission Assignment for Critical Resource” and could result in an exploit. Users should update to the latest version of Spring Security to mitigate any future exploits found around this issue.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.springframework.security:spring-security-core | Maven Central | 6.1.4, 6.0.7, 5.8.7, 5.7.10 |
| org.springframework.security:spring-security-config | Maven Central | 6.1.4, 6.0.7, 5.8.7, 5.7.11 |
| spring_security | vmware | 6.1.4, 6.0.7, 5.8.7 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| N/A | Spring Security | Spring Security 6.1.x prior to 6.1.4, Spring Security 6.0.x prior to 6.0.7, Spring Security 5.8.x prior to 5.8.7, Spring Security 5.7.x prior to 5.7.11 |
| Maven | org.springframework.security:spring-security-core | 5.7.9, 6.1.1, 6.0.4 |
| N/A | Spring Security | Spring Security 6.1.x prior to 6.1.4, Spring Security 6.0.x prior to 6.0.7, Spring Security 5.8.x prior to 5.8.7, Spring Security 5.7.x prior to 5.7.11 |
| Maven | org.springframework.security:spring-security-config | 6.1.1, 5.7.9, 5.8.4 |
Timeline
- Sep 18, 2023 CVE Published
- Feb 6, 2024 PoC Published (2 in total, the first dated here)
- Feb 8, 2024 EPSS Score (30 in total, the first dated here)
- Feb 12, 2024 CVE Updated
- Mar 17, 2026 Security Advisory
- Aug 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-34042
vulnetix vdb fixes CVE-2023-34042
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-34042/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/advisories/GHSA-9gp8-6cg8-7h34 advisory
- https://github.com/spring-projects/spring-security/commit/5b293d21161e946bf241d9e974b9af93cfafaaac patch
- https://github.com/spring-projects/spring-security url
- https://security.netapp.com/advisory/ntap-20241129-0010 advisory
- https://nvd.nist.gov/vuln/detail/CVE-2023-34042 advisory
- https://security.netapp.com/advisory/ntap-20241129-0010/ url