CVE-2015-3900
RubyGems vulnerable to DNS hijack attack
Also known as GHSA-wp3j-rvfp-624h
Mitigation
- Upgrade rubygems-update to one of 2.0.16, 2.2.4, 2.4.7 (or later in the same release line).
Who should check
- Projects that depend on RubyGems package rubygems-update (>= 2.0.0, < 2.0.16)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- rubygems-update >= 2.0.0, < 2.0.16
- Fixed in
- 2.0.16, 2.2.4, 2.4.7
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.0 (v2.0, NVD)AV:N/AC:L/Au:N/C:N/I:P/A:N
Show all 6 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Authentication: None
- Confidentiality impact: None
- Integrity impact: Partial
- Availability impact: None
- EPSS
- 8.87% chance of exploitation in 30 days (percentile 96, 2026-11-26)
- CWE
- CWE-254
- Modified
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."
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| RubyGems rubygems-update | >= 2.0.0, < 2.0.16 | 2.0.16, 2.2.4, 2.4.7 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2015-3900. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2015-3900.md Affected: rubygems-update >= 2.0.0, < 2.0.16 Fixed in: 2.0.16, 2.2.4, 2.4.7 Steps: 1. Search this machine and project for rubygems-update (RubyGems), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- 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://lists.fedoraproject.org/pipermail/package-announce/2015-August/164236.html
- https://nvd.nist.gov/vuln/detail/CVE-2015-3900
Other
- 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
- https://puppet.com/security/cve/CVE-2015-3900
- http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubygems-update/CVE-2015-3900.yml
- https://web.archive.org/web/20170331091241/https://puppet.com/security/cve/CVE-2015-3900
- https://web.archive.org/web/20200228055155/http://www.securityfocus.com/bid/75482
- https://www.trustwave.com/Resources/SpiderLabs-Blog/Attacking-Ruby-Gem-Security-with-CVE-2015-3900
FAQ
Is CVE-2015-3900 being exploited?
There is no confirmed exploitation: CVE-2015-3900 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 8.87% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2015-3900?
Medium: CVSS 5.0 (v2.0, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2015-3900?
rubygems-update >= 2.0.0, < 2.0.16.
Is there a fix for CVE-2015-3900?
Yes. Fixed in 2.0.16, 2.2.4, 2.4.7. Upgrade rubygems-update to one of 2.0.16, 2.2.4, 2.4.7 (or later in the same release line).
How do I check if I'm affected by CVE-2015-3900?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.