Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2017-6181

The parse_char_class function in regparse.c in the Onigmo (aka Oniguruma-mod) regular expression library, as used in Ruby 2.4.0, allows remote attackers to cause a denial of service (deep recursion and application crash) via a crafted regular expression.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2017-6181
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 07:45 UTC · Revision 1

Source evidence

CVE-2017-6181

core-osv · Original source

Published 3 Apr 2017, 05:59 UTC

The parse_char_class function in regparse.c in the Onigmo (aka Oniguruma-mod) regular expression library, as used in Ruby 2.4.0, allows remote attackers to cause a denial of service (deep recursion and application crash) via a crafted regular expression.

osv:CVE-2017-6181
Complete source record
{
  "id": "d1247092dc82039c5686f1eeceb4dbe19e0e98a451e8c1d31a9960e8efded7ce",
  "url": "https://osv.dev/vulnerability/CVE-2017-6181",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-6181",
    "summary": "The parse_char_class function in regparse.c in the Onigmo (aka Oniguruma-mod) regular expression library, as used in Ruby 2.4.0, allows remote attackers to cause a denial of service (deep recursion and application crash) via a crafted regular expression.",
    "evidence": "osv:CVE-2017-6181",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2017-6181",
      "aliases": [
        "CVE-2017-6181"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ruby/ruby",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d4bb726b713658f56e630b6cf817a0155b6f390e"
                },
                {
                  "last_affected": "d4bb726b713658f56e630b6cf817a0155b6f390e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:ruby-lang:ruby:2.4.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4.0"
                      },
                      {
                        "last_affected": "2.4.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.4.0",
            "v2_4_0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-6181.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:58.034936806Z",
      "provider": "osv",
      "references": [
        "https://bugs.ruby-lang.org/issues/13234",
        "https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/57660"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2017-6181",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 438987,
  "published_at": "2017-04-03T05:59:00.847+00:00"
}