Live threats

All CVEs / Ruby-lang

CVE-2017-17790Ruby-lang Ruby

Critical 9.8 No auth needed

Priority
74
CVSS 3.0
9.8
EPSS
5.9%
probability of exploitation in 30 days · percentile 94
Auth required
No
Published
Dec 20, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-74
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
ruby-langruby≥ 2.2 ≤ 2.2.8
ruby-langruby≥ 2.3 ≤ 2.3.5
ruby-langruby≥ 2.4 ≤ 2.4.2
ruby-langruby2.5.0

Official sources

References

Links published by the sources. Open them with care.