CVE-2020-8908
Temp directory permission issue in Guava
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)
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.
| Product | Versions |
|---|---|
| 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-8908RHEL, Rocky, Alma, Fedora
rpm -q guava
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2020-8908Alpine
apk list --installed | grep -i guavaWith 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
- https://github.com/google/guava/issues/4011 github.com
- https://github.com/google/guava/commit/fec0dbc4634006a6162cfd4d0d09c962073ddf40 github.com
- https://security.netapp.com/advisory/ntap-20220210-0003/ security.netapp.com
Other references
- https://snyk.io/vuln/SNYK-JAVA-COMGOOGLEGUAVA-1015415 snyk.io
- [ws-commits] 20210104 [ws-wss4j] branch master updated: Updating Guava to 30.1 due to CVE-2020-8908 lists.apache.org · mailing list
- [ws-commits] 20210104 [ws-wss4j] branch 2_3_x-fixes updated: Updating Guava to 30.1 due to CVE-2020-8908 lists.apache.org · mailing list
- [cxf-commits] 20210104 [cxf] 03/04: Updating Guava to 30.1 due to CVE-2020-8908 lists.apache.org · mailing list
- [cxf-commits] 20210104 [cxf] 02/02: Updating Guava to 30.1 due to CVE-2020-8908 lists.apache.org · mailing list
- https://lists.apache.org/thread.html/rbc7642b9800249553f13457e46b813bea1aec99d2bc9106510e00ff3%40%3Ctorque-dev.db.apache.org%3E lists.apache.org
- [maven-issues] 20210122 [GitHub] [maven-indexer] akurtakov opened a new pull request #75: Remove guava dependency… lists.apache.org · mailing list
- [db-torque-dev] 20210127 Re: Items for our (delayed) quarterly report to the board? lists.apache.org · mailing list
- [db-torque-dev] 20210128 Antwort: Re: Items for our (delayed) quarterly report to the board? lists.apache.org · mailing list
- [pulsar-commits] 20210406 [GitHub] [pulsar] lhotari opened a new pull request #10149: Upgrade jclouds to 2.3.0 to… lists.apache.org · mailing list
- [myfaces-dev] 20210506 [GitHub] [myfaces-tobago] lofwyr14 opened a new pull request #817: build: CVE fix lists.apache.org · mailing list
- [arrow-github] 20210610 [GitHub] [arrow] projjal opened a new pull request #10501: ARROW-13032: Update guava version lists.apache.org · mailing list
28 more
- https://www.oracle.com/security-alerts/cpuApr2021.html oracle.com
- [drill-dev] 20210618 [GitHub] [drill] ssainz edited a comment on issue #2260: CVE-2020-8908 in Guava v.28.2-jre… lists.apache.org · mailing list
- [drill-dev] 20210618 [GitHub] [drill] ssainz commented on issue #2260: CVE-2020-8908 in Guava v.28.2-jre, should… lists.apache.org · mailing list
- [drill-dev] 20210618 [GitHub] [drill] cgivre commented on issue #2260: CVE-2020-8908 in Guava v.28.2-jre, should… lists.apache.org · mailing list
- [drill-dev] 20210619 [GitHub] [drill] luocooong commented on issue #2260: CVE-2020-8908 in Guava v.28.2-jre, should… lists.apache.org · mailing list
- https://www.oracle.com//security-alerts/cpujul2021.html oracle.com
- [hadoop-yarn-issues] 20211018 [jira] [Updated] (YARN-10980) fix CVE-2020-8908 lists.apache.org · mailing list
- [hadoop-yarn-dev] 20211018 [jira] [Created] (YARN-10980) fix CVE-2020-8908 lists.apache.org · mailing list
- [hadoop-common-issues] 20211018 [GitHub] [hadoop] lujiefsi opened a new pull request #3561: Yarn 10980 lists.apache.org · mailing list
- [hadoop-yarn-issues] 20211018 [jira] [Created] (YARN-10980) fix CVE-2020-8908 lists.apache.org · mailing list
- [hadoop-yarn-dev] 20211018 [jira] [Resolved] (YARN-10980) fix CVE-2020-8908 lists.apache.org · mailing list
- [hive-dev] 20211018 [jira] [Created] (HIVE-25617) fix CVE-2020-8908 lists.apache.org · mailing list
- [hadoop-common-issues] 20211018 [GitHub] [hadoop] lujiefsi edited a comment on pull request #3561: YARN-10980:fix… lists.apache.org · mailing list
- [geode-issues] 20211018 [jira] [Updated] (GEODE-9744) fix CVE-2020-8908 lists.apache.org · mailing list
- [hive-issues] 20211018 [jira] [Updated] (HIVE-25617) fix CVE-2020-8908 lists.apache.org · mailing list
- [hive-issues] 20211018 [jira] [Work logged] (HIVE-25617) fix CVE-2020-8908 lists.apache.org · mailing list
- [hadoop-yarn-issues] 20211018 [jira] [Comment Edited] (YARN-10980) fix CVE-2020-8908 lists.apache.org · mailing list
- [hadoop-yarn-issues] 20211018 [jira] [Resolved] (YARN-10980) fix CVE-2020-8908 lists.apache.org · mailing list
- [hive-gitbox] 20211018 [GitHub] [hive] lujiefsi opened a new pull request #2725: HIVE-25617:fix CVE-2020-8908 lists.apache.org · mailing list
- [hadoop-yarn-issues] 20211018 [jira] [Commented] (YARN-10980) fix CVE-2020-8908 lists.apache.org · mailing list
- [geode-issues] 20211018 [jira] [Created] (GEODE-9744) fix CVE-2020-8908 lists.apache.org · mailing list
- [geode-issues] 20211018 [jira] [Updated] (GEODE-9744) bug like CVE-2020-8908 lists.apache.org · mailing list
- [geode-issues] 20211018 [jira] [Updated] (GEODE-9744) bug CVE-2020-8908 lists.apache.org · mailing list
- [geode-issues] 20211018 [jira] [Updated] (GEODE-9744) like CVE-2020-8908 lists.apache.org · mailing list
- https://www.oracle.com/security-alerts/cpuoct2021.html oracle.com
- [pig-dev] 20211021 [GitHub] [pig] lujiefsi opened a new pull request #36: PIG-5417:Replace guava's Files.createTempDir() lists.apache.org · mailing list
- https://www.oracle.com/security-alerts/cpujan2022.html oracle.com
- https://www.oracle.com/security-alerts/cpuapr2022.html oracle.com
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.