cve.bz

CVE-2017-0902 Origin Validation Error

8.1 highExploit referenceEPSS 4.8%Fix available

High (8.1). EPSS 4.8% estimated probability of exploitation activity in the next 30 days. Fixed in rubygems-update 2.6.13.

On this page
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

CVSS 3.0

8.1 high
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
4.8% (unchanged from 4.8% a week ago; 4.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-346 Origin Validation Error
CWE-350 Reliance on Reverse DNS Resolution for a Security-Critical Action
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-0902 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-0902?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-0902?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-0902 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rubygems:rubygemsthrough 2.6.12
debian:debian_linux8.0
debian:debian_linux9.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus7.4
redhat:enterprise_linux_server_aus7.6
redhat:enterprise_linux_server_eus7.4
redhat:enterprise_linux_server_eus7.5
redhat:enterprise_linux_server_eus7.6
redhat:enterprise_linux_server_tus7.4
redhat:enterprise_linux_server_tus7.6
redhat:enterprise_linux_workstation7.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-73w7-6w9g-gc8wRubyGemsrubygems-update<2.6.132.6.13

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8ruby2.12.1.5-2+deb8u4DLA-1421-1
Debian9ruby2.32.3.3-1+deb9u1DSA-3966-1
Debian12, 13, 14rubygems3.2.0~rc.1-1DEBIAN-CVE-2017-0902
Ubuntu14.04:LTSruby1.9.11.9.3.484-2ubuntu1.12USN-3685-1
Ubuntu14.04:LTSruby2.02.0.0.484-1ubuntu2.10UBUNTU-CVE-2017-0902 USN-3685-1
Ubuntu16.04:LTSruby2.32.3.1-2~16.04.6UBUNTU-CVE-2017-0902 USN-3553-1 USN-3685-1
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morejrubyno fix listedUBUNTU-CVE-2017-0902
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moreruby, ruby-doc, ruby-irb and 4 more0:2.0.0.648-33.el7_4RHSA-2018:0378
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morerubygem-bigdecimal0:1.2.0-33.el7_4RHSA-2018:0378
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morerubygem-io-console0:0.4.2-33.el7_4RHSA-2018:0378
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morerubygem-json0:1.7.7-33.el7_4RHSA-2018:0378
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morerubygem-minitest0:4.3.2-33.el7_4RHSA-2018:0378
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morerubygem-psych0:2.0.0-33.el7_4RHSA-2018:0378
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morerubygem-rake0:0.9.6-33.el7_4RHSA-2018:0378
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morerubygem-rdoc0:4.0.0-33.el7_4RHSA-2018:0378
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morerubygems, rubygems-devel0:2.0.14.1-33.el7_4RHSA-2018:0378
Red Hatrhel_software_collections:3::el6rh-ruby22-ruby, rh-ruby22-ruby-doc, rh-ruby22-ruby-irb and 4 more0:2.2.9-19.el6RHSA-2018:0583
Red Hatrhel_software_collections:3::el6rh-ruby22-rubygem-bigdecimal0:1.2.6-19.el6RHSA-2018:0583
Red Hatrhel_software_collections:3::el6rh-ruby22-rubygem-io-console0:0.4.3-19.el6RHSA-2018:0583
75 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 14 moreruby2.12.1.9-19.3.2SUSE-SU-2020:1570-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP2-LTSS, Linux Enterprise Server for SAP Applications 12 SP2 and 1 moreyast2-ruby-bindings3.1.53-9.8.1SUSE-SU-2020:1570-1
Alpinev3.3ruby2.2.8-r0ALPINE-CVE-2017-0902
Alpinev3.4, v3.5ruby2.3.5-r0ALPINE-CVE-2017-0902
Alpinev3.5, v3.6ruby2.22.2.8-r0ALPINE-CVE-2017-0902
Alpinev3.6, v3.7, v3.8 and 16 moreruby2.4.2-r0ALPINE-CVE-2017-0902

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue affects the versions of ruby as shipped with Red Hat Enterprise Linux 6, and 7 and the versions of rh-ruby22-ruby and rh-ruby23-ruby as shipped with Red Hat Software Collections. Red Hat Product Security has rated this issue as having Moderate security impact. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7ruby-0:2.0.0.648-33.el7_4Fixed 2018-02-28RHSA-2018:0378
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-ruby24-ruby-0:2.4.2-86.el6Fixed 2017-12-19RHSA-2017:3485
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-ruby22-ruby-0:2.2.9-19.el6Fixed 2018-03-26RHSA-2018:0583
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-ruby23-ruby-0:2.3.6-67.el6Fixed 2018-03-26RHSA-2018:0585
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-ruby24-ruby-0:2.4.2-86.el6Fixed 2017-12-19RHSA-2017:3485
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-ruby22-ruby-0:2.2.9-19.el6Fixed 2018-03-26RHSA-2018:0583
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-ruby23-ruby-0:2.3.6-67.el6Fixed 2018-03-26RHSA-2018:0585
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby24-ruby-0:2.4.2-86.el7Fixed 2017-12-19RHSA-2017:3485
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby22-ruby-0:2.2.9-19.el7Fixed 2018-03-26RHSA-2018:0583
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby23-ruby-0:2.3.6-67.el7Fixed 2018-03-26RHSA-2018:0585
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUSrh-ruby24-ruby-0:2.4.2-86.el7Fixed 2017-12-19RHSA-2017:3485
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUSrh-ruby22-ruby-0:2.2.9-19.el7Fixed 2018-03-26RHSA-2018:0583
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUSrh-ruby23-ruby-0:2.3.6-67.el7Fixed 2018-03-26RHSA-2018:0585
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-ruby24-ruby-0:2.4.2-86.el7Fixed 2017-12-19RHSA-2017:3485
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-ruby22-ruby-0:2.2.9-19.el7Fixed 2018-03-26RHSA-2018:0583
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-ruby23-ruby-0:2.3.6-67.el7Fixed 2018-03-26RHSA-2018:0585
Red Hat Enterprise Linux 6rubygemsWill not fix
Red Hat Enterprise MRG 2rubygemsUnder investigation
Red Hat Satellite 6rubygemsUnder investigation
Red Hat Subscription Asset Managerruby193-rubygemsUnder investigation

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-0902.

Attack patterns (CAPEC)

  • CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
  • CAPEC-89 Pharming Likelihood: High · Severity: Very High
  • CAPEC-142 DNS Cache Poisoning Likelihood: High · Severity: High
  • CAPEC-275 DNS Rebinding Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-346 (16).

References

Check your stackJSON