CVE-2024-22236 — spring-cloud-contract-sha…
LOWCVE-2024-22236 is a low-severity (CVSS 3.3) CWE-732 vulnerability in org.springframework.cloud:spring-cloud-contract-shade. A fix is available for org.springframework.cloud:spring-cloud-contract-shade — see the affected versions and patch details below.
Spring Cloud Contract vulnerable to local information disclosure
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2024-22236.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.springframework.cloud:spring-cloud-contract-shade☕org.springframework.cloud:spring-cloud-contract-shade☕org.springframework.cloud:spring-cloud-contract-shadeReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.springframework.cloud:spring-cloud-contract-shade | ≥ 4.1.0&&< 4.1.1 | 4.1.1org.springframework.cloud:spring-cloud-contract-shade:4.1.1 |
| ☕Maven | org.springframework.cloud:spring-cloud-contract-shade | ≥ 4.0.0&&< 4.0.5 | 4.0.5org.springframework.cloud:spring-cloud-contract-shade:4.0.5 |
| ☕Maven | org.springframework.cloud:spring-cloud-contract-shade | ≥ 3.1.0&&< 3.1.10 | 3.1.10org.springframework.cloud:spring-cloud-contract-shade:3.1.10 |
Affected Products
spring cloud contractvmwareDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.springframework.cloud:spring-cloud-contract-shade, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.springframework.cloud:spring-cloud-contract-shade to 4.1.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-22236 is resolved across your whole dependency graph.
Workarounds
Assume what was exposed is already known: rotate any credential, token or key that the affected component could return, restrict the endpoint to callers that genuinely need it, and strip sensitive fields from responses and error output at the boundary rather than relying on the client not to read them.
Frequently Asked Questions
Is CVE-2024-22236 in your dependencies?
Find it across Maven, including transitive dependencies.