CVE-2020-8908

Temp directory permission issue in Guava

3.3 low EPSS 0.92%

Published 10 Dec 2020 Updated 2 Nov 2026 CNA: Google

Description

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.

Severity (CVSS)

3.3 low CVSS 3.1 from Google (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality low, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.92%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 58.6% of all scored CVEs. Scores of 26 Nov 2026.

The assessment of CISA (SSVC, 2 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-378 Creation of Temporary File With Insecure Permissions

Affected products

As the CNA lists them.

ProductVersions
Guava
affected from 1.0, before 32.0
Other versions: unaffected

Is my server affected?

Find the installed version of guava and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i guava
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2020-8908 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2020-8908

RHEL, Rocky, Alma, Fedora

rpm -q guava
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2020-8908

Alpine

apk list --installed | grep -i guava

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2020-8908
trivy image --scanners vuln IMAGE | grep CVE-2020-8908

PatchBrief makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Install the agent.

References

Advisories

Other references

28 more

Source: the record CVE-2020-8908 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.