Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. private_address_check
  4. ›
  5. CVE-2017-0904

CVE-2017-0904: Improper Handling of Exceptional Conditions

November 13, 2017 (updated October 9, 2019)

The private_address_check ruby gem 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 exclude private network addresses to prevent server-side request forgery.

References

  • edoverflow.com/2017/ruby-resolv-bug/
  • github.com/jtdowney/private_address_check/issues/1
  • hackerone.com/reports/287245
  • nvd.nist.gov/vuln/detail/CVE-2017-0904

Code Behaviors & Features

Detect and mitigate CVE-2017-0904 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.4.0

Fixed versions

  • 0.4.0

Solution

Upgrade to version 0.4.0 or above.

Impact 8.1 HIGH

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-755: Improper Handling of Exceptional Conditions

Source file

gem/private_address_check/CVE-2017-0904.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:09 +0000.