CVE-2015-3900
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."
Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
8.871%
chance of exploitation in the next 30 days
higher than 95.3% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Weakness
Timeline
- 2015-06-24Published by the CNA14:00 UTC
- 2022-05-14GitHub advisory published (GHSA-wp3j-rvfp-624h)2516 days after publication
Exploit and advisory records
GitHub advisory GHSA-wp3j-rvfp-624h, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| RubyGems rubygems-update | from 2.0.0 before 2.0.16 | 2.0.16 |
| RubyGems rubygems-update | from 2.2.0 before 2.2.4 | 2.2.4 |
| RubyGems rubygems-update | from 2.4.0 before 2.4.7 | 2.4.7 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| ruby-lang ruby | 1.9no fix listed1.9.1no fix listed1.9.2no fix listed1.9.3no fix listed2.0.0no fix listed(+7 more) | not listednot listednot listednot listednot listed |
| rubygems rubygems | 2.0.0no fix listed2.0.1no fix listed2.0.10no fix listed2.0.11no fix listed2.0.12no fix listed(+22 more) | not listednot listednot listednot listednot listed |
| oracle solaris | 11.3no fix listed | not listed |
| redhat enterprise_linux | 6.0no fix listed7.0no fix listed | not listednot listed |
References
- http://blog.rubygems.org/2015/05/14/CVE-2015-3900.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-August/163502.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-August/163600.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-August/164236.html
- http://rhn.redhat.com/errata/RHSA-2015-1657.html
- http://www.openwall.com/lists/oss-security/2015/06/26/2
- http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html
- http://www.securityfocus.com/bid/75482
- https://puppet.com/security/cve/CVE-2015-3900
- https://www.trustwave.com/Resources/Security-Advisories/Advisories/TWSL2015-007/?fid=6356
- https://www.trustwave.com/Resources/SpiderLabs-Blog/Attacking-Ruby-Gem-Security-with-CVE-2015-3900/
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2015-3900'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2015-3900'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2015-3900'curl 'https://api.contrastcyber.com/cve_products/CVE-2015-3900'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).