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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | guava-libraries | no fix listed | DEBIAN-CVE-2020-8908 |
| Debian:13 | guava-libraries | 32.0.1-1 | DEBIAN-CVE-2020-8908 |
| Debian:14 | guava-libraries | 32.0.1-1 | DEBIAN-CVE-2020-8908 |
| Maven | com.google.guava:guava | 32.0.0-android | GHSA-5mg8-w23w-74h3 |
| Ubuntu:22.04:LTS | guava-libraries | no fix listed | UBUNTU-CVE-2020-8908 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/google/guava/issues/4011 x_refsource_CONFIRM
- https://github.com/google/guava/commit/fec0dbc4634006a6162cfd4d0d09c962073ddf40 x_refsource_CONFIRM
- https://snyk.io/vuln/SNYK-JAVA-COMGOOGLEGUAVA-1015415 x_refsource_MISC
- [ws-commits] 20210104 [ws-wss4j] branch master updated: Updating Guava to 30.1 due to CVE-2020-8908 mailing-list, x_refsource_MLIST
- [ws-commits] 20210104 [ws-wss4j] branch 2_3_x-fixes updated: Updating Guava to 30.1 due to CVE-2020-8908 mailing-list, x_refsource_MLIST
- [cxf-commits] 20210104 [cxf] 03/04: Updating Guava to 30.1 due to CVE-2020-8908 mailing-list, x_refsource_MLIST
- [cxf-commits] 20210104 [cxf] 02/02: Updating Guava to 30.1 due to CVE-2020-8908 mailing-list, x_refsource_MLIST
- https://lists.apache.org/thread.html/rbc7642b9800249553f13457e46b813bea1aec99d2bc9106510e00ff3%40%3Ctorque-dev.db.apache.org%3E x_refsource_MISC
- [maven-issues] 20210122 [GitHub] [maven-indexer] akurtakov opened a new pull request #75: Remove guava dependency from indexer-core mailing-list, x_refsource_MLIST
- [db-torque-dev] 20210127 Re: Items for our (delayed) quarterly report to the board? mailing-list, x_refsource_MLIST
- [db-torque-dev] 20210128 Antwort: Re: Items for our (delayed) quarterly report to the board? mailing-list, x_refsource_MLIST
- [pulsar-commits] 20210406 [GitHub] [pulsar] lhotari opened a new pull request #10149: Upgrade jclouds to 2.3.0 to fix security vulnerabilities mailing-list, x_refsource_MLIST
- [myfaces-dev] 20210506 [GitHub] [myfaces-tobago] lofwyr14 opened a new pull request #817: build: CVE fix mailing-list, x_refsource_MLIST
- [arrow-github] 20210610 [GitHub] [arrow] projjal opened a new pull request #10501: ARROW-13032: Update guava version mailing-list, x_refsource_MLIST
- https://www.oracle.com/security-alerts/cpuApr2021.html x_refsource_MISC
- [drill-dev] 20210618 [GitHub] [drill] ssainz edited a comment on issue #2260: CVE-2020-8908 in Guava v.28.2-jre, should upgrade to v.30.1.1 mailing-list, x_refsource_MLIST
- [drill-dev] 20210618 [GitHub] [drill] ssainz commented on issue #2260: CVE-2020-8908 in Guava v.28.2-jre, should upgrade to v.30.1.1 mailing-list, x_refsource_MLIST
- [drill-dev] 20210618 [GitHub] [drill] cgivre commented on issue #2260: CVE-2020-8908 in Guava v.28.2-jre, should upgrade to v.30.1.1 mailing-list, x_refsource_MLIST
- [drill-dev] 20210619 [GitHub] [drill] luocooong commented on issue #2260: CVE-2020-8908 in Guava v.28.2-jre, should upgrade to v.30.1.1 mailing-list, x_refsource_MLIST
- https://www.oracle.com//security-alerts/cpujul2021.html x_refsource_MISC
- [hadoop-yarn-issues] 20211018 [jira] [Updated] (YARN-10980) fix CVE-2020-8908 mailing-list, x_refsource_MLIST
- [hadoop-yarn-dev] 20211018 [jira] [Created] (YARN-10980) fix CVE-2020-8908 mailing-list, x_refsource_MLIST
- [hadoop-common-issues] 20211018 [GitHub] [hadoop] lujiefsi opened a new pull request #3561: Yarn 10980 mailing-list, x_refsource_MLIST
- [hadoop-yarn-issues] 20211018 [jira] [Created] (YARN-10980) fix CVE-2020-8908 mailing-list, x_refsource_MLIST
- [hadoop-yarn-dev] 20211018 [jira] [Resolved] (YARN-10980) fix CVE-2020-8908 mailing-list, x_refsource_MLIST
- [hive-dev] 20211018 [jira] [Created] (HIVE-25617) fix CVE-2020-8908 mailing-list, x_refsource_MLIST
- [hadoop-common-issues] 20211018 [GitHub] [hadoop] lujiefsi edited a comment on pull request #3561: YARN-10980:fix CVE-2020-8908 mailing-list, x_refsource_MLIST
- [geode-issues] 20211018 [jira] [Updated] (GEODE-9744) fix CVE-2020-8908 mailing-list, x_refsource_MLIST
- [hive-issues] 20211018 [jira] [Updated] (HIVE-25617) fix CVE-2020-8908 mailing-list, x_refsource_MLIST
- [hive-issues] 20211018 [jira] [Work logged] (HIVE-25617) fix CVE-2020-8908 mailing-list, x_refsource_MLIST
- [hadoop-yarn-issues] 20211018 [jira] [Comment Edited] (YARN-10980) fix CVE-2020-8908 mailing-list, x_refsource_MLIST
- [hadoop-yarn-issues] 20211018 [jira] [Resolved] (YARN-10980) fix CVE-2020-8908 mailing-list, x_refsource_MLIST
- [hive-gitbox] 20211018 [GitHub] [hive] lujiefsi opened a new pull request #2725: HIVE-25617:fix CVE-2020-8908 mailing-list, x_refsource_MLIST
- [hadoop-yarn-issues] 20211018 [jira] [Commented] (YARN-10980) fix CVE-2020-8908 mailing-list, x_refsource_MLIST
- [geode-issues] 20211018 [jira] [Created] (GEODE-9744) fix CVE-2020-8908 mailing-list, x_refsource_MLIST
- [geode-issues] 20211018 [jira] [Updated] (GEODE-9744) bug like CVE-2020-8908 mailing-list, x_refsource_MLIST
- [geode-issues] 20211018 [jira] [Updated] (GEODE-9744) bug CVE-2020-8908 mailing-list, x_refsource_MLIST
- [geode-issues] 20211018 [jira] [Updated] (GEODE-9744) like CVE-2020-8908 mailing-list, x_refsource_MLIST
- https://www.oracle.com/security-alerts/cpuoct2021.html x_refsource_MISC
- [pig-dev] 20211021 [GitHub] [pig] lujiefsi opened a new pull request #36: PIG-5417:Replace guava's Files.createTempDir() mailing-list, x_refsource_MLIST