Guava vulnerable to insecure use of temporary directory
Published 14 Jun 2023 · Updated 10 Sept 2026
Is your project on an affected com.google.guava:guava?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=1.0 <32.0.0-android
- Fixed in
- 32.0.0-android
mvn versions:use-dep-version -Dincludes=com.google.guava:guava -DdepVersion=32.0.0-android -DforceVersion=trueDetails
Use of Java's default temporary directory for file creation in FileBackedOutputStream in Google Guava versions 1.0 to 31.1 on Unix systems and Android Ice Cream Sandwich allows other users and apps on the machine with access to the default Java temporary directory to be able to access the files created by the class.
Even though the security vulnerability is fixed in version 32.0.0, maintainers recommend using version 32.0.1 as version 32.0.0 breaks some functionality under Windows.
Is GHSA-7g45-4rm6-3mm3 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected com.google.guava:guava, and gives you the command that fixes it.
More advisories for com.google.guava:guava
- HighCVE-2026-102554Google Guava: CompactHashMap/CompactHashSet/MapMakerInternalMap deserialization triggers uncontrolled memory allocation · 27 Oct 2026
- LowCVE-2020-8908Information Disclosure in Guava · 25 Mar 2021
- MediumCVE-2018-10237Denial of Service in Google Guava · 15 Jun 2020
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-2976
- Linkgithub.com/google/guava/issues/2575
- Linkgithub.com/google/guava/issues/6532
- Linkgithub.com/google/guava/commit/feb83a1c8fd2e7670b244d5afd23cba5aca43284
- Packagegithub.com/google/guava
- Linkgithub.com/google/guava/releases/tag/v32.0.0
- Linksecurity.netapp.com/advisory/ntap-20230818-0008
- Linksecurity.netapp.com/advisory/ntap-20241108-0002
- Linkwww.intel.com/content/www/us/en/security-center/advisory/intel-sa-01006.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.