Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
8.1
CVE-2017-0902: RubyGems: DNS hijacking can install malicious gems
CVE-2017-0902 · published 9 years ago
Summary
An attacker can trick RubyGems into downloading and installing fake gems from a server they control. This can happen if you're using an outdated version of RubyGems. Update to the latest version to protect your system.
What to do
- Update jim weirich rubygems-update to version 2.6.13.
- Update canonical ruby2.0 to version 2.0.0.484-1ubuntu2.10.
- Update canonical ruby2.3 to version 2.3.1-2~16.04.6.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| rubygems | jim weirich | rubygems-update |
< 2.6.13 Fix: upgrade to 2.6.13
|
| – | rubygems | rubygems |
<= 2.6.12 cpe:2.3:a:rubygems:rubygems:*:*:*:*:*:*:*:* |
| – | debian | debian_linux |
8.0 9.0 cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
| – | canonical | ubuntu_linux |
14.04 16.04 17.10 cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* |
| – | redhat | enterprise_linux_desktop |
7.0 cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* |
| – | redhat | enterprise_linux_server |
7.0 cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* |
| – | redhat | enterprise_linux_server_aus |
7.4 7.6 cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:* |
| – | redhat | enterprise_linux_server_eus |
7.4 7.5 7.6 cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:* |
| – | redhat | enterprise_linux_server_tus |
7.4 7.6 cpe:2.3:o:redhat:enterprise_linux_server_tus:7.4:*:*:*:*:*:*:* |
| – | redhat | enterprise_linux_workstation |
7.0 cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* |
| Ubuntu:14.04:LTS | canonical | ruby2.0 |
< 2.0.0.484-1ubuntu2.10 Fix: upgrade to 2.0.0.484-1ubuntu2.10
|
| Ubuntu:Pro:14.04:LTS | canonical | jruby | All versions |
| Ubuntu:16.04:LTS | canonical | ruby2.3 |
< 2.3.1-2~16.04.6 Fix: upgrade to 2.3.1-2~16.04.6
|
Original advisory text
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 attac...
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.
References
- https://access.redhat.com/errata/RHSA-2017:3485 Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-0902
- https://access.redhat.com/errata/RHSA-2018:0378 Vendor Advisory
- https://web.archive.org/web/20170907040741/http://www.securityfocus.com/bid/1005...
- https://web.archive.org/web/20170907215801/http://www.securitytracker.com/id/103...
- https://access.redhat.com/errata/RHSA-2018:0583 Vendor Advisory
- https://github.com/advisories/GHSA-73w7-6w9g-gc8w
- http://www.securityfocus.com/bid/100586 Vendor Advisory
- https://ubuntu.com/security/CVE-2017-0902 Third Party Advisory
- https://www.ruby-lang.org/en/news/2017/08/29/multiple-vulnerabilities-in-rubygem... Third Party Advisory
- https://hackerone.com/reports/218088 Third Party Advisory
- http://www.securitytracker.com/id/1039249 Vendor Advisory
- https://access.redhat.com/errata/RHSA-2018:0585 Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html Vendor Advisory
- https://security.gentoo.org/glsa/201710-01 Vendor Advisory
- https://usn.ubuntu.com/3553-1/ Vendor Advisory
- https://usn.ubuntu.com/3685-1/ Vendor Advisory
- https://www.debian.org/security/2017/dsa-3966 Vendor Advisory
- https://github.com/rubygems/rubygems/commit/8d91516fb7037ecfb27622f605dc40245e0f... Patch
- http://blog.rubygems.org/2017/08/27/2.6.13-released.html Third Party Advisory
- https://ubuntu.com/security/notices/USN-3553-1 Vendor Advisory
- https://ubuntu.com/security/notices/USN-3685-1 Vendor Advisory
- https://www.cve.org/CVERecord?id=CVE-2017-0902 Third Party Advisory
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker full control (estimated)
Type
CWE-346Origin Validation Error
CWE-350Reliance on Reverse DNS Resolution for a Security-Critical Action
Timeline
Published31 Aug 2017
Updated25 Oct 2026
First seen6 Mar 2026
Sources
GHSA-73w7-6w9g-gc8w · GHSA
CVE-2017-0902 · NVD
UBUNTU-CVE-2017-0902 · OSV
CVE-2017-0902 · OSV
Track software like this
Free during beta