CVE-2018-1000079: Path Traversal

Published Feb 15, 2018
·
Updated

Last updated 18 August 2025

Other sources

Path traversal issue during gem installation allows to write to arbitrary filesystem locations.

Upstream fixes:

https://github.com/rubygems/rubygems/commit/f83f911e19e27cbac1ccce7471d96642241dd759 https://github.com/rubygems/rubygems/commit/666ef793cad42eed96f7aee1cdf77865db921099

External References:

https://www.ruby-lang.org/en/news/2018/02/17/multiple-vulnerabilities-in-rubygems/

Red Hat

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 gem installation that can result in the gem could write to arbitrary filesystem locations during installation. This attack appear to be exploitable via the victim must install a malicious gem. This vulnerability appears to have been fixed in 2.7.6.

Affected Software

16 affected componentsFixes available
redhat/ruby<0:2.0.0.648-36.el7
0:2.0.0.648-36.el7
redhat/ruby<0:2.0.0.648-35.el7_4
0:2.0.0.648-35.el7_4
redhat/ruby<0:2.0.0.648-35.el7_5
0:2.0.0.648-35.el7_5
redhat/ruby<0:2.0.0.648-36.el7_6
0:2.0.0.648-36.el7_6
redhat/rh-ruby23-ruby<0:2.3.8-69.el6
0:2.3.8-69.el6
redhat/rh-ruby24-ruby<0:2.4.5-91.el6
0:2.4.5-91.el6
redhat/rh-ruby23-ruby<0:2.3.8-69.el7
0:2.3.8-69.el7
redhat/rh-ruby24-ruby<0:2.4.5-91.el7
0:2.4.5-91.el7
redhat/rh-ruby25-ruby<0:2.5.3-6.el7
0:2.5.3-6.el7
redhat/rubygems<2.7.6
2.7.6
Rubygems RubyGems<=2.2.9
Rubygems RubyGems<=2.3.6
Rubygems RubyGems<=2.4.3
Rubygems RubyGems<=2.5.0
debian/jruby
9.3.9.0+ds-89.4.8.0+ds-3
debian/rubygems
3.2.5-23.2.5-2+deb11u13.3.15-2+deb12u13.6.7-2

Event History

Feb 15, 2018
CVE Published
12:00 AM
Mar 13, 2018
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Jan 11, 2024
Data Sourced
via Launchpad·10:43 PM
Description
Feb 19, 2026
Data Sourced
via Ubuntu·07:41 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·07:42 PM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is vulnerability CVE-2018-1000079?

CVE-2018-1000079 is a vulnerability in RubyGems that allows for directory traversal during gem installation.

2

What is the severity of CVE-2018-1000079?

The severity of CVE-2018-1000079 is medium with a CVSS score of 5.5.

3

Which versions of RubyGems are affected by CVE-2018-1000079?

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 are affected by CVE-2018-1000079.

4

How can I fix CVE-2018-1000079?

To fix CVE-2018-1000079, update to RubyGems version 2.7.6 or later.

5

Where can I find more information about CVE-2018-1000079?

You can find more information about CVE-2018-1000079 on the RubyGems blog and the GitHub commits mentioned in the references.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203