CVE-2023-34042
Spring Security's spring-security.xsd file is world writable
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- High
- Privileges needed
- High
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
4.1
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.
- Record
CVE-2023-34042- CVSS 3.1
- 4.1 Medium
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-732
- Updated
- 2026-11-02
EUVDEUVD-2024-0595
4.1
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.
- Record
EUVD-2024-0595- CVSS 3.1
- 4.1 Medium
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-9gp8-6cg8-7h34
5.5
Spring Security's spring-security.xsd file is world writable
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.
- Record
GHSA-9gp8-6cg8-7h34- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-732
- Updated
- 2026-11-02
NVD
4.1
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.
- Record
CVE-2023-34042- CVSS 3.1
- 4.1 Medium
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N - CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-732
- Updated
- 2026-11-02
OSV
4.1
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.
- Record
CVE-2023-34042- CVSS 3.1
- 4.1 Medium
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVGHSA-9gp8-6cg8-7h34
5.5
Spring Security's spring-security.xsd file is world writable
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.
- Record
GHSA-9gp8-6cg8-7h34- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-732
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
org.springframework.security:spring-security-configMaven |
6.1.1 to 6.1.3 | 6.1.4 |
org.springframework.security:spring-security-configMaven |
6.0.4 to 6.0.6 | 6.0.7 |
org.springframework.security:spring-security-configMaven |
5.8.4 to 5.8.6 | 5.8.7 |
org.springframework.security:spring-security-configMaven |
5.7.9 to 5.7.10 | 5.7.11 |
org.springframework.security:spring-security-configMaven |
6.1.1 up to 6.1.4, plus listed versions 6.1.26.1.3 |
6.1.4 |
org.springframework.security:spring-security-configMaven |
6.0.4 up to 6.0.7, plus listed versions 6.0.56.0.6 |
6.0.7 |
org.springframework.security:spring-security-configMaven |
5.8.4 up to 5.8.7, plus listed versions 5.8.55.8.6 |
5.8.7 |
org.springframework.security:spring-security-configMaven |
5.7.9 up to 5.7.11, plus listed versions 5.7.10 |
5.7.11 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-34042 is a medium vulnerability (CVSS 4.1) in Spring Security, published February 5, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.24%, the 15th percentile. Fixed in org.springframework.security:spring-security-config 6.1.4.
References
spring.io/security/cve-2023-34042
security.netapp.com/advisory/ntap-20241129-0010
nvd.nist.gov/vuln/detail/CVE-2023-34042
github.com/spring-projects/spring-security/commit/5b293d21161e946bf241d9e974b9af93cfafaaac
github.com/advisories/GHSA-9gp8-6cg8-7h34
github.com/CVEProject/cvelistV5/tree/main/cves/2023/34xxx/CVE-2023-34042.json
github.com/spring-projects/spring-security