{"id":"CVE-2018-1000073","published":"2018-03-13T15:00:00Z","modified":"2024-08-05T12:33:49Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.04905,"percentile":0.92305,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.debian.org/security/2018/dsa-4219","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://usn.ubuntu.com/3621-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3729","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3730","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3731","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://github.com/rubygems/rubygems/commit/1b931fc03b819b9a0214be3eaca844ef534175e2","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/08/msg00028.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.debian.org/security/2018/dsa-4259","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://blog.rubygems.org/2018/02/15/2.7.6-released.html","tags":["x_refsource_MISC"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2028","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2020:0542","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2020:0591","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2020:0663","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":18.5,"factors":[{"name":"EPSS percentile","points":18.46}]},"affected":[{"ecosystem":"RubyGems","package":"rubygems-update","vulnerableRanges":["<2.7.6"],"patched":["2.7.6"],"from":["GHSA-gx69-6cp4-hxrj"],"provenance":"source"},{"ecosystem":"Maven","package":"org.jruby:jruby-stdlib","vulnerableRanges":["<9.1.16.0"],"patched":["9.1.16.0"],"from":["GHSA-gx69-6cp4-hxrj"],"provenance":"source"}],"summary":{"text":"The flaw is a directory traversal vulnerability in the install_location function of package.rb in RubyGems, affecting the RubyGems versions bundled with Ruby 2.2 through 2.5 before trunk revision 62422. An attacker able to get a malicious package installed could cause RubyGems to write files outside the intended root directory by following a symlinked base directory, with no further conditions beyond that installation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:13:03Z"},"euvd":{"id":"EUVD-2022-4029","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-rubygems-update-cve-2018-1000073","children":[{"from":"CVE-2018-1000073","to":"CVE-2018-1000079","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/rubygems/package.rb"],"commits":["https://github.com/rubygems/rubygems/commit/1b931fc03b819b9a0214be3eaca844ef534175e2","https://github.com/rubygems/rubygems/commit/666ef793cad42eed96f7aee1cdf77865db921099","https://github.com/rubygems/rubygems/commit/f83f911e19e27cbac1ccce7471d96642241dd759"],"basis":"shared function","functions":["install_location"]}]}]}}