Description
In libxml2 before 2.15.4, xmlURIEscapeStr in uri.c has an integer overflow.
Published: 2026-09-05
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Potential memory corruption via integer overflow in libxml2 URI handling
Action: Patch
AI Analysis

Impact

The vulnerability is an integer overflow (CWE‑190) in the xmlURIEscapeStr function within libxml2’s uri.c file. The overflow can corrupt memory during URI escaping, potentially allowing an adversary to exploit a malformed URI to cause a crash or further compromise system integrity if the affected code is executed with elevated privileges.

Affected Systems

All installations of libxml2 older than 2.15.4 are vulnerable, including the xmlsoft:libxml2 product on any platform that uses libxml2 for XML processing. The issue is present in all versions before 2.15.4 regardless of patch or compile options.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog, suggesting limited public exploitation to date. The likely attack vector is the processing of external or untrusted XML that contains URIs with unexpectedly large or malicious content. Successful exploitation would require the ability to supply such input to a vulnerable application. The lack of a public exploit does not preclude the use of this vulnerability as a foothold in a larger attack chain if an attacker can deliver crafted XML to a system running an old libxml2 version.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update libxml2 to version 2.15.4 or later
  • If an upgrade is not possible, restrict the maximum length of URI strings before they reach libxml2
  • Apply additional input validation to detect and reject URIs that could trigger the overflow
  • Consider recompiling libxml2 with safety checks (bounds checking) if the vendor’s patch is unavailable

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 08 Sep 2026 14: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 URI Escaping Function libxml2: libxml2: Integer overflow in xmlURIEscapeStr may lead to arbitrary code execution
References
Metrics threat_severity

None

threat_severity

Moderate


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

Type Values Removed Values Added
Title Integer Overflow in libxml2 URI Escaping Function

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

Type Values Removed Values Added
Description In libxml2 before 2.15.4, xmlURIEscapeStr in uri.c has an integer 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-08T13:04:24.068Z

Reserved: 2026-09-05T04:23:14.327Z

Link: CVE-2026-86139

cve-icon Vulnrichment

Updated: 2026-09-08T13:04:08.909Z

cve-icon NVD

Status : Analyzed

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

Modified: 2026-09-15T19:39:45.267

Link: CVE-2026-86139

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-05T04:23:14Z

Links: CVE-2026-86139 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-05T08:00:05Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound