rubygems: Path traversal when writing to a symlinked basedir outside of the root
Published Mar 13, 2018
7.5
HIGHCVSS 3.0
EPSS 4.91%
Description
RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series: 2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5 series: 2.5.0 and earlier, prior to trunk revision 62422 contains a Directory Traversal vulnerability in install_location function of package.rb that can result in path traversal when writing to a symlinked basedir outside of the root. This vulnerability appears to have been fixed in 2.7.6.
Affected products
No data.
No data.
Red Hat Enterprise Linux 7
ruby-0:2.0.0.648-36.el7
Fixed · RHSA-2019:2028
Red Hat Enterprise Linux 7.4 Advanced Update Support
ruby-0:2.0.0.648-35.el7_4
Fixed · RHSA-2020:0591
Red Hat Enterprise Linux 7.4 Telco Extended Update Support
ruby-0:2.0.0.648-35.el7_4
Fixed · RHSA-2020:0591
Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions
ruby-0:2.0.0.648-35.el7_4
Fixed · RHSA-2020:0591
Red Hat Enterprise Linux 7.5 Extended Update Support
ruby-0:2.0.0.648-35.el7_5
Fixed · RHSA-2020:0542
Red Hat Enterprise Linux 7.6 Extended Update Support
ruby-0:2.0.0.648-36.el7_6
Fixed · RHSA-2020:0663
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-ruby23-ruby-0:2.3.8-69.el6
Fixed · RHSA-2018:3729
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-ruby24-ruby-0:2.4.5-91.el6
Fixed · RHSA-2018:3730
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby23-ruby-0:2.3.8-69.el7
Fixed · RHSA-2018:3729
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby24-ruby-0:2.4.5-91.el7
Fixed · RHSA-2018:3730
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby25-ruby-0:2.5.3-6.el7
Fixed · RHSA-2018:3731
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ruby23-ruby-0:2.3.8-69.el7
Fixed · RHSA-2018:3729
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ruby24-ruby-0:2.4.5-91.el7
Fixed · RHSA-2018:3730
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ruby25-ruby-0:2.5.3-6.el7
Fixed · RHSA-2018:3731
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-ruby23-ruby-0:2.3.8-69.el7
Fixed · RHSA-2018:3729
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-ruby24-ruby-0:2.4.5-91.el7
Fixed · RHSA-2018:3730
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-ruby25-ruby-0:2.5.3-6.el7
Fixed · RHSA-2018:3731
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-ruby23-ruby-0:2.3.8-69.el7
Fixed · RHSA-2018:3729
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-ruby24-ruby-0:2.4.5-91.el7
Fixed · RHSA-2018:3730
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-ruby25-ruby-0:2.5.3-6.el7
Fixed · RHSA-2018:3731
Red Hat Enterprise Linux 6
rubygems
Will not fix
Red Hat Enterprise Linux 8
ruby
Not affected
Red Hat Enterprise MRG 2
rubygems
Will not fix
Red Hat Fuse 7
jruby
Will not fix
Red Hat JBoss A-MQ 6
jruby-3977
Will not fix
Red Hat JBoss A-MQ 6
jruby-4198
Will not fix
Red Hat JBoss Enterprise Application Platform 5
jruby
Out of support scope
Red Hat JBoss Fuse 6
jruby-3977
Will not fix
Red Hat JBoss Fuse 6
jruby-4198
Will not fix
Red Hat JBoss Fuse Service Works 6
jruby
Out of support scope
Red Hat Satellite 6
rubygems
Will not fix
Red Hat Subscription Asset Manager
ruby193-rubygems
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | ruby-0:2.0.0.648-36.el7 | Fixed | RHSA-2019:2028 |
| Red Hat Enterprise Linux 7.4 Advanced Update Support | ruby-0:2.0.0.648-35.el7_4 | Fixed | RHSA-2020:0591 |
| Red Hat Enterprise Linux 7.4 Telco Extended Update Support | ruby-0:2.0.0.648-35.el7_4 | Fixed | RHSA-2020:0591 |
| Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions | ruby-0:2.0.0.648-35.el7_4 | Fixed | RHSA-2020:0591 |
| Red Hat Enterprise Linux 7.5 Extended Update Support | ruby-0:2.0.0.648-35.el7_5 | Fixed | RHSA-2020:0542 |
| Red Hat Enterprise Linux 7.6 Extended Update Support | ruby-0:2.0.0.648-36.el7_6 | Fixed | RHSA-2020:0663 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-ruby23-ruby-0:2.3.8-69.el6 | Fixed | RHSA-2018:3729 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-ruby24-ruby-0:2.4.5-91.el6 | Fixed | RHSA-2018:3730 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby23-ruby-0:2.3.8-69.el7 | Fixed | RHSA-2018:3729 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby24-ruby-0:2.4.5-91.el7 | Fixed | RHSA-2018:3730 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby25-ruby-0:2.5.3-6.el7 | Fixed | RHSA-2018:3731 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ruby23-ruby-0:2.3.8-69.el7 | Fixed | RHSA-2018:3729 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ruby24-ruby-0:2.4.5-91.el7 | Fixed | RHSA-2018:3730 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ruby25-ruby-0:2.5.3-6.el7 | Fixed | RHSA-2018:3731 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-ruby23-ruby-0:2.3.8-69.el7 | Fixed | RHSA-2018:3729 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-ruby24-ruby-0:2.4.5-91.el7 | Fixed | RHSA-2018:3730 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-ruby25-ruby-0:2.5.3-6.el7 | Fixed | RHSA-2018:3731 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-ruby23-ruby-0:2.3.8-69.el7 | Fixed | RHSA-2018:3729 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-ruby24-ruby-0:2.4.5-91.el7 | Fixed | RHSA-2018:3730 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-ruby25-ruby-0:2.5.3-6.el7 | Fixed | RHSA-2018:3731 |
| Red Hat Enterprise Linux 6 | rubygems | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | ruby | Not affected | n/a |
| Red Hat Enterprise MRG 2 | rubygems | Will not fix | n/a |
| Red Hat Fuse 7 | jruby | Will not fix | n/a |
| Red Hat JBoss A-MQ 6 | jruby-3977 | Will not fix | n/a |
| Red Hat JBoss A-MQ 6 | jruby-4198 | Will not fix | n/a |
| Red Hat JBoss Enterprise Application Platform 5 | jruby | Out of support scope | n/a |
| Red Hat JBoss Fuse 6 | jruby-3977 | Will not fix | n/a |
| Red Hat JBoss Fuse 6 | jruby-4198 | Will not fix | n/a |
| Red Hat JBoss Fuse Service Works 6 | jruby | Out of support scope | n/a |
| Red Hat Satellite 6 | rubygems | Will not fix | n/a |
| Red Hat Subscription Asset Manager | ruby193-rubygems | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue affects the versions of rubygems as shipped with Red Hat Subscription Asset Manager 1.x. Red Hat Product Security has rated this issue as having security impact of Moderate. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/. This issue affects the versions of rubygems as shipped with Red Hat Satellite version 6 on Red Hat Enterprise Linux version 5. Red Hat Product Security has rated this issue as having security impact of Moderate. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
1 other source (Red Hat) ▾
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
AV:N/AC:L/Au:N/C:P/I:N/A:N
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 (16 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 4.91% (0.04905) | 91.83th | v5 (v2026.06.15) |
| Jun 15, 2026 | 5.08% (0.05076) | 91.21th | v5 (v2026.06.15) |
| Mar 30, 2025 | 0.88% (0.00875) | 73.18th | v4 (v2025.03.14) |
| Mar 29, 2025 | 4.66% (0.04658) | 81.81th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.88% (0.00875) | 73.67th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.55% (0.00553) | 78.30th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.55% (0.00553) | 76.85th | v3 (v2023.03.01) |
| Jul 8, 2023 | 0.55% (0.00553) | 74.45th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.81% (0.00809) | 79.12th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.69% (0.02686) | 82.85th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.69% (0.02686) | 81.17th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.69% (0.02686) | 62.66th | v2 (v2022.01.01) |
| Feb 3, 2022 | 3.08% (0.03080) | 65.20th | v1 |
| Jan 6, 2022 | 3.08% (0.03080) | 64.86th | v1 |
| Sep 1, 2021 | 3.08% (0.03080) | 81.27th | v1 |
| Apr 14, 2021 | 3.08% (0.03080) | 0.00th | v1 |
References (23)
- http://blog.rubygems.org/2018/02/15/2.7.6-released.html x_refsource_MISCVendor Advisory
- http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html vendor-advisoryx_refsource_SUSE
- https://access.redhat.com/errata/RHSA-2018:3729 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2018:3730 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2018:3731 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2019:2028 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2020:0542 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2020:0591 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2020:0663 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2018-1000073 Vendor Advisory
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=925986
- https://bugzilla.redhat.com/show_bug.cgi?id=1547418 Issue Tracking
- https://github.com/advisories/GHSA-gx69-6cp4-hxrj Advisory
- https://github.com/jruby/jruby/commit/0b06b48ab4432237ce5fc1bef47f2c6bcf7843f7
- https://github.com/rubygems/rubygems/commit/1b931fc03b819b9a0214be3eaca844ef534175e2 x_refsource_MISCPatchThird Party Advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubygems-update/CVE-2018-1000073.yml
- https://lists.debian.org/debian-lts-announce/2018/08/msg00028.html mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2018-1000073
- https://usn.ubuntu.com/3621-1/ vendor-advisoryx_refsource_UBUNTU
- https://www.cve.org/CVERecord?id=CVE-2018-1000073
- https://www.debian.org/security/2018/dsa-4219 vendor-advisoryx_refsource_DEBIAN
- https://www.debian.org/security/2018/dsa-4259 vendor-advisoryx_refsource_DEBIAN
- https://www.ruby-lang.org/en/news/2018/02/17/multiple-vulnerabilities-in-rubygems/
Change history (0)
No recorded changes yet.