Description
In libxml2 before 2.15.4, xmlDictAddQString in dict.c has an integer overflow and resultant heap-based buffer overflow.
Published: 2026-09-05
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

In libxml2 versions prior to 2.15.4 the xmlDictAddQString function in dict.c contains an integer overflow that results in a heap-based buffer overflow. The overflow occurs when an internal buffer size is calculated without proper bounds checking, leading to memory writes beyond the allocated region. If an attacker can supply a crafted XML document that triggers this fault, the overflow can overwrite critical program data and potentially allow remote code execution. The weakness corresponds to CWE-190 (Arithmetic Overflow/Underflow) and manifests as a heap-based buffer overflow (CWE-787).

Affected Systems

The affected product is libxml2 produced by the XMLSoft project. Any installation of libxml2 before release 2.15.4 is vulnerable. The security fix is bundled in v2.15.4 and later, so systems that depend on the library should verify their current version and upgrade if needed. All releases earlier than 2.15.4, including 2.15.3 and older major releases, lack the patch.

Risk and Exploitability

The CVSS score of 6.9 classifies the issue as medium severity. The EPSS score is < 1%, indicating a very low but non‑zero likelihood of exploitation. The vulnerability is not listed in any CISA KEV catalog, which suggests that there has been no publicly documented exploitation at the time of this analysis. However, the nature of the overflow means that exploitation is theoretically feasible in any context where untrusted input can be parsed by libxml2, such as web servers, file processors, or embedded devices. Attackers would need to supply a crafted XML document that triggers the overflow, but the lack of a public proof of concept makes the practical risk uncertain. Given the medium CVSS score and potential for remote code execution, the vulnerability should be remediated promptly.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade libxml2 to version 2.15.4 or later to include the integer overflow fix.
  • If the application cannot be upgraded yet, replace the installed libxml2 with a backported or vendor‑patched version that includes the fix from commit a4cba4b5b5a8c42e155ed42d2d2a44955465a2e4.
  • As a temporary mitigation, limit the size of XML input processed by libxml2 and implement additional input validation or sandboxing to constrain potential exploitation of a heap buffer overflow.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 09 Sep 2026 22:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 08 Sep 2026 00:15:00 +0000

Type Values Removed Values Added
Title libxml2: libxml2: Arbitrary code execution via heap-based buffer overflow
Weaknesses CWE-787
References
Metrics threat_severity

None

threat_severity

Moderate


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

Type Values Removed Values Added
Description In libxml2 before 2.15.4, xmlDictAddQString in dict.c has an integer overflow and resultant heap-based buffer overflow.
First Time appeared Xmlsoft
Xmlsoft libxml2
Weaknesses CWE-190
CPEs cpe:2.3:a:xmlsoft:libxml2:*:*:*:*:*:*:*:*
Vendors & Products Xmlsoft
Xmlsoft libxml2
References
Metrics cvssV3_1

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


cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-08T18:04:58.145Z

Reserved: 2026-09-05T04:21:52.780Z

Link: CVE-2026-86138

cve-icon Vulnrichment

Updated: 2026-09-08T18:04:47.711Z

cve-icon NVD

Status : Analyzed

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

Modified: 2026-09-15T19:40:47.560

Link: CVE-2026-86138

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-05T04:21:53Z

Links: CVE-2026-86138 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-08T02:45:09Z

Weaknesses