CVE-2017-17790

Severity CVSS v4.0:
Pending analysis
Type:
CWE-74 Injection
Publication date:
20/12/2017
Last modified:
20/04/2025

Description

The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injection attacks, as demonstrated by a Resolv::Hosts::new argument beginning with a '|' character, a different vulnerability than CVE-2017-17405. NOTE: situations with untrusted input may be highly unlikely.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* 2.2 (including) 2.2.8 (including)
cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* 2.3 (including) 2.3.5 (including)
cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* 2.4 (including) 2.4.2 (including)
cpe:2.3:a:ruby-lang:ruby:2.5.0:preview1:*:*:*:*:*:*