Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2015-4020

MEDIUM 4.3EPSS 90%

RubyGems Improper Input Validation vulnerability

Also known as GHSA-qv62-xfj6-32xm

Mitigation

  • Upgrade rubygems-update to one of 2.0.17, 2.2.5, 2.4.8 (or later in the same release line).

Who should check

  • Projects that depend on RubyGems package rubygems-update (< 2.0.17)
  • Anyone running n/a (versions: see the vendor advisory)

Vulnerability facts

Affected
rubygems-update < 2.0.17
Fixed in
2.0.17, 2.2.5, 2.4.8
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
4.3 (v2.0, NVD)AV:N/AC:M/Au:N/C:N/I:P/A:N
Show all 6 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Medium
  • Authentication: None
  • Confidentiality impact: None
  • Integrity impact: Partial
  • Availability impact: None
EPSS
3.46% chance of exploitation in 30 days (percentile 90, 2026-11-26)
CWE
CWE-20
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
RubyGems rubygems-update< 2.0.172.0.17, 2.2.5, 2.4.8osv
n/a——nvd

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2015-4020. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2015-4020.md
Affected: rubygems-update < 2.0.17
Fixed in: 2.0.17, 2.2.5, 2.4.8

Steps:
1. Search this machine and project for rubygems-update (RubyGems), n/a: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2015-4020 being exploited?

There is no confirmed exploitation: CVE-2015-4020 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 3.46% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2015-4020?

Medium: CVSS 4.3 (v2.0, scored by NVD). Remote, no login needed.

Which versions are affected by CVE-2015-4020?

rubygems-update < 2.0.17.

Is there a fix for CVE-2015-4020?

Yes. Fixed in 2.0.17, 2.2.5, 2.4.8. Upgrade rubygems-update to one of 2.0.17, 2.2.5, 2.4.8 (or later in the same release line).

How do I check if I'm affected by CVE-2015-4020?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors