VDB
Sign up
HIGH

GHSA-2xvj-j3qh-x8c3

private_address_check contains race condition

Quick fix

GHSA-2xvj-j3qh-x8c3 — private_address_check: upgrade to the fixed version with the command below.

bundle update private_address_check

Details

The 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.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/private_address_check
Introduced in: 0Fixed in: 0.5.0
Fixbundle update private_address_check

References