private_address_check Ruby Gem Time-of-check Time-of-use race condition
Published: May 03, 2018
SECURITY IDENTIFIERS
- CVE: CVE-2018-3759 (NVD)
- GHSA: GHSA-2xvj-j3qh-x8c3
- Vendor Advisory: https://github.com/jtdowney/private_address_check/commit/4068228187db87fea7577f7020099399772bb147
GEM
PATCHED VERSIONS
>= 0.5.0
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 by the subsequent resolution is a private address.
