p PatchFirst

CVE-2020-8908

CVE-2020-8908 · Temp directory permission issue in Guava

CVSS 3.3 · Low · EPSS 0.9% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="guava-libraries"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

This page shows selected source facts. See the linked advisories for the complete description and affected versions.

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.

Published
Updated

Fixes in distributions

  • RHSA-2021:4702 · Red Hat satellite 6.10 el7, Red Hat satellite capsule 6.10 el7 ·
  • RHSA-2021:0873 · Red Hat jboss enterprise application platform 7.3 el7 ·
  • RHSA-2021:0874 · Red Hat jboss enterprise application platform 7.3 el8 ·
  • RHSA-2021:0872 · Red Hat jboss enterprise application platform 7.3 el6 ·
  • openSUSE-SU-2024:10835-1 · openSUSE Tumbleweed ·
  • SUSE-SU-2024:1138-1 · SUSE Manager Server Module 4.3 ·
  • SUSE-SU-2023:3090-1 · openSUSE Leap 15.4, openSUSE Leap 15.5, SUSE Linux Enterprise Module for Development Tools 15 SP4, SUSE Linux Enterprise Module for Development Tools 15 SP5, SUSE Linux Enterprise Real Time 15 SP3 ·

Stack: system

Affected products and versions

  • guava

    Versions
    • ≥ 1.0, < 32.0: Affected (custom)

    Update to 32.0

  • guava-libraries Debian 12

    Versions
    • 31.1-1
    • 32.0.1-1
    • 33.7.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • guava-libraries Debian 13

    Affected ranges
    • ECOSYSTEM: < 32.0.1-1

    Update to 32.0.1-1

  • guava-libraries Debian 14

    Affected ranges
    • ECOSYSTEM: < 32.0.1-1

    Update to 32.0.1-1

  • guava-libraries Ubuntu 14.04 LTS

    Versions
    • 14.0.1-1
    • 15.0-2ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • guava-libraries Ubuntu 16.04 LTS

    Versions
    • 18.0-4ubuntu1
    • 19.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • guava-libraries Ubuntu 18.04 LTS

    Versions
    • 19.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • guava-libraries Ubuntu 20.04 LTS

    Versions
    • 19.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • guava-libraries Ubuntu 22.04 LTS

    Versions
    • 29.0-6
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →