CVE-2017-0902 · hackerone
CVE-2017-0902
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.
Published 2017-08-31, last changed 2026-06-17. Weakness: CWE-350, CWE-346.
How to fix
Upgrade to a fixed version: rubygems-update 2.6.13 (RubyGems). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in rubygems/rubygems by 8d91516fb7, 8d91516fb7. Functions changed by the fix: api_endpoint. Regression tests: test/rubygems/test_gem_remote_fetcher.rb. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2017-08-31 | Published |
| 2022-05-13 | Package advisory GHSA-73w7-6w9g-gc8w |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 4.75% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-73w7-6w9g-gc8w | rubygems-update (RubyGems) | 2.6.13 |
Also known as: GHSA-73w7-6w9g-gc8w
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2019-8323 | 2019-06-17 | 7.5 | same package: rubygems-update (RubyGems) |
| CVE-2019-8322 | 2019-06-17 | 7.5 | same package: rubygems-update (RubyGems) |
| CVE-2019-8321 | 2019-06-17 | 7.5 | same package: rubygems-update (RubyGems) |
| CVE-2019-8325 | 2019-06-17 | 7.5 | same package: rubygems-update (RubyGems) |
| CVE-2019-8324 | 2019-06-17 | 8.8 | same package: rubygems-update (RubyGems) |
| CVE-2019-8320 | 2019-06-06 | 7.4 | same package: rubygems-update (RubyGems) |
| CVE-2018-1000079 | 2018-03-13 | 5.5 | same package: rubygems-update (RubyGems) |
| CVE-2018-1000078 | 2018-03-13 | 6.1 | same package: rubygems-update (RubyGems) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-0902, or call /api/v1/vulnerabilities/CVE-2017-0902. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.