CVEfocus › CVE database › CVE-2020-8908

CVE-2020-8908Temp directory permission issue in Guava

CVSS 3.3 LowEPSS 0.9% (higher than 61% of CVEs)Published 2020-12-10Updated 2026-11-02Assigner: Google

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.

CWE-378

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

3Fixed
12Fix pending
2Will not fix
3Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04guava-librariesNot affected
vulnerable_code_not_present
Ubuntu 25.10guava-librariesNot affected
vulnerable_code_not_present
Ubuntu 24.04guava-librariesNot affected
vulnerable_code_not_present
Ubuntu 22.04guava-librariesFix pendingUBUNTU-CVE-2020-8908
Ubuntu 20.04guava-librariesFix pendingUBUNTU-CVE-2020-8908
Ubuntu 18.04guava-librariesFix pendingUBUNTU-CVE-2020-8908
Ubuntu 16.04guava-librariesFix pendingUBUNTU-CVE-2020-8908
Ubuntu 14.04guava-librariesFix pendingUBUNTU-CVE-2020-8908
Debian 14guava-librariesFixed32.0.1-1DEBIAN-CVE-2020-8908
Debian 13guava-librariesFixed32.0.1-1DEBIAN-CVE-2020-8908
Debian 12guava-librariesFix pendingDEBIAN-CVE-2020-8908
Red Hat Enterprise Linux 8guavaFix pending
Fix deferred
Red Hat Enterprise Linux 8guava-javadocFix pending
Fix deferred
Red Hat Enterprise Linux 8guava-testlibFix pending
Fix deferred
Red Hat Enterprise Linux 8guava20Fix pending
Fix deferred
Red Hat Enterprise Linux 8guava20-javadocFix pending
Fix deferred
Red Hat Enterprise Linux 8guava20-testlibFix pending
Fix deferred
Red Hat Enterprise Linux 7guavaWill not fix
Out of support scope
Red Hat Enterprise Linux 7guava-javadocWill not fix
Out of support scope
Maven librarycom.google.guava:guavaFixed32.0.0-androidGHSA-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.

References

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.