CVE-2026-77214

libexpat Heap Buffer Over-read in xmlparse.c via XML_ParseBuffer

Published Oct 7, 2026 CVSS 4.0 · 8.3 High EPSS < 1% KEV · Not listed
Description
libexpat before commit 13c5f63 contains a heap buffer over-read vulnerability in xmlparse.c. XML_ParseBuffer advances the parse buffer end with parser->m_bufferEnd += len using a caller-supplied length that is not validated against the allocated buffer size, so repeated XML_ParseBuffer calls move m_bufferEnd past the end of the heap allocation and subsequent parsing reads out of bounds. Reaching this path requires a parse buffer to already be present; otherwise XML_ParseBuffer returns XML_ERROR_NO_BUFFER. A buffer is present after a prior call to XML_GetBuffer, either directly (the common case) or indirectly through a prior XML_Parse call that allocates the buffer internally. The over-read discloses adjacent heap memory to the calling application, recovering heap pointers, libc function pointers, and code pointers sufficient to defeat ASLR and build further exploitation primitives.

Analysis

AI-generated

Technical impact

A heap buffer over-read exists in libexpat’s xmlparse.c, where XML_ParseBuffer increments an internal end pointer without validating the caller‑supplied length. Repeated calls can move that pointer past the allocated heap, allowing the parser to read memory beyond the buffer’s bounds. This read leaks adjacent heap data, including pointers to libc function tables and other executable code, enough to defeat ASLR and serve as a foothold for further exploit development.

Affected Systems

The vulnerability applies to libexpat before the fix committed at 13c5f63. Any product bundles libexpat versions older than this commit are affected, regardless of distribution or packaging.

Risk and Exploitability

With a CVSS score of 8.3, the risk is considered high. The EPSS score is not available, and the vulnerability is not yet listed in the CISA KEV catalog. Exploitation requires that a parse buffer already exists, which is typical after a call to XML_GetBuffer or an earlier XML_Parse. Once the buffer is present, repeated XML_ParseBuffer calls can leak memory contents. An attacker can use the disclosed heap pointers and code pointers to bypass ASLR, creating a chain that can lead to remote code execution if additional privilege‑elevating or code‑execution primitives are available.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update libexpat to a version that includes commit 13c5f63 or newer, ensuring the buffer size validation is in place.
  • Recompile or rebuild any applications that link against libexpat to use the patched library.
  • Validate that no legacy XML_ParseBuffer usage remains in application code and replace it with safer alternatives that enforce strict length checks.

Generated by OpenCVE AI on October 7, 2026 at 15:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4849-1 expat security update
Debian DSA Debian DSA DSA-6566-1 expat security update
History
Type Values Removed Values Added
First Time appeared Libexpat Project
Libexpat Project libexpat
CPEs cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*
Vendors & Products Libexpat Project
Libexpat Project libexpat
Type Values Removed Values Added
First Time appeared Libexpat
Libexpat expat
Vendors & Products Libexpat
Libexpat expat
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description libexpat before commit 13c5f63 contains a heap buffer over-read vulnerability in xmlparse.c. XML_ParseBuffer advances the parse buffer end with parser->m_bufferEnd += len using a caller-supplied length that is not validated against the allocated buffer size, so repeated XML_ParseBuffer calls move m_bufferEnd past the end of the heap allocation and subsequent parsing reads out of bounds. Reaching this path requires a parse buffer to already be present; otherwise XML_ParseBuffer returns XML_ERROR_NO_BUFFER. A buffer is present after a prior call to XML_GetBuffer, either directly (the common case) or indirectly through a prior XML_Parse call that allocates the buffer internally. The over-read discloses adjacent heap memory to the calling application, recovering heap pointers, libc function pointers, and code pointers sufficient to defeat ASLR and build further exploitation primitives.
Title libexpat Heap Buffer Over-read in xmlparse.c via XML_ParseBuffer
Weaknesses CWE-125
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 10, 2026, 12:49 PM
Reserved
Aug 20, 2026, 6:25 PM
Status
Awaiting Analysis
Published
Oct 7, 2026, 3:17 PM
Modified
Nov 10, 2026, 1:19 PM
Severity
Important
Public date
Oct 7, 2026, 2:35 PM