CVE-2020-8908
Temp directory permission issue in Guava
Reported by google · Published December 10, 2020
guava is fixed in 32.0.0-android (Maven Central)
A temp directory creation vulnerability exists in all versions of Guava, allowing an attacker with access to the machine to potentially access data in a temporary directory created by the Guava API com.google.common.io.Files.createTempDir(). By default, on unix-like systems, the created directory is world-readable (readable by an attacker with access to the system). The method in question has been marked @Deprecated in versions 30.0 and later and should not be used. For Android developers, we recommend choosing a temporary directory API provided by Android, such as context.getCacheDir(). For other Java developers, we recommend migrating to the Java 7 API java.nio.file.Files.createTempDirectory() which explicitly configures permissions of 700, or configuring the Java runtime's java.io.tmpdir system property to point to a location whose permissions are appropriately configured.
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 |
| debezium-connector-spanner-3.0 | Chainguard | 3.0.4-r2 |
| celeborn-0.6 | Chainguard | 0.6.3-r7 |
| maven | Wolfi | 3.9.3-r1 |
| gradle-8 | Wolfi | 8.2.1-r1 |
| trino | Wolfi | 481-r0 |
| spark-3.5 | Chainguard | 3.5.9-r10 |
| spark-fips-3.5 | Chainguard | 3.5.8-r3, 3.5.8-r14 |
| celeborn-0.5 | Chainguard | 0.5.4-r26 |
| maven-stage0 | Wolfi | 3.9.12-r0 |
| maven-stage0 | Chainguard | 3.9.12-r0 |
| cassandra-fips-4.1 | Chainguard | 4.1.12-r8 |
21 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Google LLC | Guava | 1.0 |
| chainguard | cassandra-4.1 | * |
| chainguard | debezium-connector-spanner-3.0 | 0 |
| chainguard | celeborn-0.6 | 0 |
| wolfi | maven | 0 |
| wolfi | gradle-8 | 0 |
| wolfi | trino | 0 |
| chainguard | spark-3.5 | 0 |
| wolfi | cassandra-4.1 | * |
| chainguard | spark-fips-3.5 | 0, 0 |
| chainguard | celeborn-0.5 | 0 |
| chainguard | elasticsearch-7 | * |
| wolfi | maven-stage0 | 0 |
| chainguard | maven-stage0 | 0 |
| chainguard | keycloak-fips | * |
| wolfi | keycloak | * |
| chainguard | cassandra-fips-4.1 | 0 |
| chainguard | grpc-java-fips-1.56.0 | * |
| chainguard | trino | 0 |
| chainguard | keycloak | * |
…and 18 more
Timeline
- Dec 10, 2020 CVE Published
- Apr 14, 2021 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 (17 in total, the first dated here)
- Mar 17, 2026 Distribution Patch (15 in total, the first dated here)
- Aug 28, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-8908
vulnetix vdb fixes CVE-2020-8908
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-2020-8908/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_MISC
- [ws-commits] 20210104 [ws-wss4j] branch master updated: Updating Guava to 30.1 due to CVE-2020-8908 mailing-listx_refsource_MLIST
- [ws-commits] 20210104 [ws-wss4j] branch 2_3_x-fixes updated: Updating Guava to 30.1 due to CVE-2020-8908 mailing-listx_refsource_MLIST
- [cxf-commits] 20210104 [cxf] 03/04: Updating Guava to 30.1 due to CVE-2020-8908 mailing-listx_refsource_MLIST
- [cxf-commits] 20210104 [cxf] 02/02: Updating Guava to 30.1 due to CVE-2020-8908 mailing-listx_refsource_MLIST
- x_refsource_MISC
- [maven-issues] 20210122 [GitHub] [maven-indexer] akurtakov opened a new pull request #75: Remove guava dependency from indexer-core mailing-listx_refsource_MLIST
- [db-torque-dev] 20210127 Re: Items for our (delayed) quarterly report to the board? mailing-listx_refsource_MLIST
- [db-torque-dev] 20210128 Antwort: Re: Items for our (delayed) quarterly report to the board? mailing-listx_refsource_MLIST
- [pulsar-commits] 20210406 [GitHub] [pulsar] lhotari opened a new pull request #10149: Upgrade jclouds to 2.3.0 to fix security vulnerabilities mailing-listx_refsource_MLIST
- [myfaces-dev] 20210506 [GitHub] [myfaces-tobago] lofwyr14 opened a new pull request #817: build: CVE fix mailing-listx_refsource_MLIST
- [arrow-github] 20210610 [GitHub] [arrow] projjal opened a new pull request #10501: ARROW-13032: Update guava version mailing-listx_refsource_MLIST
- x_refsource_MISC
- [drill-dev] 20210618 [GitHub] [drill] ssainz edited a comment on issue #2260: CVE-2020-8908 in Guava v.28.2-jre, should upgrade to v.30.1.1 mailing-listx_refsource_MLIST
- [drill-dev] 20210618 [GitHub] [drill] ssainz commented on issue #2260: CVE-2020-8908 in Guava v.28.2-jre, should upgrade to v.30.1.1 mailing-listx_refsource_MLIST
- [drill-dev] 20210618 [GitHub] [drill] cgivre commented on issue #2260: CVE-2020-8908 in Guava v.28.2-jre, should upgrade to v.30.1.1 mailing-listx_refsource_MLIST
- [drill-dev] 20210619 [GitHub] [drill] luocooong commented on issue #2260: CVE-2020-8908 in Guava v.28.2-jre, should upgrade to v.30.1.1 mailing-listx_refsource_MLIST
- x_refsource_MISC
…and 64 more