Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2017-17790

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2017-17790
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 09:53 UTC · Revision 1

Source evidence

CVE-2017-17790

core-osv · Original source

Published 20 Dec 2017, 09:29 UTC

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.

osv:CVE-2017-17790
Complete source record
{
  "id": "e65654806729370856cfab7655335f0209438b28861969b814ada76a77ecc56d",
  "url": "https://osv.dev/vulnerability/CVE-2017-17790",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-17790",
    "summary": "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.",
    "evidence": "osv:CVE-2017-17790",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2017-17790",
      "aliases": [
        "CVE-2017-17790"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ruby/ruby",
              "type": "GIT",
              "events": [
                {
                  "introduced": "7393bf6a5cfff63683f36535e293caaa0d4c5be0"
                },
                {
                  "last_affected": "f3c3c788aa458ec9d57035c8f3091093bfcb9fa7"
                },
                {
                  "introduced": "d40ea2afa6ff5a6e5befcf342fb7b6dc58796b20"
                },
                {
                  "last_affected": "e07613e27ee9445abad9c6981e8d721a0df39f1c"
                },
                {
                  "introduced": "d4bb726b713658f56e630b6cf817a0155b6f390e"
                },
                {
                  "last_affected": "595af866bb46db24274dc26fb9b4d3af84fd0af5"
                },
                {
                  "introduced": "f11fbd79fd7000550188cfe19d04cce9f472d26b"
                },
                {
                  "last_affected": "f11fbd79fd7000550188cfe19d04cce9f472d26b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.2"
                      },
                      {
                        "last_affected": "2.2.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.3"
                      },
                      {
                        "last_affected": "2.3.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4"
                      },
                      {
                        "last_affected": "2.4.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:ruby-lang:ruby:2.5.0:preview1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.5.0-preview1"
                      },
                      {
                        "last_affected": "2.5.0-preview1"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.5.0-preview1",
            "v2_5_0_preview1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-17790.json"
          }
        }
      ],
      "modified": "2026-10-20T10:48:16.580901174Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html",
        "https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html",
        "https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html",
        "https://access.redhat.com/errata/RHSA-2018:0378",
        "https://access.redhat.com/errata/RHSA-2018:0583",
        "https://access.redhat.com/errata/RHSA-2018:0584",
        "https://access.redhat.com/errata/RHSA-2018:0585",
        "https://www.debian.org/security/2018/dsa-4259",
        "https://github.com/ruby/ruby/pull/1777"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2017-17790",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 380235,
  "published_at": "2017-12-20T09:29:01.477+00:00"
}