{"id":"CVE-2015-3900","published":"2015-06-24T14:00:00Z","modified":"2024-08-06T05:56:16Z","title":"RubyGems 2.0.x before 2.0.16, 2.2.x before 2.2.4, and 2.4.x before 2.4.7 does not validate the hostname when fetching…","vendor":null,"product":null,"tier":"tail","description":{"text":"RubyGems 2.0.x before 2.0.16, 2.2.x before 2.2.4, and 2.4.x before 2.4.7 does not validate the hostname when fetching gems or making API requests, which allows remote attackers to redirect requests to arbitrary domains via a crafted DNS SRV record, aka a \"DNS hijack attack.\"","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.08871,"percentile":0.95337,"provenance":"source"},"cwes":[],"references":[{"url":"http://rhn.redhat.com/errata/RHSA-2015-1657.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-August/163502.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-August/163600.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://www.openwall.com/lists/oss-security/2015/06/26/2","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.trustwave.com/Resources/SpiderLabs-Blog/Attacking-Ruby-Gem-Security-with-CVE-2015-3900/","tags":["x_refsource_MISC"]},{"url":"http://www.securityfocus.com/bid/75482","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://www.trustwave.com/Resources/Security-Advisories/Advisories/TWSL2015-007/?fid=6356","tags":["x_refsource_MISC"]},{"url":"http://blog.rubygems.org/2015/05/14/CVE-2015-3900.html","tags":["x_refsource_CONFIRM"]},{"url":"https://puppet.com/security/cve/CVE-2015-3900","tags":["x_refsource_CONFIRM"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-August/164236.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html","tags":["x_refsource_CONFIRM"]}],"priority":{"score":19.1,"factors":[{"name":"EPSS percentile","points":19.07}]},"affected":[{"ecosystem":"RubyGems","package":"rubygems-update","vulnerableRanges":[">=2.0.0, <2.0.16",">=2.2.0, <2.2.4",">=2.4.0, <2.4.7"],"patched":["2.0.16","2.2.4","2.4.7"],"from":["GHSA-wp3j-rvfp-624h"],"provenance":"source"}],"summary":{"text":"The flaw is in RubyGems, in the code that fetches gems and makes API requests, where the hostname is not validated, so requests can be redirected based on DNS SRV records. Affected releases are the 2.0.x line before 2.0.16, the 2.2.x line before 2.2.4, and the 2.4.x line before 2.4.7.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:53:42Z"},"euvd":{"id":"EUVD-2022-5611","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-hackerone-rubygems-cve-2012-2126","children":[{"from":"CVE-2015-3900","to":"CVE-2015-4020","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"NOTE: this vulnerability exists because to an incomplete fix for CVE-2015-3900.","from":"CVE.org","in":"CVE-2015-4020"},{"kind":"version-step","provenance":"source","package":"RubyGems:rubygems-update","fromFixed":"2.0.16","toFixed":"2.0.17","daysApart":62},{"kind":"similar","provenance":"machine","score":0.83,"basis":"same package + description similarity"}]}],"packageHistory":[{"cve":"CVE-2012-2126","published":"2013-10-01","fixed":"1.8.23","kev":false},{"cve":"CVE-2013-4287","published":"2013-10-17","fixed":"2.1.0","kev":false},{"cve":"CVE-2013-4363","published":"2013-10-17","fixed":"2.1.5","kev":false,"link":{"from":"CVE-2013-4363","to":"CVE-2015-3900","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rubygems-update","fromFixed":"2.0.10","toFixed":"2.0.16","daysApart":615}]}},{"cve":"CVE-2015-3900","published":"2015-06-24","fixed":"2.4.7","kev":false},{"cve":"CVE-2015-4020","published":"2015-08-25","fixed":"2.4.8","kev":false},{"cve":"CVE-2017-0899","published":"2017-08-31","fixed":"2.6.13","kev":false},{"cve":"CVE-2017-0900","published":"2017-08-31","fixed":"2.6.13","kev":false}],"package":"RubyGems:rubygems-update"}}