Back
CVE-2015-4020
RubyGems 2.0.x before 2.0.17, 2.2.x before 2.2.5, and 2.4.x before 2.4.8 does not validate the hostname when fetching gems or making API…
Medium4.3EPSS 3.5%
- Published
- Updated
- Reserved
- Assigned by
- mitre
Description
RubyGems 2.0.x before 2.0.17, 2.2.x before 2.2.5, and 2.4.x before 2.4.8 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 with a domain that is suffixed with the original domain name, aka a "DNS hijack attack." NOTE: this vulnerability exists because to an incomplete fix for CVE-2015-3900.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | Medium4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
- EPSS (exploitation in 30 days)
- 3.5% · top 11% of all CVEs (4 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.3.
Weakness
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- RubyGemsrubygems-updateGHSA-qv62-xfj6-32xm (opens in a new tab)
References (8)
- http://blog.rubygems.org/2015/06/08/2.2.5-released.html (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://www.trustwave.com/Resources/SpiderLabs-Blog/Attacking-Ruby-Gem-Security-with-CVE-2015-3900/ (opens in a new tab)x_refsource_MISCx_transferred
- 75431 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- https://www.trustwave.com/Resources/Security-Advisories/Advisories/TWSL2015-009/?fid=6478 (opens in a new tab)x_refsource_MISCx_transferred
- http://blog.rubygems.org/2015/06/08/2.4.8-released.html (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/rubygems/rubygems/commit/5c7bfb5 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://puppet.com/security/cve/CVE-2015-3900 (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html (opens in a new tab)x_refsource_CONFIRMx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-qv62-xfj6-32xm (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2015-4020)Record last updated .