CVE-2026-86141

libxml2: libxml2: Denial of Service due to NULL pointer dereference in xmlRegNewParserCtxt

Published Sep 5, 2026 CVSS 3.1 · 2.9 Low EPSS < 1% KEV · Not listed
Description
xmlregexp in libxml2 before 2.15.4 has a NULL pointer dereference in xmlRegNewParserCtxt after a strdup failure, i.e., it does not calculate a string length after NULL checking.

Analysis

AI-generated

Technical impact

The vulnerability lies in the libxml2 library's xmlregexp module. When the function xmlRegNewParserCtxt attempts to allocate memory with strdup and that allocation fails, the code dereferences a NULL pointer without re‑evaluating the string length. This flaw can cause the library to crash or terminate unexpectedly. The weaknesses are classified as Unchecked Return Value (CWE‑252) and NULL Pointer Dereference (CWE‑476).

Affected Systems

The issue affects versions of libxml2 prior to 2.15.4, including 2.15.3 and earlier releases. Any software that links against these older libxml2 binaries is potentially impacted.

Risk and Exploitability

The CVSS score of 2.9 indicates a low severity risk. The EPSS score of 0.00116 (approximately 0.12%) and the fact that the vulnerability is not listed in CISA's KEV catalog suggest limited exploitation attempts. The likely attack vector is local: a process or user that feeds crafted XML data to an application using the vulnerable libxml2 version. Because the flaw results in a crash rather than arbitrary code execution or privilege escalation, the immediate risk is predominantly a denial‑of‑service to the affected process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update libxml2 to version 2.15.4 or newer.
  • Rebuild and redeploy applications that link to libxml2 to use the updated library.
  • After the update, monitor logs for crashes and conduct integrity checks on XML processing components.

Generated by OpenCVE AI on September 8, 2026 at 02:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Null Pointer Dereference in libxml2 xmlregexp Parser libxml2: libxml2: Denial of Service due to NULL pointer dereference in xmlRegNewParserCtxt
Weaknesses CWE-476
References
Metrics threat_severity

None

threat_severity

Low

Type Values Removed Values Added
Title Null Pointer Dereference in libxml2 xmlregexp Parser
Type Values Removed Values Added
Description xmlregexp in libxml2 before 2.15.4 has a NULL pointer dereference in xmlRegNewParserCtxt after a strdup failure, i.e., it does not calculate a string length after NULL checking.
First Time appeared Xmlsoft
Xmlsoft libxml2
Weaknesses CWE-252
CPEs cpe:2.3:a:xmlsoft:libxml2:*:*:*:*:*:*:*:*
Vendors & Products Xmlsoft
Xmlsoft libxml2
References
Metrics cvssV3_1

{'score': 2.9, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Sep 9, 2026, 7:15 PM
Reserved
Sep 5, 2026, 4:27 AM
Status
Analyzed
Published
Sep 5, 2026, 5:17 AM
Modified
Sep 15, 2026, 7:37 PM
Severity
Low
Public date
Sep 5, 2026, 4:27 AM