CVE-2024-22236: local information disclosure via temporary directory created with unsafe permissions
Description
In Spring Cloud Contract, versions 4.1.x prior to 4.1.1, versions 4.0.x prior to 4.0.5, and versions 3.1.x prior to 3.1.10, test execution is vulnerable to local information disclosure via temporary directory created with unsafe permissions through the shaded com.google.guava:guava dependency in the org.springframework.cloud:spring-cloud-contract-shade dependency.
Affected Spring Products and Versions
- Spring Cloud Contract
- 4.1.0
- 4.0.0 to 4.0.5
- 3.1.0 to 3.1.10
Mitigation
Upgrade Spring Cloud Contract to 3.1.10 or 4.0.5 or 4.1.1.
Users of affected versions should apply the following mitigation. 4.1.x users should upgrade to 4.1.1. 4.0.x users should upgrade to 4.0.5. 3.1.x users should upgrade to 3.1.10. No other steps are necessary. Releases that have fixed this issue include:
- Spring Cloud Contract
- 4.1.1
- 4.0.5
- 3.1.10
Credit
This issue was identified and responsibly reported by Michael Kimball from Oddball.