CVE-2018-3759 · hackerone
CVE-2018-3759
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.
Published 2018-06-13, last changed 2026-06-17. Weakness: CWE-362.
How to fix
Upgrade to a fixed version: private_address_check 0.5.0 (RubyGems). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in jtdowney/private_address_check by 4068228187, 0498dcf8e0. Functions changed by the fix: initialize. Regression tests: test/private_address_check/tcpsocket_ext_test.rb. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2018-06-13 | Published |
| 2018-07-31 | Package advisory GHSA-2xvj-j3qh-x8c3 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 0.67% |
| 2026-12-04 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-2xvj-j3qh-x8c3 | private_address_check (RubyGems) | 0.5.0 |
Also known as: GHSA-2xvj-j3qh-x8c3
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2017-0909 | 2017-11-16 | 9.8 | same package: private_address_check (RubyGems) |
| CVE-2017-0904 | 2017-11-13 | 8.1 | same package: private_address_check (RubyGems) |
| CVE-2024-29211 | 2024-11-13 | 4.7 | same weakness (CWE-362) from the same CNA (hackerone) |
| CVE-2024-27983 | 2024-04-09 | 8.2 | same weakness (CWE-362) from the same CNA (hackerone) |
| CVE-2023-28320 | 2023-05-26 | 5.9 | same weakness (CWE-362) from the same CNA (hackerone) |
| CVE-2023-28126 | 2023-05-09 | 5.9 | same weakness (CWE-362) from the same CNA (hackerone) |
| CVE-2023-28125 | 2023-05-09 | 5.9 | same weakness (CWE-362) from the same CNA (hackerone) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2018-3759, or call /api/v1/vulnerabilities/CVE-2018-3759. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.