{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.12.6"
                  },
                  {
                    "last_affected": "2.15.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "505e2e872e767405be565aa9d47ae9d6d5677f79"
            },
            {
              "last_affected": "96498992efa48d52b0e8b83058bd88dbdaf153c1"
            }
          ],
          "repo": "https://gitlab.gnome.org/gnome/libxml2",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-476"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137074.json"
  },
  "details": "GNOME libxml2 2.12.6 through 2.15.4 contains a NULL pointer dereference vulnerability in xmlTextReaderConstEncoding() after a reader is reset with xmlReaderNewWalker(). Because xmlCtxtReset() leaves ctxt-\u003einput NULL, querying the document encoding makes xmlGetActualEncoding() read ctxt-\u003einput-\u003eflags without a check, crashing the application and causing denial of service.",
  "id": "CVE-2026-137074",
  "modified": "2026-11-25T20:45:44.548963538Z",
  "published": "2026-11-25T19:33:01.463Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137074.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://gitlab.gnome.org/GNOME/libxml2"
    },
    {
      "type": "ARTICLE",
      "url": "https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/parserInternals.c#L1743"
    },
    {
      "type": "ARTICLE",
      "url": "https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/xmlreader.c#L2856"
    },
    {
      "type": "REPORT",
      "url": "https://gitlab.gnome.org/GNOME/libxml2/-/issues/1212"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-137074"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/libxml2-2.12.6-through-2.15.4-null-pointer-dereference-via-xmltextreaderconstencoding"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "libxml2 2.12.6 through 2.15.4 NULL Pointer Dereference via xmlTextReaderConstEncoding()"
}