CVE-2017-0902
Description
RubyGems version 2.6.12 and earlier is vulnerable to a DNS hijacking vulnerability that allows a MITM attacker to force the RubyGems client to download and install gems from a server that the attacker controls.
Severity
HIGH
CVSS v3
8.1
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
4.750%
chance of exploitation in the next 30 days
higher than 92% 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
Weakness
- CWE-350: Reliance on Reverse DNS Resolution for a Security-Critical Action
Timeline
- 2017-08-31Published by the CNA20:00 UTC
- 2022-05-13GitHub advisory published (GHSA-73w7-6w9g-gc8w)1716 days after publication
Exploit and advisory records
GitHub advisory GHSA-73w7-6w9g-gc8w, affected packages:
| Ecosystem | Package | Vulnerable range | Patched |
|---|---|---|---|
| RubyGems | rubygems-update | < 2.6.13 | 2.6.13 |
Affected products
| Vendor | Product |
|---|---|
| canonical | ubuntu_linux |
| debian | debian_linux |
| redhat | enterprise_linux_desktop |
| redhat | enterprise_linux_server |
| redhat | enterprise_linux_server_aus |
| redhat | enterprise_linux_server_eus |
| redhat | enterprise_linux_server_tus |
| redhat | enterprise_linux_workstation |
| rubygems | rubygems |
References
- http://blog.rubygems.org/2017/08/27/2.6.13-released.html
- https://github.com/rubygems/rubygems/commit/8d91516fb7037ecfb27622f605dc40245e0f8d32
- 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://hackerone.com/reports/218088
- http://www.securityfocus.com/bid/100586
- 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-0902'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2017-0902'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2017-0902'curl 'https://api.contrastcyber.com/cve_products/CVE-2017-0902'
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).