# CVE-2020-8908: Temp directory permission issue in Guava

> An attacker with local access can read sensitive data from world-readable temporary directories created by the Guava library's deprecated API.

- **Severity:** Low 3.3 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 10 Dec 2020
- **Updated:** 4 Aug 2024
- **Also known as:** AZL-25952, AZL-66000, CLEANSTART-2026-AO34403, CLEANSTART-2026-DL14108, CLEANSTART-2026-TL76169, CLEANSTART-2026-WG41098, CLSA-2026-1775608281, CLSA-2026-1791957787, CLSA-2026-1792656880, CLSA-2026-1792657127, CLSA-2026-1793129136, DEBIAN-CVE-2020-8908, ECHO-362c-4cc5-840a, GHSA-5mg8-w23w-74h3, MGASA-2021-0021, MINI-6v82-xxhc-833r, MINI-9xr4-8vw5-w2v4, MINI-c8c8-g9rr-g827, MINI-cj6f-jcp2-h8wf, MINI-fgvw-f892-49xc, MINI-hg4x-q55j-j34g, MINI-hpwj-pq55-7jp3, MINI-hwxc-4v43-p5h2, MINI-m6x8-rq5f-j7jr, MINI-pqhr-wqwq-3x94, MINI-qrwf-xpx5-rwm5, OESA-2021-1049, SNYK-JAVA-COMGOOGLEGUAVA-1015415, UBUNTU-CVE-2020-8908, openSUSE-SU-2024:10835-1

## What is CVE-2020-8908?

CVE-2020-8908 is a low-severity vulnerability in Netapp Active Iq Unified Manager, published on 10 Dec 2020. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-732 (Incorrect Permission Assignment for Critical Resource), CWE-378 (Creation of Temporary File With Insecure Permissions)

## Which versions are affected by CVE-2020-8908?

2 open source packages ship an affected version, including com.google.guava:guava. It affects 13 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `com.google.guava:guava` | Maven | All versions | 32.0.0-android |
| `com.google.guava:guava` | Maven | All versions | 32.0.0-android |
| `guava` | openSUSE:Tumbleweed | All versions | 30.1.1-1.2 |

Products: Google Guava, Netapp Active Iq Unified Manager, Oracle Commerce Guided Search, Oracle Communications Cloud Native Core Network Repository Function, Oracle Communications Cloud Native Core Network Slice Selection Function, Oracle Communications Pricing Design Center, Oracle Data Integrator, Oracle Nosql Database, Oracle Peoplesoft Enterprise Peopletools, Oracle Primavera Unifier, Oracle Retail Customer Management and Segmentation Foundation, Oracle Weblogic Server, Quarkus Quarkus.

## How do I fix CVE-2020-8908?

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

## Is CVE-2020-8908 being exploited?

There is no known exploitation of CVE-2020-8908 in the wild and no public exploit code.

## Other vulnerabilities in Netapp Active Iq Unified Manager

- [CVE-2018-10237](https://insights.sbomify.com/CVE-2018-10237/): Denial of Service in Google Guava (medium 5.9)
- [CVE-2023-2976](https://insights.sbomify.com/CVE-2023-2976/): Use of temporary directory for file creation in `FileBackedOutputStream` in Guava (medium 5.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2020-8908 and fix it if it is affected.

What it is: CVE-2020-8908 is a low-severity vulnerability in Netapp Active Iq Unified Manager, published on 10 Dec 2020. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2020-8908 in the wild and no public exploit code.

Affected packages and fixed versions:
- com.google.guava:guava (Maven): affected all versions; fixed in 32.0.0-android
- com.google.guava:guava (Maven): affected all versions; fixed in 32.0.0-android

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2020-8908/ (Markdown: https://insights.sbomify.com/CVE-2020-8908/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2020-8908
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2020-8908
- OSV: https://osv.dev/vulnerability/CVE-2020-8908

---
From sbomify Insights: https://insights.sbomify.com/CVE-2020-8908/
Summaries are generated and may contain mistakes; the official description above is the record.
