{"id":"GHSA-hxhj-hp9m-qwc4","summary":"private_address_check vulnerable to bypass of Resolv.getaddresses method","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.","aliases":["CVE-2017-0904"],"modified":"2024-11-30T05:41:53.022741Z","published":"2017-11-29T23:21:05Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-242"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2020-06-16T21:41:23Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-0904"},{"type":"WEB","url":"https://github.com/jtdowney/private_address_check/issues/1"},{"type":"WEB","url":"https://github.com/jtdowney/private_address_check/commit/58a0d7fe31de339c0117160567a5b33ad82b46af"},{"type":"WEB","url":"https://hackerone.com/reports/287245"},{"type":"WEB","url":"https://hackerone.com/reports/287835"},{"type":"WEB","url":"https://edoverflow.com/2017/ruby-resolv-bug"}],"affected":[{"package":{"name":"private_address_check","ecosystem":"RubyGems","purl":"pkg:gem/private_address_check"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.0"}]}],"versions":["0.1.0","0.2.0","0.3.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/11/GHSA-hxhj-hp9m-qwc4/GHSA-hxhj-hp9m-qwc4.json"}}],"schema_version":"1.9.0"}