GitHub Advisoryadvisory · RubyGems

GHSA-2xvj-j3qh-x8c3 private_address_check contains race condition

HIGH Published 2018-07-31 Modified 2023-08-25 Official page ↗
Aliases
CVE-2018-3759
Ecosystem
RubyGems
Packages
private_address_check
Severity
High
Weaknesses
CWE-362
Reviewed
2020-06-16

Affected packages

• RubyGems private_address_check: < 0.5.0 → fixed in 0.5.0

Description

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.

Related

Alias · CVE (1)

  • 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… vulnerability

Weakness · CWE (1)

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization weakness

References