Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2019-13225

A NULL Pointer Dereference in match_at() in regexec.c in Oniguruma 6.9.2 allows attackers to potentially cause denial of service by providing a crafted regular expression. Oniguruma issues often affect Ruby, as well as common optional libraries for PHP and Rust.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-13225
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:33 UTC · Revision 1

Source evidence

CVE-2019-13225

core-osv · Original source

Published 10 Jul 2019, 14:15 UTC

A NULL Pointer Dereference in match_at() in regexec.c in Oniguruma 6.9.2 allows attackers to potentially cause denial of service by providing a crafted regular expression. Oniguruma issues often affect Ruby, as well as common optional libraries for PHP and Rust.

osv:CVE-2019-13225
Complete source record
{
  "id": "60be1195c85d6706e6c789ca3ee7b37709e763f36d0342b7c31a49b1b8964f09",
  "url": "https://osv.dev/vulnerability/CVE-2019-13225",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-13225",
    "summary": "A NULL Pointer Dereference in match_at() in regexec.c in Oniguruma 6.9.2 allows attackers to potentially cause denial of service by providing a crafted regular expression. Oniguruma issues often affect Ruby, as well as common optional libraries for PHP and Rust.",
    "evidence": "osv:CVE-2019-13225",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2019-13225",
      "aliases": [
        "CVE-2019-13225"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/kkos/oniguruma",
              "type": "GIT",
              "events": [
                {
                  "introduced": "83572e983928243d741f61ac290fc057d69fefc3"
                },
                {
                  "last_affected": "83572e983928243d741f61ac290fc057d69fefc3"
                },
                {
                  "fixed": "c509265c5f6ae7264f7b8a8aae1cfa5fc59d108c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:oniguruma_project:oniguruma:6.9.2:-:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.9.2-NA"
                      },
                      {
                        "last_affected": "6.9.2-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c509265c5f6ae7264f7b8a8aae1cfa5fc59d108c"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "6.9.2-NA",
            "v6.9.2_rc3",
            "v6.9.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-13225.json",
            "vanir_signatures": [
              {
                "id": "CVE-2019-13225-2b85bd8b",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "85141731386316851965725583353761852847",
                    "204595937784327686332058629384380229674",
                    "319247688735767608892947998935321169709",
                    "241674881094433395339525784506746142782",
                    "254990912557451104883114518374002790439",
                    "64454262332086805412704828737206622359",
                    "236140884305776523355892540789865807574",
                    "153336709126352052758112735148905899679",
                    "31377849021423607495904267593121150756",
                    "238769940960044662172765831089931524544",
                    "81098403367417136783006037704082788478",
                    "51827213460557364345719534556334902980",
                    "191418956654247562735926728659014972090",
                    "115988239015902885453971979046210904656",
                    "204180771395020458451583621508510201132",
                    "199645093322366396782428046900108468049",
                    "153111474359541123152405185688874873236",
                    "208669678462544222830419350908637931312",
                    "293828640975033680040692157692155978758",
                    "177700100071828633901527881869930075299",
                    "74837920887297519773133792580998496808"
                  ]
                },
                "source": "https://github.com/kkos/oniguruma/commit/c509265c5f6ae7264f7b8a8aae1cfa5fc59d108c",
                "target": {
                  "file": "src/regcomp.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2019-13225-a8853a59",
                "digest": {
                  "length": 2277,
                  "function_hash": "136352198404887022080578989389975003742"
                },
                "source": "https://github.com/kkos/oniguruma/commit/c509265c5f6ae7264f7b8a8aae1cfa5fc59d108c",
                "target": {
                  "file": "src/regcomp.c",
                  "function": "compile_length_bag_node"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2019-13225-e8f9d8ee",
                "digest": {
                  "length": 2316,
                  "function_hash": "186066642544576952066181731115535465672"
                },
                "source": "https://github.com/kkos/oniguruma/commit/c509265c5f6ae7264f7b8a8aae1cfa5fc59d108c",
                "target": {
                  "file": "src/regcomp.c",
                  "function": "compile_bag_node"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:47:40Z"
          }
        }
      ],
      "modified": "2026-10-20T13:47:40.496122761Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JWCPDTZOIUKGMFAD5NAKUB7FPJFAIQN5/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SNL26OZSQRVLEO6JRNUVIMZTICXBNEQW/",
        "https://security.gentoo.org/glsa/201911-03",
        "https://github.com/kkos/oniguruma/commit/c509265c5f6ae7264f7b8a8aae1cfa5fc59d108c"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:29:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "29"
                  },
                  {
                    "last_affected": "29"
                  },
                  {
                    "introduced": "30"
                  },
                  {
                    "last_affected": "30"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2019-13225",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388236,
  "published_at": "2019-07-10T14:15:11.7+00:00"
}