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.
Published: 2026-09-05
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Integer overflow vulnerability
Action: Immediate Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Tue, 08 Sep 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


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

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


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

Type Values Removed Values Added
Title Integer Overflow in libxml2 Output Callbacks

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

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


cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-08T18:06:25.507Z

Reserved: 2026-09-05T04:31:20.849Z

Link: CVE-2026-86143

cve-icon Vulnrichment

Updated: 2026-09-08T18:06:14.012Z

cve-icon NVD

Status : Analyzed

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

Modified: 2026-09-15T19:31:15.857

Link: CVE-2026-86143

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2026-86143 - Bugzilla

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

  • CWE-192

    Integer Coercion Error