PT-2017-10704 · Ruby · Private Address Check

Edoverflow

·

Published

2017-11-13

·

Updated

2019-10-09

·

CVE-2017-0904

CVSS v3.1

8.1

High

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions private address check ruby gem versions prior to 0.4.0
Description The issue arises from the use of Ruby's Resolv.getaddresses method, which is OS-dependent and should not be relied upon for security measures. This method is used to blacklist private network addresses to prevent server-side request forgery, but its OS-dependent nature makes it unsuitable for such security purposes.
Recommendations For private address check ruby gem versions prior to 0.4.0, update to version 0.4.0 or later to resolve the issue. As a temporary workaround, consider disabling the use of the Resolv.getaddresses method until a patch is available. Restrict access to private network addresses to minimize the risk of server-side request forgery.

Fix

Improper Handling of Exceptional Conditions

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2017-0904
GHSA-HXHJ-HP9M-QWC4

Affected Products

Private Address Check