Description
private_address_check ruby gem before 0.5.0 is vulnerable to a time-of-check time-of-use (TOCTOU) race condition due to the address the socket uses not being checked. DNS entries with a TTL of 0 can trigger this case where the initial resolution is a public address but the subsequent resolution is a private address.
References (1)
Core 1
Core References
Patch, Third Party Advisory x_refsource_misc
https://github.com/jtdowney/private_address_check/commit/4068228187db87fea7577f7020099399772bb147
Scores
CVSS v3
3.7
EPSS
0.0018
EPSS Percentile
39.1%
Attack Vector
NETWORK
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Details
CWE
CWE-362
Status
published
Products (2)
private_address_check_project/private_address_check
< 0.5.0
rubygems/private_address_check
0 - 0.5.0RubyGems
Published
Jun 13, 2018
Tracked Since
Feb 18, 2026