CVEvulnerability

CVE-2017-17790

9.8 CRITICAL Published 2017-12-20 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2017-12-20
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.0 ([email protected])
9.8 CRITICAL — CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0 ([email protected])
7.5 HIGH — AV:N/AC:L/Au:N/C:P/I:P/A:P
Weaknesses
CWE-74

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.

Affected configurations

• ruby-lang ruby (>= 2.2 <= 2.2.8) • ruby-lang ruby (>= 2.3 <= 2.3.5) • ruby-lang ruby (>= 2.4 <= 2.4.2) • ruby-lang ruby 2.5.0

Related

Weakness · CWE (1)

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component weakness

References