CVE-2024-22236 Spring Cloud Contract vulnerable to local information disclosure
Local attackers can read sensitive data from temporary directories due to unsafe permissions in Spring Cloud Contract test execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-22236?
CVE-2024-22236 is a low-severity vulnerability in Spring Cloud Contract, published on 31 Jan 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2024-22236?
6 open source packages ship an affected version, including org.springframework.cloud:spring-cloud-contract-shade. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework.cloud:spring-cloud-contract-shade Maven | From 3.1.0 | 3.1.10 |
org.springframework.cloud:spring-cloud-contract-shade Maven | From 3.1.0 | 3.1.10 |
org.springframework.cloud:spring-cloud-contract-shade Maven | From 4.0.0 | 4.0.5 |
org.springframework.cloud:spring-cloud-contract-shade Maven | From 4.0.0 | 4.0.5 |
org.springframework.cloud:spring-cloud-contract-shade Maven | From 4.1.0 | 4.1.1 |
org.springframework.cloud:spring-cloud-contract-shade Maven | From 4.1.0 | 4.1.1 |
Products include Vmware Spring Cloud Contract.
How do I fix CVE-2024-22236?
Upgrade org.springframework.cloud:spring-cloud-contract-shade to a fixed version for your release line: 3.1.10, 4.0.5 or 4.1.1.
Is CVE-2024-22236 being exploited?
There is no known exploitation of CVE-2024-22236 in the wild and no public exploit code.
Sources
Also known as GHSA-p6rp-mx85-m459.