Server-side Request Forgery (SSRF) Affecting private_address_check package, versions <0.4.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.42% (84th 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 Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-PRIVATEADDRESSCHECK-20440
  • published7 Nov 2017
  • disclosed6 Nov 2017
  • creditEdOverflow

Introduced: 6 Nov 2017

CVE-2017-0904  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade private_address_check to version 0.4.0 or higher.

Overview

private_address_check checks if a IP or hostname would cause a request to a private network (RFC 1918).

Affected versions of the package are vulnerable to Server-side Request Forgery (SSRF). The Resolv::getaddresses class is OS-dependent, therefore by playing around with different IP formats one can return blank values. An attacker can abuse this bug in order to bypass the exclusion list.

CVSS Base Scores

version 3.1