Back

CVE-2017-17790

CRITICAL

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.

Published: Dec 20, 2017 Modified: Jun 17, 2026
CWE-74

CVSS Metrics

CVSSv3
Attack Vector: NETWORK Attack Complexity: LOW Privileges Required: NONE User Interaction: NONE Scope: UNCHANGED Confidentiality Impact: HIGH Integrity Impact: HIGH Availability Impact: HIGH

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

Affected Products (4)

Vendor Product Version
ruby-lang ruby * ≥ 2.2
ruby-lang ruby * ≥ 2.3
ruby-lang ruby * ≥ 2.4
ruby-lang ruby 2.5.0

GitHub Security Advisory GHSA-47cm-jxff-w8wg

The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might...

Risk Scores

CVSS Score 9.8 / 10
EPSS Score 5.91%

Top 7% most likely to be exploited

Threat Score 41 / 100

Data Sources

NVD EPSS GitHub