Time of Check Time of Use (TOCTOU) Affecting private_address_check package, versions <0.5.0


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (32nd 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 IDSNYK-RUBY-PRIVATEADDRESSCHECK-22028
  • published10 Jun 2018
  • disclosed4 May 2018
  • creditUnknown

Introduced: 4 May 2018

CVE-2018-3759  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade private_address_check to version 0.5.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 this package are vulnerable to Time of Check Time of Use (TOCTOU) attacks. The address that was used by the socket was not sufficiently checked.

References

CVSS Scores

version 3.1