HIGH7.5
GHSA-pm9x-4392-2c2p
RubyGems may allow a maliciously crafted gem to overwrite files
Quick fix
GHSA-pm9x-4392-2c2p — rubygems-update: upgrade to the fixed version with the command below.
bundle update rubygems-updateDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-0901[ADVISORY]
- https://github.com/rubygems/rubygems/commit/ad5c0a53a86ca5b218c7976765c0365b91d22cb2[WEB]
- https://hackerone.com/reports/243156[WEB]
- https://access.redhat.com/errata/RHSA-2017:3485[WEB]
- https://access.redhat.com/errata/RHSA-2018:0378[WEB]
- https://access.redhat.com/errata/RHSA-2018:0583[WEB]
- https://access.redhat.com/errata/RHSA-2018:0585[WEB]
- https://github.com/rubygems/rubygems[PACKAGE]
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html[WEB]
- https://security.gentoo.org/glsa/201710-01[WEB]
- https://usn.ubuntu.com/3553-1[WEB]
- https://usn.ubuntu.com/3685-1[WEB]
- https://web.archive.org/web/20170907215801/http://www.securitytracker.com/id/1039249[WEB]
- https://web.archive.org/web/20170915000000*/http://www.securityfocus.com/bid/100580#:~:text=1%20snapshot-,16%3A05%3A26,-Note[WEB]
- https://www.debian.org/security/2017/dsa-3966[WEB]
- https://www.exploit-db.com/exploits/42611[WEB]
- http://blog.rubygems.org/2017/08/27/2.6.13-released.html[WEB]