Vulnerability · Published Dec 10, 2020 · Assigned by Google

CVE-2020-8908Temp directory permission issue in Guava

Low 3.3

In plain English

A low-severity security flaw in Guava from Google LLC. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 61% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.3Low
Exploit odds (30 days)0.9%top 39.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12guava-librariesno fix listedDEBIAN-CVE-2020-8908
Debian:13guava-libraries32.0.1-1DEBIAN-CVE-2020-8908
Debian:14guava-libraries32.0.1-1DEBIAN-CVE-2020-8908
Mavencom.google.guava:guava32.0.0-androidGHSA-5mg8-w23w-74h3
Ubuntu:22.04:LTSguava-librariesno fix listedUBUNTU-CVE-2020-8908

Affected products (as reported)

VendorProductVersions
Google LLC Guava 1.0 – before 32.0

Weakness: CWE-378 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

References