CVEfocus › CVE database › CVE-2015-4020

CVE-2015-4020

EPSS 3.5% (higher than 89% of CVEs)Published 2015-08-25Updated 2024-08-06Assigner: mitre

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.

What to do

Fixed builds are available from RubyGems: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
27Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 14.04ruby1.9.1Not affected
vulnerable_code_not_present
Red Hat Enterprise Linux 7rubyNot affected
Red Hat Enterprise Linux 7ruby-develNot affected
Red Hat Enterprise Linux 7ruby-docNot affected
Red Hat Enterprise Linux 7ruby-irbNot affected
Red Hat Enterprise Linux 7ruby-libsNot affected
Red Hat Enterprise Linux 7ruby-tcltkNot affected
Red Hat Enterprise Linux 7rubygem-bigdecimalNot affected
Red Hat Enterprise Linux 7rubygem-io-consoleNot affected
Red Hat Enterprise Linux 7rubygem-jsonNot affected
Red Hat Enterprise Linux 7rubygem-minitestNot affected
Red Hat Enterprise Linux 7rubygem-psychNot affected
Red Hat Enterprise Linux 7rubygem-rakeNot affected
Red Hat Enterprise Linux 7rubygem-rdocNot affected
Red Hat Enterprise Linux 7rubygemsNot affected
Red Hat Enterprise Linux 7rubygems-develNot affected
Red Hat Enterprise Linux 6rubyNot affected
Red Hat Enterprise Linux 6ruby-develNot affected
Red Hat Enterprise Linux 6ruby-docsNot affected
Red Hat Enterprise Linux 6ruby-irbNot affected
Red Hat Enterprise Linux 6ruby-libsNot affected
Red Hat Enterprise Linux 6ruby-rdocNot affected
Red Hat Enterprise Linux 6ruby-riNot affected
Red Hat Enterprise Linux 6ruby-staticNot affected
Red Hat Enterprise Linux 6ruby-tcltkNot affected
Red Hat Enterprise Linux 6rubygemsNot affected
Red Hat Enterprise Linux 5rubyNot affected
RubyGems libraryrubygems-updateFixed2.4.8GHSA-qv62-xfj6-32xm

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.