RubyGems vulnerable to DNS hijack attack
High severity
GitHub Reviewed
Published
May 14, 2022
to the GitHub Advisory Database
•
Updated Aug 25, 2023
Package
Affected versions
>= 2.0.0, < 2.0.16
>= 2.2.0, < 2.2.4
>= 2.4.0, < 2.4.7
Patched versions
2.0.16
2.2.4
2.4.7
Description
Published by the National Vulnerability Database
Jun 24, 2015
Published to the GitHub Advisory Database
May 14, 2022
Reviewed
Mar 10, 2023
Last updated
Aug 25, 2023
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."
References