CVE-2023-34042
Spring Security's spring-security.xsd file is world writable
Description
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.security » spring-security-config | >= 5.7.9, < 5.7.11>= 5.8.4, < 5.8.7>= 6.0.4, < 6.0.7>= 6.1.1, < 6.1.4 | 5.7.11, 5.8.7, 6.0.7, 6.1.4 |
Blast radius
9% of the dependent artifacts (91) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 546 |
| 2 hops | 3,594 |
| 3 hops | 1,498 |
| 4 hops | 304 |
| 5 hops | 107 |
| 6 hops | 11 |
Most used dependents
- org.springframework.boot » spring-boot-starter-security3,622 usages
- org.springframework.boot » spring-boot-starter-oauth2-resource-server471 usages
- org.springframework.boot » spring-boot-starter-oauth2-client447 usages
- org.geoserver » gs-main299 usages
- org.geoserver.web » gs-web-core194 usages
- org.springframework.cloud.stream.app » stream-applications-security-common135 usages
- org.springframework.security » spring-security-oauth2-authorization-server105 usages
- org.geoserver » gs-wms103 usages
- org.geoserver » gs-wfs75 usages
- org.geoserver » gs-restconfig60 usages
- org.geoserver.extension » gs-wps-core52 usages
- org.geoserver » gs-rest45 usages
- org.geoserver » gs-gwc38 usages
- org.geoserver.web » gs-web-sec-core36 usages
- org.apache.camel » camel-spring-security30 usages
Computed from the dependency graph of build 20261201.0702 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2023-34042 | nvd.nist.gov |
| Package | spring-projects/spring-security | github.com |
| Web | spring-projects/spring-security commit 5b293d2 | github.com |
| Web | advisory/ntap-20241129-0010 | security.netapp.com |
| Web | security/cve-2023-34042 | spring.io |
