Skip to content
Heist/ feed
High

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

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-77214

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-77214

libexpat

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://github.com/libexpat/libexpat",
    "vendor": "libexpat",
    "product": "libexpat",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "versionType": "semver",
        "lessThanOrEqual": "2.8.5"
      },
      {
        "status": "unaffected",
        "version": "13c5f63a7f1c52c2feee3b16a1134d4fb68e9ea0",
        "versionType": "git"
      }
    ],
    "packageURL": "pkg:github/libexpat/libexpat",
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-77214

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#16546 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement