CVE-2015-3900

Summary

CVECVE-2015-3900
StatePUBLISHED
Assignermitre
Source PriorityCVE Program / NVD first with legacy fallback
Published2015-06-24 14:59:01 UTC
Updated2026-05-06 22:30:45 UTC
DescriptionRubyGems 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."

Risk And Classification

Primary CVSS: v2.0 5 from [email protected]

AV:N/AC:L/Au:N/C:N/I:P/A:N

Problem Types: CWE-254 | n/a

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
None
Integrity
Partial
Availability
None

AV:N/AC:L/Au:N/C:N/I:P/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Oracle Solaris 11.3 All All All
Operating System Redhat Enterprise Linux 6.0 All All All
Operating System Redhat Enterprise Linux 7.0 All All All
Application Ruby-lang Ruby 1.9 All All All
Application Ruby-lang Ruby 1.9.1 All All All
Application Ruby-lang Ruby 1.9.2 All All All
Application Ruby-lang Ruby 1.9.3 All All All
Application Ruby-lang Ruby 2.0.0 All All All
Application Ruby-lang Ruby 2.1 - All All
Application Ruby-lang Ruby 2.1.1 All All All
Application Ruby-lang Ruby 2.1.2 All All All
Application Ruby-lang Ruby 2.1.3 All All All
Application Ruby-lang Ruby 2.1.4 All All All
Application Ruby-lang Ruby 2.1.5 All All All
Application Ruby-lang Ruby 2.2.0 All All All
Application Rubygems Rubygems 2.0.0 All All All
Application Rubygems Rubygems 2.0.1 All All All
Application Rubygems Rubygems 2.0.10 All All All
Application Rubygems Rubygems 2.0.11 All All All
Application Rubygems Rubygems 2.0.12 All All All
Application Rubygems Rubygems 2.0.13 All All All
Application Rubygems Rubygems 2.0.14 All All All
Application Rubygems Rubygems 2.0.15 All All All
Application Rubygems Rubygems 2.0.2 All All All
Application Rubygems Rubygems 2.0.3 All All All
Application Rubygems Rubygems 2.0.4 All All All
Application Rubygems Rubygems 2.0.5 All All All
Application Rubygems Rubygems 2.0.6 All All All
Application Rubygems Rubygems 2.0.7 All All All
Application Rubygems Rubygems 2.0.8 All All All
Application Rubygems Rubygems 2.0.9 All All All
Application Rubygems Rubygems 2.2.0 All All All
Application Rubygems Rubygems 2.2.1 All All All
Application Rubygems Rubygems 2.2.2 All All All
Application Rubygems Rubygems 2.2.3 All All All
Application Rubygems Rubygems 2.4.0 All All All
Application Rubygems Rubygems 2.4.1 All All All
Application Rubygems Rubygems 2.4.2 All All All
Application Rubygems Rubygems 2.4.3 All All All
Application Rubygems Rubygems 2.4.4 All All All
Application Rubygems Rubygems 2.4.5 All All All
Application Rubygems Rubygems 2.4.6 All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
[SECURITY] Fedora 21 Update: rubygems-2.2.5-100.fc21 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
oss-security - rubygems <2.4.8 vulnerable to DNS request hijacking (CVE-2015-3900 and CVE-2015-4020) af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Third Party Advisory
RubyGems CVE-2015-3900 Security Bypass Vulnerability af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
CVE-2015-3900 Request hijacking vulnerability in RubyGems 2.4.6 and earlier | RubyGems.org af854a3a-2127-422b-91ae-364da2661108 blog.rubygems.org Patch, Vendor Advisory
[SECURITY] Fedora 23 Update: rubygems-2.4.8-100.fc23 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
www.trustwave.com/Resources/Security-Advisories/Advisories/TWSL2015-007 af854a3a-2127-422b-91ae-364da2661108 www.trustwave.com Third Party Advisory
CVE-2015-3900, CVE-2015-4020 - Request Hijacking Vulnerability in RubyGems | Puppet af854a3a-2127-422b-91ae-364da2661108 puppet.com
Oracle Solaris Third Party Bulletin - October 2015 af854a3a-2127-422b-91ae-364da2661108 www.oracle.com Third Party Advisory
[SECURITY] Fedora 22 Update: rubygems-2.4.8-100.fc22 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 rhn.redhat.com Third Party Advisory
Attacking Ruby Gem Security with CVE-2015-3900 af854a3a-2127-422b-91ae-364da2661108 www.trustwave.com Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report