CVE-2019-8320
CVSS v3
7.4
HIGH
EPSS Score
4.2 %
exploit probability, as of 2026-10-19
CISA KEV
No
known exploited
Exploitation
—
SSVC status
Get an alert for each new CVE published for rubygems.
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- rubygems-updateRubyGemsfrom 3.0.0 · fixed in 3.0.3
Vendor advisories
rubygems: Delete directory using symlink when decompressing tar
rh-ruby23-ruby as a component of Red Hat Software Collections · rh-ruby23-ruby-devel as a component of Red Hat Software Collections · rh-ruby23-ruby-doc as a component of Red Hat Software Collections
Red Hat Bug Fix Advisory: ruby:2.5 bug fix and enhancement update
Red Hat Security Advisory: CloudForms 4.7.5 security, bug fix and enhancement update
Red Hat Security Advisory: rh-ruby24-ruby security, bug fix, and enhancement update
Red Hat Security Advisory: rh-ruby25-ruby security, bug fix, and enhancement update
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.
Technical details
- Published
- 2019-06-06
Frequently asked questions
What is CVE-2019-8320?
Is CVE-2019-8320 actively exploited?
What is the CVSS score for CVE-2019-8320?
Running rubygems? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.