Name | CVE-2015-4020 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
jruby (PTS) | bookworm | 9.3.9.0+ds-8 | fixed |
| sid, trixie | 9.4.8.0+ds-1 | fixed |
rubygems (PTS) | bullseye | 3.2.5-2 | fixed |
| bookworm | 3.3.15-2 | fixed |
| sid, trixie | 3.4.20-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
jruby | source | (unstable) | (not affected) | | | |
libgems-ruby | source | (unstable) | (not affected) | | | |
ruby1.8 | source | (unstable) | (not affected) | | | |
ruby1.9.1 | source | (unstable) | (not affected) | | | |
ruby2.1 | source | (unstable) | (not affected) | | | |
ruby2.2 | source | (unstable) | (not affected) | | | |
rubygems | source | (unstable) | (not affected) | | | |
Notes
- rubygems <not-affected> (Affects versions between 2.0 and 2.4.6 and incomplete fix not applied)
- libgems-ruby <not-affected> (Affects versions between 2.0 and 2.4.6 and incomplete fix not applied)
- ruby1.8 <not-affected> (Vulnerable code not present)
- ruby1.9.1 <not-affected> (Bundles 1.8.23, vulnerable code introduced in later 1.9.1 versions; incomplete fix not applied)
- ruby2.1 <not-affected> (Incomplete fix not applied)
- ruby2.2 <not-affected> (Incomplete fix not applied)
- jruby <not-affected> (Incomplete fix not applied)
Original patch https://github.com/rubygems/rubygems/commit/6bbee35
introduced another vulnerability, assigned CVE-2015-4020. This CVE
only applies if only 6bbee35 was applied without 5c7bfb5
https://github.com/rubygems/rubygems/commit/5c7bfb5