MediumGHSA-7g45-4rm6-3mm3CVE-2023-2976

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?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=com.google.guava:guava -DdepVersion=32.0.0-android -DforceVersion=true

Details

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
com.google.guava:guava security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.