Home / Rubygems / Rubygems / CVE-2019-8320
CVE-2019-8320: is it exploited, and which versions of Rubygems are affected and fixed?
CVE-2019-8320 is a path traversal (reading or writing files outside the intended folder) vulnerability in Rubygems. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 09:38 UTC). Affected: rubygems-update from 2.7.6 before 2.7.9 and rubygems-update from 3.0.0 before 3.0.3 (GitHub advisory GHSA-5x32-c9mf-49cc). Fixed in 2.7.9 and 3.0.3 (GitHub advisory GHSA-5x32-c9mf-49cc). Severity: High (7.4, CVSS 3.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 09:38 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:22 UTC.
What is CVE-2019-8320?
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.
From the CVE record by mitre, last updated August 4, 2024, 21:17 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| RubyGems | rubygems-update | >= 2.7.6, < 2.7.9 | 2.7.9 | GHSA-5x32-c9mf-49cc |
| RubyGems | rubygems-update | >= 3.0.0, < 3.0.3 | 3.0.3 | GHSA-5x32-c9mf-49cc |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 28, 2023. Summary: RubyGems Delete directory using symlink when decompressing tar.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| rubygems | rubygems | from 2.7.6 through 3.0.2 | application |
NVD analysis (status Modified), last modified June 17, 2026, 02:41 UTC.
How severe is CVE-2019-8320?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.4 | CVSS 3.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H | NVD |
| High 8.8 | CVSS 2.0 | AV:N/AC:M/Au:N/C:N/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2019-8320 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 4.19% probability of exploitation activity in the next 30 days, percentile 91.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
Where are the vendor advisories and references?
- https://hackerone.com/reports/317321 x_refsource_MISC
- https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html x_refsource_CONFIRM
- RHSA-2019:1429 vendor-advisory, x_refsource_REDHAT
- openSUSE-SU-2019:1771 vendor-advisory, x_refsource_SUSE
- [debian-lts-announce] 20200816 [SECURITY] [DLA 2330-1] jruby security update mailing-list, x_refsource_MLIST
When was it published, and where is the official record?
- Reserved
- February 13, 2019
- Published
- June 6, 2019, 14:50 UTC
- CVE record updated
- August 4, 2024, 21:17 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 02:41 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:22 UTC; KEV December 3, 2026, 09:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Rubygems?
- Dec 8, 2021CVE-2021-43809 rubygems: argument injection
- Jun 17, 2019CVE-2019-8321 Rubygems: argument injection
- Jun 17, 2019CVE-2019-8322 Rubygems: injection
- Jun 17, 2019CVE-2019-8323 Rubygems: injection
- Jun 17, 2019CVE-2019-8325 Rubygems: injection
- Jun 17, 2019CVE-2019-8324 Rubygems: code injection (remote code execution)
- Mar 13, 2018CVE-2018-1000079 Rubygems: path traversal (reading or writing files outside the intended folder)
- Mar 13, 2018CVE-2018-1000078 Rubygems: cross-site scripting (XSS)
Questions about CVE-2019-8320
Is CVE-2019-8320 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 09:38 UTC. FIRST's EPSS gives it a 4.19% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Rubygems are affected by CVE-2019-8320?
rubygems-update from 2.7.6 before 2.7.9 and rubygems-update from 3.0.0 before 3.0.3, per the GitHub advisory GHSA-5x32-c9mf-49cc. The tables above give every range the sources list.
Which version fixes CVE-2019-8320?
2.7.9 and 3.0.3, per the GitHub advisory GHSA-5x32-c9mf-49cc. Check the vendor's advisory before you rely on it.
How severe is CVE-2019-8320?
High (7.4, CVSS 3.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2019-8320?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.