CVE-2017-17790

ruby: Command injection in lib/resolv.rb:lazy_initialize() allows arbitrary code execution

Published Dec 20, 2017 CVSS 3.0 · 9.8 Critical EPSS 5.9% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-1221-1 ruby1.9.1 security update
Debian DLA Debian DLA DLA-1222-1 ruby1.8 security update
Debian DLA Debian DLA DLA-1421-1 ruby2.1 security update
Debian DSA Debian DSA DSA-4259-1 ruby2.3 security update
EUVD EUVD EUVD-2017-8941 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.
Ubuntu USN Ubuntu USN USN-3528-1 Ruby vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 5, 2024, 8:59 PM
Reserved
Dec 20, 2017, 12:00 AM
Status
Modified
Published
Dec 20, 2017, 9:29 AM
Modified
Jun 17, 2026, 1:11 AM
Severity
Low
Public date
Dec 19, 2017, 12:00 AM