KeygraphLabs · CVE MCP

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.

CVSS
3.7
low, from NVD
EPSS
0.67%
percentile 53.3%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-13Published
2018-07-31Package advisory GHSA-2xvj-j3qh-x8c3
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 0.67%
2026-12-04Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-2xvj-j3qh-x8c3private_address_check (RubyGems)0.5.0

Also known as: GHSA-2xvj-j3qh-x8c3

Related

CVEPublishedCVSSSummary
CVE-2017-09092017-11-169.8same package: private_address_check (RubyGems)
CVE-2017-09042017-11-138.1same package: private_address_check (RubyGems)
CVE-2024-292112024-11-134.7same weakness (CWE-362) from the same CNA (hackerone)
CVE-2024-279832024-04-098.2same weakness (CWE-362) from the same CNA (hackerone)
CVE-2023-283202023-05-265.9same weakness (CWE-362) from the same CNA (hackerone)
CVE-2023-281262023-05-095.9same weakness (CWE-362) from the same CNA (hackerone)
CVE-2023-281252023-05-095.9same 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.

NVD · CVE.org