CVE-2019-8320
publishedrubygems: Delete directory using symlink when decompressing tar
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Alpine Linux | v3.6 | ruby | Fixed | 2.4.6-r0 | Package fix record |
| Debian | jessie | ruby2.1 | Advisory build | 2.1.5-2+deb8u7 | DLA-1735-1 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubysrc | Advisory build | 2.4.6-92.el6 | RHSA-2019:1150 |
| Alpine Linux | v3.7 | ruby | Fixed | 2.4.6-r0 | Package fix record |
| Alpine Linux | v3.8 | ruby | Fixed | 2.5.5-r0 | Package fix record |
| Alpine Linux | v3.9 | ruby | Fixed | 2.5.5-r0 | Package fix record |
| Debian | stretch | jruby | Advisory build | 1.7.26-1+deb9u2 | DLA-2330-1 |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Debian | stretch | ruby2.3 | Advisory build | 2.3.3-1+deb9u6 | DSA-4433-1 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubyx86_64 | Advisory build | 2.4.6-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-ruby-debuginfox86_64 | Advisory build | 2.4.6-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-ruby-develx86_64 | Advisory build | 2.4.6-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-ruby-docnoarch | Advisory build | 2.4.6-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-ruby-irbnoarch | Advisory build | 2.4.6-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-ruby-libsx86_64 | Advisory build | 2.4.6-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-bigdecimalx86_64 | Advisory build | 1.3.2-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-did_you_meanx86_64 | Advisory build | 1.1.0-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-io-consolex86_64 | Advisory build | 0.4.6-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-jsonx86_64 | Advisory build | 2.0.4-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-minitestnoarch | Advisory build | 5.10.1-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-net-telnetx86_64 | Advisory build | 0.1.1-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-opensslx86_64 | Advisory build | 2.0.9-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-power_assertnoarch | Advisory build | 0.4.1-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-psychx86_64 | Advisory build | 2.2.2-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-rakenoarch | Advisory build | 12.0.0-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-rdocnoarch | Advisory build | 5.0.0-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-test-unitnoarch | Advisory build | 3.2.3-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygem-xmlrpcnoarch | Advisory build | 0.2.1-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygemsnoarch | Advisory build | 2.6.14.4-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-6 | rh-ruby24-rubygems-develnoarch | Advisory build | 2.6.14.4-92.el6 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-rubysrc | Advisory build | 2.4.6-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-rubyx86_64 | Advisory build | 2.4.6-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-ruby-debuginfox86_64 | Advisory build | 2.4.6-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-ruby-develx86_64 | Advisory build | 2.4.6-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-ruby-docnoarch | Advisory build | 2.4.6-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-ruby-irbnoarch | Advisory build | 2.4.6-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-ruby-libsx86_64 | Advisory build | 2.4.6-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-rubygem-bigdecimalx86_64 | Advisory build | 1.3.2-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-rubygem-did_you_meanx86_64 | Advisory build | 1.1.0-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-rubygem-io-consolex86_64 | Advisory build | 0.4.6-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-rubygem-jsonx86_64 | Advisory build | 2.0.4-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-rubygem-minitestnoarch | Advisory build | 5.10.1-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-rubygem-net-telnetx86_64 | Advisory build | 0.1.1-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-rubygem-opensslx86_64 | Advisory build | 2.0.9-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-rubygem-power_assertnoarch | Advisory build | 0.4.1-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-rubygem-psychx86_64 | Advisory build | 2.2.2-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-rubygem-rakenoarch | Advisory build | 12.0.0-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-rubygem-rdocnoarch | Advisory build | 5.0.0-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-rubygem-test-unitnoarch | Advisory build | 3.2.3-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-rubygem-xmlrpcnoarch | Advisory build | 0.2.1-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-rubygemsnoarch | Advisory build | 2.6.14.4-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby24-rubygems-develnoarch | Advisory build | 2.6.14.4-92.el7 | RHSA-2019:1150 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubyaarch64 | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubyppc64le | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubys390x | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubysrc | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubyx86_64 | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-ruby-debuginfoaarch64 | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-ruby-debuginfoppc64le | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-ruby-debuginfos390x | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-ruby-debuginfox86_64 | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-ruby-develaarch64 | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-ruby-develppc64le | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-ruby-devels390x | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-ruby-develx86_64 | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-ruby-docnoarch | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-ruby-irbnoarch | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-ruby-libsaarch64 | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-ruby-libsppc64le | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-ruby-libss390x | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-ruby-libsx86_64 | Advisory build | 2.5.5-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-bigdecimalaarch64 | Advisory build | 1.3.4-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-bigdecimalppc64le | Advisory build | 1.3.4-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-bigdecimals390x | Advisory build | 1.3.4-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-bigdecimalx86_64 | Advisory build | 1.3.4-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-did_you_meannoarch | Advisory build | 1.2.0-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-io-consoleaarch64 | Advisory build | 0.4.6-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-io-consoleppc64le | Advisory build | 0.4.6-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-io-consoles390x | Advisory build | 0.4.6-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-io-consolex86_64 | Advisory build | 0.4.6-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-jsonaarch64 | Advisory build | 2.1.0-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-jsonppc64le | Advisory build | 2.1.0-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-jsons390x | Advisory build | 2.1.0-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-jsonx86_64 | Advisory build | 2.1.0-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-minitestnoarch | Advisory build | 5.10.3-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-net-telnetnoarch | Advisory build | 0.1.1-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-opensslaarch64 | Advisory build | 2.1.2-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-opensslppc64le | Advisory build | 2.1.2-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-openssls390x | Advisory build | 2.1.2-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-opensslx86_64 | Advisory build | 2.1.2-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-power_assertnoarch | Advisory build | 1.1.1-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-psychaarch64 | Advisory build | 3.0.2-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-psychppc64le | Advisory build | 3.0.2-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-psychs390x | Advisory build | 3.0.2-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-psychx86_64 | Advisory build | 3.0.2-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-rakenoarch | Advisory build | 12.3.0-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-rdocnoarch | Advisory build | 6.0.1-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-test-unitnoarch | Advisory build | 3.2.7-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygem-xmlrpcnoarch | Advisory build | 0.3.0-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygemsnoarch | Advisory build | 2.7.6.2-7.el7 | RHSA-2019:1148 |
| Red Hat Enterprise Linux | RHEL-7 | rh-ruby25-rubygems-develnoarch | Advisory build | 2.7.6.2-7.el7 | RHSA-2019:1148 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
5- openSUSE-SU-2019:1771 http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html
- RHSA-2019:1429 https://access.redhat.com/errata/RHSA-2019:1429
- https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html
- https://hackerone.com/reports/317321
- [debian-lts-announce] 20200816 [SECURITY] [DLA 2330-1] jruby security update https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 14fa9259c9305635d483195b02ab8c6e61c176d0efef698af2c7d5f8fee57048
- Ingested
- 23 Sep 2026, 07:47:40 UTC
- Source record
- Official CVE record