Improper Input Validation Affecting rubygem20-psych package, versions <0:2.0.0-1.27.amzn1


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.75% (81st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN201803-RUBYGEM20PSYCH-1686801
  • published27 Sept 2021
  • disclosed25 Aug 2015

Introduced: 25 Aug 2015

CVE-2015-4020  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2018.03 rubygem20-psych to version 0:2.0.0-1.27.amzn1 or higher.
This issue was patched in ALAS-2015-547.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rubygem20-psych package and not the rubygem20-psych package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2018.03 relevant fixed versions and status.

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.

CVSS Scores

version 3.1