Advisory

GHSA-qv62-xfj6-32xm

Also known as: CVE-2015-4020

Summary

RubyGems Improper Input Validation vulnerability

Details

RubyGems 2.0.x before 2.0.17, 2.2.x before 2.2.5, and 2.3.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 of an incomplete fix for CVE-2015-3900.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-17 00:16 UTC
Modified
2024-12-02 05:50 UTC

Affected packages and fixes

rubygems-update

RubyGems · All systems

Affected

  • introduced 0, fixed 2.0.17 (ecosystem)

Fixed versions

2.0.17

Fix

The export has no generic command for this ecosystem.

rubygems-update

RubyGems · All systems

Affected

  • introduced 2.1.0.rc.1, fixed 2.2.5 (ecosystem)

Fixed versions

2.2.5

Fix

The export has no generic command for this ecosystem.

rubygems-update

RubyGems · All systems

Affected

  • introduced 2.3.0, fixed 2.4.8 (ecosystem)

Fixed versions

2.4.8

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences