CVE-2019-8320: rubygems
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.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 13 · Related 4Timeline
- 06-06-2019PublishedVulnerability first disclosed.
- 04-08-2024Last 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- OSV · UbuntuEcosystem advisory · calculated7.4HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.4HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
- OSV · RubygemsEcosystem advisory · calculated7.4HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
- NVDNIST7.4HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
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
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (hackerone.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
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- blog.rubygems.org/2019/03/05/security-advisories-2019-03.htmlX Refsource CONFIRMREPORTWEBVendor Advisory
- lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.htmlVendor AdvisoryX Refsource SUSEWEB
Show all 16 references
- github.com/rubygems/rubygemsPACKAGE