Vulnerability advisory

CVE-2020-8908

Published Updated OSV record ↗

Also known as GHSA-5mg8-w23w-74h3SNYK-JAVA-COMGOOGLEGUAVA-1015415

Severity
  • CVSS 3.xCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/google/guava ↗
All commits before 6b1f97ced922d48f071153ad9e631d06383033a46b1f97ced922d48f071153ad9e631d06383033a4
Not specifiedfec0dbc4634006a6162cfd4d0d09c962073ddf40
Also listed as affected (5)
  • failureaccess-v1.0.1
  • released-all-futures
  • jdk5-backport-branch-point
  • v7.0
  • v2.0
GIT github.com/quarkusio/quarkus ↗
All commits before 60a549cadba9f9e10583b4348b5102e8b4087aa760a549cadba9f9e10583b4348b5102e8b4087aa7

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.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools