CVE-2023-2976
Use of temporary directory for file creation in `FileBackedOutputStream` in Guava
Reported by google · Published June 14, 2023
guava is fixed in 32.0.0-android (Maven Central)
Use of Java's default temporary directory for file creation in `FileBackedOutputStream` in Google Guava versions 1.0 to 31.1 on Unix systems and Android Ice Cream Sandwich allows other users and apps on the machine with access to the default Java temporary directory to be able to access the files created by the class. Even though the security vulnerability is fixed in version 32.0.0, we recommend using version 32.0.1 as version 32.0.0 breaks some functionality under Windows.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| com.google.guava:guava | Maven Central | 32.0.0-android |
| spark-3.5 | Chainguard | 3.5.9-r10 |
| gradle-8 | Chainguard | 8.2.1-r1 |
| guava-javadoc | Amazon Linux | 31.0.1-3.amzn2023.0.6 |
| maven-stage0 | Wolfi | 3.9.12-r0 |
| spdx-tools-java | Chainguard | 1.1.8-r1 |
| celeborn-0.6 | Chainguard | 0.6.3-r7 |
| guava | Amazon Linux | 31.0.1-3.amzn2023.0.6 |
| trino | Chainguard | 481-r0 |
| hadoop-client-modules | Chainguard | 3.3.6-r8 |
| celeborn-0.6 | Wolfi | 0.6.3-r7 |
| debezium-connector-spanner-3.0 | Wolfi | 3.0.4-r2 |
16 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Guava | 1.0 | |
| chainguard | spark-3.5 | 0 |
| chainguard | gradle-8 | 0 |
| Maven | com.google.guava:guava | 1.0 |
| amazon:2023 | guava-javadoc | 0 |
| wolfi | maven-stage0 | 0 |
| wolfi | druid | * |
| chainguard | keycloak | * |
| chainguard | elasticsearch-7 | * |
| chainguard | cassandra-4.1 | * |
| chainguard | spdx-tools-java | 0 |
| chainguard | celeborn-0.6 | 0 |
| Guava | 1.0 | |
| amazon:2023 | guava | 0 |
| chainguard | trino | 0 |
| wolfi | cassandra-4.1 | * |
| chainguard | druid | * |
| chainguard | hadoop-client-modules | 0 |
| wolfi | keycloak | * |
| wolfi | celeborn-0.6 | 0 |
…and 23 more
Timeline
- Jun 14, 2023 CVE Published
- Jun 15, 2023 EPSS Score (30 in total, the first dated here)
- Feb 8, 2024 PoC Published (2 in total, the first dated here)
- Mar 17, 2026 Security Advisory (27 in total, the first dated here)
- Nov 21, 2026 Distribution Patch (25 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-2976
vulnetix vdb fixes CVE-2023-2976
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-2976/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-2976 advisory
- https://github.com/advisories/GHSA-7g45-4rm6-3mm3 advisory
- https://github.com/google/guava/issues/6532 url
- https://github.com/google/guava/commit/feb83a1c8fd2e7670b244d5afd23cba5aca43284 patch
- https://github.com/google/guava url
- https://github.com/google/guava/releases/tag/v32.0.0 url
- https://security.netapp.com/advisory/ntap-20230818-0008 advisory
- https://security.netapp.com/advisory/ntap-20241108-0002 advisory
- https://security.netapp.com/advisory/ntap-20241108-0002/ url