HighGHSA-pm9x-4392-2c2pCVE-2017-0901
RubyGems may allow a maliciously crafted gem to overwrite files
Published 13 May 2022 · Updated 22 Feb 2024
Is your project on an affected rubygems-update?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
rubygems-updateRubyGems
- Affected
- <2.6.13
- Fixed in
- 2.6.13
Update to the fixed version for your release line, for example:
bundle update --conservative rubygems-update # Gemfile: '>= 2.6.13'Details
RubyGems versions 2.6.12 and earlier fail to validate specification names, allowing a maliciously crafted gem to potentially overwrite any file on the filesystem.
Is GHSA-pm9x-4392-2c2p in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected rubygems-update, and gives you the command that fixes it.
More advisories for rubygems-update
- MediumCVE-2012-2125RubyGems HTTPS to HTTP redirect · 17 May 2022
- MediumCVE-2012-2126RubyGems does not verify SSL certificate · 17 May 2022
- MediumCVE-2013-4363RubyGems Regular Expression Denial of Service · 17 May 2022
- MediumCVE-2015-4020RubyGems Improper Input Validation vulnerability · 17 May 2022
- MediumCVE-2018-1000079RubyGems Path Traversal vulnerability · 14 May 2022
- HighCVE-2015-3900RubyGems vulnerable to DNS hijack attack · 14 May 2022
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2017-0901
- Linkgithub.com/rubygems/rubygems/commit/ad5c0a53a86ca5b218c7976765c0365b91d22cb2
- Linkhackerone.com/reports/243156
- Linkaccess.redhat.com/errata/RHSA-2017:3485
- Linkaccess.redhat.com/errata/RHSA-2018:0378
- Linkaccess.redhat.com/errata/RHSA-2018:0583
- Linkaccess.redhat.com/errata/RHSA-2018:0585
- Packagegithub.com/rubygems/rubygems
- Linklists.debian.org/debian-lts-announce/2018/07/msg00012.html
- Linksecurity.gentoo.org/glsa/201710-01
- Linkusn.ubuntu.com/3553-1
- Linkusn.ubuntu.com/3685-1
- Linkweb.archive.org/web/20170907215801/http://www.securitytracker.com/id/1039249
- Linkweb.archive.org/web/20170915000000*/http://www.securityfocus.com/bid/100580#:~:text=1%20snapshot-,16%3A05%3A26,-Note
- Linkwww.debian.org/security/2017/dsa-3966
- Linkwww.exploit-db.com/exploits/42611
- Linkblog.rubygems.org/2017/08/27/2.6.13-released.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.