CVE-2017-0902Rubygems
High 8.1 No auth needed
Follow: this CVE · Rubygems · Rubygems We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.0
- 8.1
- EPSS
- 4.8% probability of exploitation in 30 days · percentile 93
- Auth required
- No
- Published
- Aug 31, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Rubygems.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | rubygems-update |
< 2.6.13 |
2.6.13 |
gem "rubygems-update", ">= 2.6.13" |
Per OSV / GitHub Advisories (GHSA-73w7-6w9g-gc8w). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubygems | rubygems | ≤ 2.6.12 |
| debian | debian_linux | 8.0 |
| debian | debian_linux | 9.0 |
| canonical | ubuntu_linux | 14.04 |
| canonical | ubuntu_linux | 16.04 |
| canonical | ubuntu_linux | 17.10 |
| redhat | enterprise_linux_desktop | 7.0 |
| redhat | enterprise_linux_server | 7.0 |
| redhat | enterprise_linux_server_aus | 7.4 |
| redhat | enterprise_linux_server_aus | 7.6 |
| redhat | enterprise_linux_server_eus | 7.4 |
| redhat | enterprise_linux_server_eus | 7.5 |
| redhat | enterprise_linux_server_eus | 7.6 |
| redhat | enterprise_linux_server_tus | 7.4 |
| redhat | enterprise_linux_server_tus | 7.6 |
| redhat | enterprise_linux_workstation | 7.0 |
Official sources
References
Links published by the sources. Open them with care.
- blog.rubygems.org Patch Vendor Advisory
- www.securityfocus.com Third Party Advisory VDB Entry
- www.securitytracker.com Third Party Advisory VDB Entry
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- github.com Exploit Patch Third Party Advisory
- hackerone.com Exploit Issue Tracking Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- security.gentoo.org Third Party Advisory
- usn.ubuntu.com Third Party Advisory
- usn.ubuntu.com Third Party Advisory
- www.debian.org Third Party Advisory