8.8

CVE-2019-8320: rubygems

Modified
AliasesALPINE-CVE-2019-8320UBUNTU-CVE-2019-8320DEBIAN-CVE-2019-8320
Published 06-06-2019Last modified 04-08-2024

Vulnerability summary

CVE-2019-8320 is a high (CVSS 8.8) vulnerability in rubygems. EPSS estimates a 4.19% chance of exploitation in the next 30 days, higher than 90.9% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (reference, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v2.0 (NVD)
EPSS score
4.19%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 13 · Related 4

Timeline

  1. 06-06-2019
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last modifiedVulnerability information updated.

Description

A Directory Traversal issue was discovered in RubyGems 2.7.6 and later through 3.0.2. Before making new directories or touching files (which now include path-checking code for symlinks), it would delete the target destination. If that destination was hidden behind a symlink, a malicious gem could delete arbitrary files on the user's machine, presuming the attacker could guess at paths. Given how frequently gem is run as sudo, and how predictable paths are on modern systems (/tmp, /usr, etc.), this could likely lead to data loss or an unusable system.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

4.19%

Chance of exploitation in the next 30 days

Percentile

91%

Versus all other CVEs

30-day change

No change 0.00 pp

From 4.19% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (hackerone.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu5 products
  • jrubyAll versions (No fix recorded)
  • ruby1.9.1< 1.9.3.484-2ubuntu1.14
  • ruby2.0< 2.0.0.484-1ubuntu2.13
  • ruby2.3< 2.3.1-2~16.04.12
  • ruby2.5< 2.5.1-1ubuntu1.2
Debian2 products
  • jruby< 9.1.17.0-3
  • rubygems< 3.2.0~rc.1-1
RubyGems2 products
  • rubygems-update≥ 2.7.6, < 2.7.9 | ≥ 3.0.0, < 3.0.3
  • rubygems≥ 2.7.6, ≤ 3.0.2
Alpine1 product
  • ruby< 2.4.6-r0 | < 2.5.5-r0

4 vendors · 10 products

References

16 links
Show all 16 references