guava-libraries — security advisory
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.
- Products
- guava-libraries
- Affected versions
- 31.1-1, 32.0.1-1, 33.7.1-1
- Fixed versions
- 32.0.1-1
- CVEs
- CVE-2020-8908
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 13:52 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2020-8908
guava-libraries
Fixed versions: Not specified
guava-libraries
Fixed versions: 32.0.1-1
guava-libraries
Fixed versions: 32.0.1-1
Complete source record
{
"id": "ff0630fce23275905c5907b5427e475201624ee5f0716e3e6e3c6ff05e9d06c2",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2020-8908",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2020-8908",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2020-8908",
"products": [
{
"name": {
"value": "guava-libraries",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "31.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "32.0.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "33.7.1-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "guava-libraries",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "32.0.1-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "guava-libraries",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "32.0.1-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "low",
"structured": {
"id": "DEBIAN-CVE-2020-8908",
"aliases": [
"DEBIAN-CVE-2020-8908"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "guava-libraries",
"purl": "pkg:deb/debian/guava-libraries?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"31.1-1",
"32.0.1-1",
"33.7.1-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-8908.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "32.0.1-1"
}
]
}
],
"package": {
"name": "guava-libraries",
"purl": "pkg:deb/debian/guava-libraries?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-8908.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "32.0.1-1"
}
]
}
],
"package": {
"name": "guava-libraries",
"purl": "pkg:deb/debian/guava-libraries?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-8908.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-26T12:02:45.399655210Z",
"provider": "osv",
"upstream": [
"CVE-2020-8908"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2020-8908"
]
},
"related_cves": [
{
"value": "CVE-2020-8908",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 452944,
"published_at": "2020-12-10T23:15:13.973+00:00"
}