CVE-2026-86143

libxml2: libxml2: Data integrity issues due to integer overflow in write callbacks

Published Sep 5, 2026 CVSS 3.1 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
In xmlIO in libxml2 before 2.15.4, an inconsistency in xmlOutputWriteCallback and xmlBufUse causes negative lengths to reach write callbacks, aka a lack of a check for integer overflow before calling writecallback. This has security relevance for many types of uses of that length value within a callback.

Analysis

AI-generated

Technical impact

In libxml2 before version 2.15.4, an inconsistency between xmlOutputWriteCallback and xmlBufUse allows negative lengths to be passed to write callbacks. The flaw is a lack of integer overflow validation and is classified as CWE‑192. This can result in undefined behavior when the callback processes the length value, making the library’s behavior potentially unsafe if untrusted data is involved.

Affected Systems

The vulnerability affects all releases of the libxml2 library from xmlsoft that are older than version 2.15.4. Applications and distributions that ship these older releases are consequently exposed.

Risk and Exploitability

The CVSS score of 6.9 marks the issue as moderate severity. An EPSS score of < 1% indicates a very low but non‑zero likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog, indicating limited or unknown exploitation activity. The attack vector is inferred to be local or remote, depending on the ability to provide crafted input that triggers the callback. Exploitation requires the application to invoke the write callback with a negative length, and the impact would depend on how the callback interprets the length value.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libxml2 to version 2.15.4 or later to correct the integer overflow check
  • If upgrading immediately is not possible, isolate or restrict processes that use libxml2's output callbacks to limit potential impact
  • Configure applications to validate or sanitize output buffers before invoking callbacks to mitigate downstream buffer misuse

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

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8910-1 libxml2 vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Title Integer Overflow in libxml2 Output Callbacks libxml2: libxml2: Data integrity issues due to integer overflow in write callbacks
Weaknesses CWE-190
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Title Integer Overflow in libxml2 Output Callbacks
Type Values Removed Values Added
Description In xmlIO in libxml2 before 2.15.4, an inconsistency in xmlOutputWriteCallback and xmlBufUse causes negative lengths to reach write callbacks, aka a lack of a check for integer overflow before calling writecallback. This has security relevance for many types of uses of that length value within a callback.
First Time appeared Xmlsoft
Xmlsoft libxml2
Weaknesses CWE-192
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'}

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

  • CWE-192

    Integer Coercion Error

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Sep 8, 2026, 6:06 PM
Reserved
Sep 5, 2026, 4:31 AM
Status
Analyzed
Published
Sep 5, 2026, 5:17 AM
Modified
Sep 15, 2026, 7:31 PM
Severity
Moderate
Public date
Sep 5, 2026, 4:31 AM