rubygems: Delete directory using symlink when decompressing tar
Published Jun 6, 2019
7.4
HIGHCVSS 3.0
EPSS 4.19%
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.
Affected products
No data.
No data.
CloudForms Management Engine 5.10
cfme-0:5.10.5.1-1.el7cf
Fixed · RHSA-2019:1429
CloudForms Management Engine 5.10
cfme-amazon-smartstate-0:5.10.5.1-1.el7cf
Fixed · RHSA-2019:1429
CloudForms Management Engine 5.10
cfme-appliance-0:5.10.5.1-1.el7cf
Fixed · RHSA-2019:1429
CloudForms Management Engine 5.10
cfme-gemset-0:5.10.5.1-1.el7cf
Fixed · RHSA-2019:1429
CloudForms Management Engine 5.10
ruby-0:2.4.6-91.el7cf
Fixed · RHSA-2019:1429
Red Hat Enterprise Linux 8
ruby:2.5-8010020190711131821.cdc1202b
Fixed · RHBA-2019:3384
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-ruby24-ruby-0:2.4.6-92.el6
Fixed · RHSA-2019:1150
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby24-ruby-0:2.4.6-92.el7
Fixed · RHSA-2019:1150
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby25-ruby-0:2.5.5-7.el7
Fixed · RHSA-2019:1148
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ruby24-ruby-0:2.4.6-92.el7
Fixed · RHSA-2019:1150
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ruby25-ruby-0:2.5.5-7.el7
Fixed · RHSA-2019:1148
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-ruby24-ruby-0:2.4.6-92.el7
Fixed · RHSA-2019:1150
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-ruby25-ruby-0:2.5.5-7.el7
Fixed · RHSA-2019:1148
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-ruby24-ruby-0:2.4.6-92.el7
Fixed · RHSA-2019:1150
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-ruby25-ruby-0:2.5.5-7.el7
Fixed · RHSA-2019:1148
Red Hat Enterprise Linux 6
rubygems
Not affected
Red Hat Enterprise Linux 7
ruby
Not affected
Red Hat Software Collections
rh-ruby23-ruby
Will not fix
Red Hat Software Collections
rh-ruby26-ruby
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| CloudForms Management Engine 5.10 | cfme-0:5.10.5.1-1.el7cf | Fixed | RHSA-2019:1429 |
| CloudForms Management Engine 5.10 | cfme-amazon-smartstate-0:5.10.5.1-1.el7cf | Fixed | RHSA-2019:1429 |
| CloudForms Management Engine 5.10 | cfme-appliance-0:5.10.5.1-1.el7cf | Fixed | RHSA-2019:1429 |
| CloudForms Management Engine 5.10 | cfme-gemset-0:5.10.5.1-1.el7cf | Fixed | RHSA-2019:1429 |
| CloudForms Management Engine 5.10 | ruby-0:2.4.6-91.el7cf | Fixed | RHSA-2019:1429 |
| Red Hat Enterprise Linux 8 | ruby:2.5-8010020190711131821.cdc1202b | Fixed | RHBA-2019:3384 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-ruby24-ruby-0:2.4.6-92.el6 | Fixed | RHSA-2019:1150 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby24-ruby-0:2.4.6-92.el7 | Fixed | RHSA-2019:1150 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby25-ruby-0:2.5.5-7.el7 | Fixed | RHSA-2019:1148 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ruby24-ruby-0:2.4.6-92.el7 | Fixed | RHSA-2019:1150 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ruby25-ruby-0:2.5.5-7.el7 | Fixed | RHSA-2019:1148 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-ruby24-ruby-0:2.4.6-92.el7 | Fixed | RHSA-2019:1150 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-ruby25-ruby-0:2.5.5-7.el7 | Fixed | RHSA-2019:1148 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-ruby24-ruby-0:2.4.6-92.el7 | Fixed | RHSA-2019:1150 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-ruby25-ruby-0:2.5.5-7.el7 | Fixed | RHSA-2019:1148 |
| Red Hat Enterprise Linux 6 | rubygems | Not affected | n/a |
| Red Hat Enterprise Linux 7 | ruby | Not affected | n/a |
| Red Hat Software Collections | rh-ruby23-ruby | Will not fix | n/a |
| Red Hat Software Collections | rh-ruby26-ruby | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
AV:N/AC:M/Au:N/C:N/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (52 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 4.19% (0.04193) | 90.63th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.21% (0.04212) | 89.65th | v5 (v2026.06.15) |
| Mar 4, 2026 | 6.42% (0.06423) | 90.87th | v4 (v2025.03.14) |
| Mar 1, 2026 | 1.59% (0.01588) | 81.42th | v4 (v2025.03.14) |
| Feb 4, 2026 | 8.47% (0.08473) | 92.14th | v4 (v2025.03.14) |
| Feb 1, 2026 | 2.14% (0.02142) | 83.89th | v4 (v2025.03.14) |
| Jan 4, 2026 | 8.77% (0.08767) | 92.24th | v4 (v2025.03.14) |
| Jan 1, 2026 | 2.22% (0.02224) | 84.14th | v4 (v2025.03.14) |
| Dec 4, 2025 | 8.77% (0.08767) | 92.18th | v4 (v2025.03.14) |
| Dec 1, 2025 | 2.22% (0.02224) | 84.04th | v4 (v2025.03.14) |
| Nov 21, 2025 | 8.77% (0.08767) | 92.16th | v4 (v2025.03.14) |
| Nov 18, 2025 | 5.41% (0.05411) | 89.15th | v4 (v2025.03.14) |
| Nov 4, 2025 | 8.77% (0.08767) | 92.13th | v4 (v2025.03.14) |
| Nov 1, 2025 | 2.22% (0.02224) | 84.00th | v4 (v2025.03.14) |
| Oct 14, 2025 | 8.77% (0.08767) | 92.07th | v4 (v2025.03.14) |
| Oct 4, 2025 | 6.65% (0.06652) | 90.84th | v4 (v2025.03.14) |
| Oct 1, 2025 | 1.65% (0.01649) | 81.43th | v4 (v2025.03.14) |
| Sep 4, 2025 | 6.82% (0.06822) | 90.98th | v4 (v2025.03.14) |
| Sep 1, 2025 | 1.69% (0.01694) | 81.60th | v4 (v2025.03.14) |
| Aug 4, 2025 | 6.65% (0.06652) | 90.83th | v4 (v2025.03.14) |
| Aug 1, 2025 | 1.65% (0.01649) | 81.34th | v4 (v2025.03.14) |
| Jul 4, 2025 | 6.65% (0.06652) | 90.77th | v4 (v2025.03.14) |
| Jul 1, 2025 | 1.65% (0.01649) | 81.23th | v4 (v2025.03.14) |
| Jun 6, 2025 | 6.65% (0.06652) | 90.71th | v4 (v2025.03.14) |
| Jun 4, 2025 | 5.28% (0.05279) | 89.50th | v4 (v2025.03.14) |
| Jun 1, 2025 | 2.40% (0.02402) | 84.32th | v4 (v2025.03.14) |
| May 31, 2025 | 5.28% (0.05279) | 89.49th | v4 (v2025.03.14) |
| May 30, 2025 | 6.66% (0.06657) | 90.70th | v4 (v2025.03.14) |
| May 4, 2025 | 5.29% (0.05289) | 89.45th | v4 (v2025.03.14) |
| May 1, 2025 | 2.01% (0.02006) | 82.75th | v4 (v2025.03.14) |
| Apr 14, 2025 | 5.29% (0.05289) | 89.10th | v4 (v2025.03.14) |
| Apr 13, 2025 | 2.01% (0.02006) | 82.20th | v4 (v2025.03.14) |
| Apr 12, 2025 | 6.66% (0.06657) | 90.38th | v4 (v2025.03.14) |
| Apr 11, 2025 | 4.73% (0.04734) | 88.45th | v4 (v2025.03.14) |
| Apr 10, 2025 | 2.15% (0.02145) | 82.81th | v4 (v2025.03.14) |
| Mar 31, 2025 | 4.73% (0.04734) | 88.39th | v4 (v2025.03.14) |
| Mar 30, 2025 | 2.15% (0.02145) | 82.70th | v4 (v2025.03.14) |
| Mar 29, 2025 | 3.64% (0.03635) | 79.49th | v4 (v2025.03.14) |
| Mar 22, 2025 | 4.73% (0.04734) | 88.48th | v4 (v2025.03.14) |
| Mar 21, 2025 | 2.15% (0.02145) | 82.78th | v4 (v2025.03.14) |
| Mar 17, 2025 | 4.73% (0.04734) | 88.68th | v4 (v2025.03.14) |
| Jul 20, 2024 | 0.60% (0.00605) | 78.76th | v3 (v2023.03.01) |
| May 30, 2024 | 0.60% (0.00605) | 78.52th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.49% (0.00490) | 75.40th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.49% (0.00490) | 72.41th | v3 (v2023.03.01) |
| Mar 6, 2023 | 7.18% (0.07176) | 92.30th | v2 (v2022.01.01) |
| Apr 1, 2022 | 7.18% (0.07176) | 91.55th | v2 (v2022.01.01) |
| Feb 4, 2022 | 7.18% (0.07176) | 80.33th | v2 (v2022.01.01) |
| Feb 3, 2022 | 5.36% (0.05363) | 79.74th | v1 |
| Jan 6, 2022 | 5.36% (0.05363) | 79.54th | v1 |
| Sep 1, 2021 | 1.25% (0.01247) | 68.62th | v1 |
| Apr 14, 2021 | 1.25% (0.01247) | 0.00th | v1 |
References (11)
- http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html vendor-advisoryx_refsource_SUSE
- https://access.redhat.com/errata/RHSA-2019:1429 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2019-8320 Vendor Advisory
- https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html x_refsource_CONFIRMVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1692512 Issue Tracking
- https://github.com/advisories/GHSA-5x32-c9mf-49cc Advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubygems-update/CVE-2019-8320.yml
- https://hackerone.com/reports/317321 x_refsource_MISCExploitThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2019-8320
- https://www.cve.org/CVERecord?id=CVE-2019-8320
| Link | Providers | Tags |
|---|---|---|
| http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html | vendor-advisoryx_refsource_SUSE | |
| https://access.redhat.com/errata/RHSA-2019:1429 | vendor-advisoryx_refsource_REDHAT | |
| https://access.redhat.com/security/cve/CVE-2019-8320 | Vendor Advisory | |
| https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html | x_refsource_CONFIRMVendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1692512 | Issue Tracking | |
| https://github.com/advisories/GHSA-5x32-c9mf-49cc | Advisory | |
| https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubygems-update/CVE-2019-8320.yml | ||
| https://hackerone.com/reports/317321 | x_refsource_MISCExploitThird Party Advisory | |
| https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html | mailing-listx_refsource_MLIST | |
| https://nvd.nist.gov/vuln/detail/CVE-2019-8320 | ||
| https://www.cve.org/CVERecord?id=CVE-2019-8320 |
Change history (0)
No recorded changes yet.