VDB
Sign up
MEDIUM

GHSA-hxhj-hp9m-qwc4

private_address_check vulnerable to bypass of Resolv.getaddresses method

Quick fix

GHSA-hxhj-hp9m-qwc4 — private_address_check: upgrade to the fixed version with the command below.

bundle update private_address_check

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/private_address_check
Introduced in: 0Fixed in: 0.4.0
Fixbundle update private_address_check

References