Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2017-0902
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 09:50 UTC · Revision 1

Source evidence

CVE-2017-0902

core-osv · Original source

Published 31 Aug 2017, 20:29 UTC

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.

osv:CVE-2017-0902
Complete source record
{
  "id": "8a5a6b353ce5659796f1b2cb03aeb637e23f2af99d6d3e320bd89549c15ddab5",
  "url": "https://osv.dev/vulnerability/CVE-2017-0902",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-0902",
    "summary": "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.",
    "evidence": "osv:CVE-2017-0902",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2017-0902",
      "aliases": [
        "CVE-2017-0902",
        "GHSA-73w7-6w9g-gc8w"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ruby/rubygems",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "009080040279282d7b8ddd09acab41719cb4ba00"
                },
                {
                  "fixed": "8d91516fb7037ecfb27622f605dc40245e0f8d32"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:rubygems:rubygems:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.6.12"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "8d91516fb7037ecfb27622f605dc40245e0f8d32"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.6.12",
            "v2.6.11",
            "v2.6.7",
            "v2.6.10",
            "v2.6.9",
            "v2.6.8",
            "v2.6.6",
            "v2.6.5",
            "v2.6.3",
            "v2.6.4",
            "v2.6.2",
            "v2.6.1",
            "v2.6.0",
            "v2.5.2",
            "v2.5.1",
            "v2.5.0",
            "v2.4.6",
            "v2.4.5",
            "v2.4.4",
            "v2.4.3",
            "v2.4.2",
            "v2.4.1",
            "v2.4.0",
            "v2.3.0",
            "v2.2.1",
            "v2.2.0.rc.1",
            "v2.2.0.preview.1",
            "v2.1.3",
            "v2.1.2",
            "v2.1.1",
            "v2.1.0",
            "v2.1.0.rc.2",
            "v2.1.0.rc.1",
            "v2.0.3",
            "v2.0.2",
            "v2.0.1",
            "v2.0.0",
            "v2.0.0.rc.2",
            "v2.0.0.rc.1",
            "v2.0.0.preview2.2",
            "v2.0.0.preview2.1",
            "v2.0.0.preview2",
            "v1.8.2",
            "v1.8.1",
            "v1.8.0",
            "v1.7.1",
            "v1.7.0",
            "v1.6.2",
            "v1.6.1",
            "v1.6.0",
            "v1.5.2",
            "v1.5.1",
            "v1.5.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-0902.json"
          }
        }
      ],
      "modified": "2026-10-20T10:48:06.155120616Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/errata/RHSA-2017:3485",
        "https://access.redhat.com/errata/RHSA-2018:0378",
        "https://access.redhat.com/errata/RHSA-2018:0583",
        "https://access.redhat.com/errata/RHSA-2018:0585",
        "https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html",
        "https://security.gentoo.org/glsa/201710-01",
        "https://usn.ubuntu.com/3553-1/",
        "https://usn.ubuntu.com/3685-1/",
        "https://www.debian.org/security/2017/dsa-3966",
        "https://hackerone.com/reports/218088",
        "https://github.com/rubygems/rubygems/commit/8d91516fb7037ecfb27622f605dc40245e0f8d32"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "14.04"
                  },
                  {
                    "last_affected": "14.04"
                  },
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "17.10"
                  },
                  {
                    "last_affected": "17.10"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  },
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_desktop",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server_aus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.4"
                  },
                  {
                    "last_affected": "7.4"
                  },
                  {
                    "introduced": "7.6"
                  },
                  {
                    "last_affected": "7.6"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server_eus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.4"
                  },
                  {
                    "last_affected": "7.4"
                  },
                  {
                    "introduced": "7.5"
                  },
                  {
                    "last_affected": "7.5"
                  },
                  {
                    "introduced": "7.6"
                  },
                  {
                    "last_affected": "7.6"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server_tus:7.4:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server_tus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.4"
                  },
                  {
                    "last_affected": "7.4"
                  },
                  {
                    "introduced": "7.6"
                  },
                  {
                    "last_affected": "7.6"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_workstation",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2017-0902",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 380036,
  "published_at": "2017-08-31T20:29:00.603+00:00"
}