Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2020-8908

LOW 3.3PoCEPSS 59%

Temp directory permission issue in Guava

Also known as GHSA-5mg8-w23w-74h3, SNYK-JAVA-COMGOOGLEGUAVA-1015415

Mitigation

  • Upgrade com.google.guava:guava to 32.0.0-android or later.

Who should check

  • Projects that depend on Maven package com.google.guava:guava (< 32.0.0-android)
  • Anyone running Google LLC Guava >= 1.0, < 32.0

Vulnerability facts

Affected
com.google.guava:guava < 32.0.0-android
Fixed in
32.0.0-android
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
3.3 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: Low
  • Integrity impact: None
  • Availability impact: None
EPSS
0.92% chance of exploitation in 30 days (percentile 59, 2026-11-26)
CWE
CWE-378
Published
Modified

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 and fixed versions

Package / productAffectedFixedSource
Maven com.google.guava:guava< 32.0.0-android32.0.0-androidosv
Google LLC Guava>= 1.0, < 32.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2020-8908. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-8908.md
Affected: com.google.guava:guava < 32.0.0-android
Fixed in: 32.0.0-android

Steps:
1. Search this machine and project for com.google.guava:guava (Maven), Google LLC Guava: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

Other

FAQ

Is CVE-2020-8908 being exploited?

There is no confirmed exploitation: CVE-2020-8908 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.92% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2020-8908?

Low: CVSS 3.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2020-8908?

com.google.guava:guava < 32.0.0-android.

Is there a fix for CVE-2020-8908?

Yes. Fixed in 32.0.0-android. Upgrade com.google.guava:guava to 32.0.0-android or later.

How do I check if I'm affected by CVE-2020-8908?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors