{"id":"CVE-2015-3900","state":"PUBLISHED","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 gems or making API requests, which allows remote attackers to ","description":"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.\"","publishedAt":"2015-06-24T14:00:00.000Z","updatedAt":"2024-08-06T05:56:16.332Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["http://rhn.redhat.com/errata/RHSA-2015-1657.html","http://lists.fedoraproject.org/pipermail/package-announce/2015-August/163502.html","http://lists.fedoraproject.org/pipermail/package-announce/2015-August/163600.html","http://www.openwall.com/lists/oss-security/2015/06/26/2","https://www.trustwave.com/Resources/SpiderLabs-Blog/Attacking-Ruby-Gem-Security-with-CVE-2015-3900/","http://www.securityfocus.com/bid/75482","https://www.trustwave.com/Resources/Security-Advisories/Advisories/TWSL2015-007/?fid=6356","http://blog.rubygems.org/2015/05/14/CVE-2015-3900.html","https://puppet.com/security/cve/CVE-2015-3900","http://lists.fedoraproject.org/pipermail/package-announce/2015-August/164236.html","http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html"],"weaknesses":[],"ingestedAt":"2026-10-29T19:42:04.713Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2015/3xxx/CVE-2015-3900.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2015-3900","state":"PUBLISHED","datePublished":"2015-06-24T14:00:00.000Z","dateUpdated":"2024-08-06T05:56:16.332Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2015-05-12T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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.\""}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"http://rhn.redhat.com/errata/RHSA-2015-1657.html","name":"RHSA-2015:1657","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-August/163502.html","name":"FEDORA-2015-12501","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-August/163600.html","name":"FEDORA-2015-12574","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://www.openwall.com/lists/oss-security/2015/06/26/2","name":"[oss-security] 20150626 rubygems <2.4.8 vulnerable to DNS request hijacking (CVE-2015-3900 and CVE-2015-4020)","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","name":"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","name":"FEDORA-2015-13157","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html","tags":["x_refsource_CONFIRM"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2017-12-08T10:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2015-05-14T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2015-3900","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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.\""}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"RHSA-2015:1657","refsource":"REDHAT","url":"http://rhn.redhat.com/errata/RHSA-2015-1657.html"},{"name":"FEDORA-2015-12501","refsource":"FEDORA","url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-August/163502.html"},{"name":"FEDORA-2015-12574","refsource":"FEDORA","url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-August/163600.html"},{"name":"[oss-security] 20150626 rubygems <2.4.8 vulnerable to DNS request hijacking (CVE-2015-3900 and CVE-2015-4020)","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2015/06/26/2"},{"name":"https://www.trustwave.com/Resources/SpiderLabs-Blog/Attacking-Ruby-Gem-Security-with-CVE-2015-3900/","refsource":"MISC","url":"https://www.trustwave.com/Resources/SpiderLabs-Blog/Attacking-Ruby-Gem-Security-with-CVE-2015-3900/"},{"name":"75482","refsource":"BID","url":"http://www.securityfocus.com/bid/75482"},{"name":"https://www.trustwave.com/Resources/Security-Advisories/Advisories/TWSL2015-007/?fid=6356","refsource":"MISC","url":"https://www.trustwave.com/Resources/Security-Advisories/Advisories/TWSL2015-007/?fid=6356"},{"name":"http://blog.rubygems.org/2015/05/14/CVE-2015-3900.html","refsource":"CONFIRM","url":"http://blog.rubygems.org/2015/05/14/CVE-2015-3900.html"},{"name":"https://puppet.com/security/cve/CVE-2015-3900","refsource":"CONFIRM","url":"https://puppet.com/security/cve/CVE-2015-3900"},{"name":"FEDORA-2015-13157","refsource":"FEDORA","url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-August/164236.html"},{"name":"http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html","refsource":"CONFIRM","url":"http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://rhn.redhat.com/errata/RHSA-2015-1657.html","name":"RHSA-2015:1657","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-August/163502.html","name":"FEDORA-2015-12501","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-August/163600.html","name":"FEDORA-2015-12574","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2015/06/26/2","name":"[oss-security] 20150626 rubygems <2.4.8 vulnerable to DNS request hijacking (CVE-2015-3900 and CVE-2015-4020)","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://www.trustwave.com/Resources/SpiderLabs-Blog/Attacking-Ruby-Gem-Security-with-CVE-2015-3900/","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.securityfocus.com/bid/75482","name":"75482","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"https://www.trustwave.com/Resources/Security-Advisories/Advisories/TWSL2015-007/?fid=6356","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://blog.rubygems.org/2015/05/14/CVE-2015-3900.html","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://puppet.com/security/cve/CVE-2015-3900","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-August/164236.html","name":"FEDORA-2015-13157","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-06T05:56:16.332Z"}}]}}}