{"id":"CVE-2018-3759","published":"2018-06-13T15:00:00Z","modified":"2024-09-16T20:26:38Z","title":"private_address_check ruby gem before 0.5.0 is vulnerable to a time-of-check time-of-use (TOCTOU) race condition due…","vendor":"HackerOne","product":"private_address_check ruby gem","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0068,"percentile":0.53324,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"references":[{"url":"https://github.com/jtdowney/private_address_check/commit/4068228187db87fea7577f7020099399772bb147","tags":["x_refsource_MISC"]}],"priority":{"score":10.7,"factors":[{"name":"EPSS percentile","points":10.66}]},"vendorSlug":"hackerone","affectedVersions":[{"vendor":"HackerOne","product":"private_address_check ruby gem","versions":["0.5.0"]}],"affected":[{"ecosystem":"RubyGems","package":"private_address_check","vulnerableRanges":["<0.5.0"],"patched":["0.5.0"],"from":["GHSA-2xvj-j3qh-x8c3"],"provenance":"source"}],"summary":{"text":"The private_address_check Ruby gem, before version 0.5.0, contains a time-of-check time-of-use race condition because the address the socket connects to is never re-validated. An attacker who controls a DNS record with a TTL of 0 can make the first resolution return a public address that passes the check and a later resolution return a private address that the socket then uses.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:09:52Z"},"euvd":{"id":"EUVD-2018-0210","exploited":false,"provenance":"source"}}