CVE-2017-0901
Description
RubyGems version 2.6.12 and earlier fails to validate specification names, allowing a maliciously crafted gem to potentially overwrite any file on the filesystem.
Severity
HIGH
CVSS v3
7.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N · source nvd
Exploit chance (EPSS)
29.442%
chance of exploitation in the next 30 days
higher than 98.2% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 0
Nuclei templates: 0
Exploit-DB: 1
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
Timeline
- 2017-08-31Published by the CNA20:00 UTC
- 2017-09-04First Exploit-DB entry (EDB-ID 42611)4 days after publication
- 2022-05-13GitHub advisory published (GHSA-pm9x-4392-2c2p)1716 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 42611 | local | linux | 2017-09-04 | yes |
GitHub advisory GHSA-pm9x-4392-2c2p, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| RubyGems rubygems-update | before 2.6.13 | 2.6.13 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| rubygems rubygems | through 2.6.12no fix listed | not listed |
| canonical ubuntu_linux | 14.04no fix listed16.04no fix listed17.10no fix listed | not listednot listednot listed |
| debian debian_linux | 8.0no fix listed9.0no fix listed | not listednot listed |
| redhat enterprise_linux_desktop | 7.0no fix listed | not listed |
| redhat enterprise_linux_server | 7.0no fix listed | not listed |
| redhat enterprise_linux_server_aus | 7.4no fix listed7.6no fix listed | not listednot listed |
| redhat enterprise_linux_server_eus | 7.4no fix listed7.5no fix listed7.6no fix listed | not listednot listednot listed |
| redhat enterprise_linux_server_tus | 7.4no fix listed7.6no fix listed | not listednot listed |
| redhat enterprise_linux_workstation | 7.0no fix listed | not listed |
References
- http://blog.rubygems.org/2017/08/27/2.6.13-released.html
- https://github.com/rubygems/rubygems/commit/ad5c0a53a86ca5b218c7976765c0365b91d22cb2
- https://hackerone.com/reports/243156
- https://access.redhat.com/errata/RHSA-2017:3485
- https://access.redhat.com/errata/RHSA-2018:0378
- https://access.redhat.com/errata/RHSA-2018:0583
- https://access.redhat.com/errata/RHSA-2018:0585
- https://security.gentoo.org/glsa/201710-01
- https://usn.ubuntu.com/3553-1/
- https://usn.ubuntu.com/3685-1/
- https://www.debian.org/security/2017/dsa-3966
- https://www.exploit-db.com/exploits/42611/
- http://www.securityfocus.com/bid/100580
- http://www.securitytracker.com/id/1039249
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2017-0901'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2017-0901'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2017-0901'curl 'https://api.contrastcyber.com/cve_products/CVE-2017-0901'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).