CVE-2018-3759 private_address_check contains race condition

Low 3.7 Published Updated

A race condition in the private_address_check Ruby gem allows attackers to bypass SSRF protections by exploiting DNS TTL changes.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-3759?

CVE-2018-3759 is a low-severity vulnerability in HackerOne private_address_check ruby gem, published on 13 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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 but the subsequent resolution is a private address.

Weakness: CWE-362

Which versions are affected by CVE-2018-3759?

2 open source packages ship an affected version, including private_address_check. It affects 1 product.

PackageAffectedFixed in
private_address_check RubyGemsAll versions0.5.0
private_address_check RubyGemsAll versions0.5.0

Products include Private Address Check Project Private Address Check.

How do I fix CVE-2018-3759?

Upgrade private_address_check to 0.5.0 or later.

Is CVE-2018-3759 being exploited?

There is no known exploitation of CVE-2018-3759 in the wild and no public exploit code.

Sources

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

Is CVE-2018-3759 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free