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.
Published: 2026-09-05
Score: 2.9 Low
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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 weakness is classified as Unchecked Return Value (CWE‑252).

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. EPSS is not available, and the vulnerability is not listed in CISA's KEV catalog, implying limited exploitation evidence. 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.

Generated by OpenCVE AI on September 5, 2026 at 05:21 UTC.

Remediation

No vendor fix or workaround currently provided.

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 5, 2026 at 05:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 05 Sep 2026 05:45:00 +0000

Type Values Removed Values Added
Title Null Pointer Dereference in libxml2 xmlregexp Parser

Sat, 05 Sep 2026 04:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-05T04:27:59.795Z

Reserved: 2026-09-05T04:27:58.625Z

Link: CVE-2026-86141

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-05T05:17:13.007

Modified: 2026-09-05T05:17:13.007

Link: CVE-2026-86141

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-05T05:30:17Z

Weaknesses