CVE-2017-0902
RubyGems has Origin Validation Error vulnerability
Also known as GHSA-73w7-6w9g-gc8w
Mitigation
- Upgrade rubygems-update to 2.6.13 or later.
Who should check
- Projects that depend on RubyGems package rubygems-update (< 2.6.13)
- Anyone running HackerOne RubyGems Versions before 2.6.13
Vulnerability facts
- Affected
- rubygems-update < 2.6.13
- Fixed in
- 2.6.13
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.1 (v3.0, NVD)CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 4.75% chance of exploitation in 30 days (percentile 93, 2026-11-26)
- CWE
- CWE-350
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| RubyGems rubygems-update | < 2.6.13 | 2.6.13 | osv |
| HackerOne RubyGems | Versions before 2.6.13 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2017-0902. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2017-0902.md Affected: rubygems-update < 2.6.13 Fixed in: 2.6.13 Steps: 1. Search this machine and project for rubygems-update (RubyGems), HackerOne RubyGems: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://usn.ubuntu.com/3685-1/
- https://usn.ubuntu.com/3553-1/
- https://access.redhat.com/errata/RHSA-2018:0585
- https://www.debian.org/security/2017/dsa-3966
- https://access.redhat.com/errata/RHSA-2018:0378
- https://access.redhat.com/errata/RHSA-2017:3485
- https://access.redhat.com/errata/RHSA-2018:0583
- https://security.gentoo.org/glsa/201710-01
- https://nvd.nist.gov/vuln/detail/CVE-2017-0902
Patches
Exploits and PoCs
Other
- http://www.securitytracker.com/id/1039249
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
- http://www.securityfocus.com/bid/100586
- https://github.com/rubygems/rubygems
- https://usn.ubuntu.com/3553-1
- https://usn.ubuntu.com/3685-1
- https://web.archive.org/web/20170907040741/http://www.securityfocus.com/bid/100586
- https://web.archive.org/web/20170907215801/http://www.securitytracker.com/id/1039249
FAQ
Is CVE-2017-0902 being exploited?
There is no confirmed exploitation: CVE-2017-0902 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 4.75% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2017-0902?
High: CVSS 8.1 (v3.0, scored by NVD). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2017-0902?
rubygems-update < 2.6.13.
Is there a fix for CVE-2017-0902?
Yes. Fixed in 2.6.13. Upgrade rubygems-update to 2.6.13 or later.
How do I check if I'm affected by CVE-2017-0902?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.