{"id":"UBUNTU-CVE-2020-8908","details":"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.","modified":"2026-01-20T17:21:52.097302Z","published":"2020-12-10T23:15:00Z","upstream":["CVE-2020-8908"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-8908"},{"type":"REPORT","url":"https://github.com/google/guava/issues/4011"},{"type":"REPORT","url":"https://github.com/google/guava/commit/fec0dbc4634006a6162cfd4d0d09c962073ddf40"},{"type":"REPORT","url":"https://github.com/google/guava/issues/4011#issuecomment-1573923586"},{"type":"REPORT","url":"https://github.com/google/guava/releases/tag/v32.0.0"},{"type":"REPORT","url":"https://github.com/google/guava/issues/2575"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-8908"}],"affected":[{"package":{"name":"guava-libraries","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/guava-libraries@15.0-2ubuntu1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["14.0.1-1","15.0-2ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"libguava-java","binary_version":"15.0-2ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-8908.json"}},{"package":{"name":"guava-libraries","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/guava-libraries@19.0-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["18.0-4ubuntu1","19.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libguava-java","binary_version":"19.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-8908.json"}},{"package":{"name":"guava-libraries","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/guava-libraries@19.0-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["19.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libguava-java","binary_version":"19.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-8908.json"}},{"package":{"name":"guava-libraries","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/guava-libraries@19.0-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["19.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libguava-java","binary_version":"19.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-8908.json"}},{"package":{"name":"guava-libraries","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/guava-libraries@29.0-6?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["29.0-6"],"ecosystem_specific":{"binaries":[{"binary_name":"libguava-java","binary_version":"29.0-6"},{"binary_name":"libguava-testlib-java","binary_version":"29.0-6"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-8908.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}