CVE-2020-8908Temp directory permission issue in Guava
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.
What to do
Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | guava-libraries | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | guava-libraries | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | guava-libraries | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | guava-libraries | Fix pending | UBUNTU-CVE-2020-8908 | |
| Ubuntu 20.04 | guava-libraries | Fix pending | UBUNTU-CVE-2020-8908 | |
| Ubuntu 18.04 | guava-libraries | Fix pending | UBUNTU-CVE-2020-8908 | |
| Ubuntu 16.04 | guava-libraries | Fix pending | UBUNTU-CVE-2020-8908 | |
| Ubuntu 14.04 | guava-libraries | Fix pending | UBUNTU-CVE-2020-8908 | |
| Debian 14 | guava-libraries | Fixed | 32.0.1-1 | DEBIAN-CVE-2020-8908 |
| Debian 13 | guava-libraries | Fixed | 32.0.1-1 | DEBIAN-CVE-2020-8908 |
| Debian 12 | guava-libraries | Fix pending | DEBIAN-CVE-2020-8908 | |
| Red Hat Enterprise Linux 8 | guava | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | guava-javadoc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | guava-testlib | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | guava20 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | guava20-javadoc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | guava20-testlib | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | guava | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | guava-javadoc | Will not fix Out of support scope | ||
| Maven library | com.google.guava:guava | Fixed | 32.0.0-android | GHSA-5mg8-w23w-74h3 |
What the vendor says
As published in the CVE record by Google, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Google LLC Guava: affected: 1.0 to before 32.0; fixed in
32.0
References
- https://github.com/google/guava/issues/4011
- https://github.com/google/guava/commit/fec0dbc4634006a6162cfd4d0d09c962073ddf40
- https://snyk.io/vuln/SNYK-JAVA-COMGOOGLEGUAVA-1015415
- https://lists.apache.org/thread.html/r68d86f4b06c808204f62bcb254fcb5b0432528ee8d37a07ef4bc8222%40%3Ccommits.ws.apache.org%3E
- https://lists.apache.org/thread.html/r215b3d50f56faeb2f9383505f3e62faa9f549bb23e8a9848b78a968e%40%3Ccommits.ws.apache.org%3E
- https://lists.apache.org/thread.html/rb8c0f1b7589864396690fe42a91a71dea9412e86eec66dc85bbacaaf%40%3Ccommits.cxf.apache.org%3E
- https://lists.apache.org/thread.html/r4776f62dfae4a0006658542f43034a7fc199350e35a66d4e18164ee6%40%3Ccommits.cxf.apache.org%3E
- https://lists.apache.org/thread.html/rbc7642b9800249553f13457e46b813bea1aec99d2bc9106510e00ff3%40%3Ctorque-dev.db.apache.org%3E
- https://lists.apache.org/thread.html/r841c5e14e1b55281523ebcde661ece00b38a0569e00ef5e12bd5f6ba%40%3Cissues.maven.apache.org%3E
- https://lists.apache.org/thread.html/rc2dbc4633a6eea1fcbce6831876cfa17b73759a98c65326d1896cb1a%40%3Ctorque-dev.db.apache.org%3E
- https://lists.apache.org/thread.html/rd5d58088812cf8e677d99b07f73c654014c524c94e7fedbdee047604%40%3Ctorque-dev.db.apache.org%3E
- https://lists.apache.org/thread.html/r3c3b33ee5bef0c67391d27a97cbfd89d44f328cf072b601b58d4e748%40%3Ccommits.pulsar.apache.org%3E
- https://lists.apache.org/thread.html/rfc27e2727a20a574f39273e0432aa97486a332f9b3068f6ac1346594%40%3Cdev.myfaces.apache.org%3E
- https://lists.apache.org/thread.html/rd01f5ff0164c468ec7abc96ff7646cea3cce6378da2e4aa29c6bcb95%40%3Cgithub.arrow.apache.org%3E
- https://www.oracle.com/security-alerts/cpuApr2021.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.