CVE catalog

CVE-2015-4020

rubygems: CVE-2015-4020

[CVE catalog]

Severity
Low
Published
Source
[NVD] · [CVE record]
EPSS
3.46% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianjrubysid10.1.2.0+ds-1not affected
Debianjrubyforky10.1.2.0+ds-1not affected
Debianjrubytrixie9.4.8.0+ds-3not affected
Debianjrubybookworm9.3.9.0+ds-8not affected
Debianrubygemssid4.0.22-1not affected
Debianrubygemsforky4.0.22-1not affected
Debianrubygemstrixie3.6.7-2not affected
Debianrubygemsbookworm3.3.15-2+deb12u1not affected

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
DebianjrubysourcesidNot affectedunimportantNot reportedNot reported
DebianjrubysourceforkyNot affectedunimportantNot reportedNot reported
DebianjrubysourcetrixieNot affectedunimportantNot reportedNot reported
DebianjrubysourcebookwormNot affectedunimportantNot reportedNot reported
DebianrubygemssourcesidNot affectedunimportantNot reportedNot reported
DebianrubygemssourceforkyNot affectedunimportantNot reportedNot reported
DebianrubygemssourcetrixieNot affectedunimportantNot reportedNot reported
DebianrubygemssourcebookwormNot affectedunimportantNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [bundler]Not affected

    Source package: [rubygems]

    Details (2)
    • 2.3.15-2+deb12u1 · all · bookworm

      Not affected

      dsa · rubygems · debian · bookworm

    • 2.3.15-2+deb12u1 · all · bookworm

      Not affected

      dsa · rubygems · debian · bookworm

  • [jruby]Not affected
    Details (2)
    • 9.3.9.0+ds-8 · all · bookworm

      Not affected

      dsa · jruby · debian · bookworm

    • 9.3.9.0+ds-8 · all · bookworm

      Not affected

      dsa · jruby · debian · bookworm

  • [ruby-bundler]Not affected

    Source package: [rubygems]

    Details (2)
    • 2.3.15-2+deb12u1 · all · bookworm

      Not affected

      dsa · rubygems · debian · bookworm

    • 2.3.15-2+deb12u1 · all · bookworm

      Not affected

      dsa · rubygems · debian · bookworm

  • [ruby-rubygems]Not affected

    Source package: [rubygems]

    Details (2)
    • 3.3.15-2+deb12u1 · all · bookworm

      Not affected

      dsa · rubygems · debian · bookworm

    • 3.3.15-2+deb12u1 · all · bookworm

      Not affected

      dsa · rubygems · debian · bookworm

Observed:

References