Skip to main content
← All vulnerabilities
CVE-2015-4020GHSA-QV62-XFJ6-32XM

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 req

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.17, 2.2.5, 2.4.8
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • rubygems-updateRubyGems

    fixed in 2.0.17

  • rubygems-updateRubyGems

    From 2.1.0.rc.1 · fixed in 2.2.5

  • rubygems-updateRubyGems

    From 2.3.0 · fixed in 2.4.8

References 8

blog.rubygems.org

trustwave.com

securityfocus.com

GitHub · rubygems/rubygems

puppet.com

oracle.com