libexpat · Python (CPython) · published 2026-10-07
CVE-2026-77214libexpat Heap Buffer Over-read in xmlparse.c via XML_ParseBuffer
Routine No exploitation evidence; EPSS 0.3%.
CVE-2026-77214 is not known to be exploited in the wild. EPSS estimates a 0.3% chance of exploitation in the next 30 days, higher than 26% of all CVEs. This Python (CPython) vulnerability: CVSS 8.3 (v4.0), attacks can be automated. Fixed upstream in Python (CPython) 3.15.2, 3.14.10, 3.13.18, 3.12.16 (+1 more); patched packages are out for Debian and Red Hat Enterprise Linux; Ubuntu and Red Hat Enterprise Linux still have unfixed releases. Routine: patch when convenient.
Jump to: Remediation Exploit intelAffected versionsDescription
Remediation#
Fixed upstream in Python (CPython) 3.15.2, 3.14.10, 3.13.18, 3.12.16, 3.11.18.
Linux distribution packages
If you run the distro’s package rather than an upstream build, this is the version to look for.
| Distro | Release | Package | Status |
|---|---|---|---|
| Debian | 13 trixie | expat | Fixed in 2.9.0-1~deb13u1 |
| 12 bookworm | expat | Fixed in 2.5.0-1+deb12u5 | |
| Ubuntu (+31 more packages) | 26.04 LTS | expat | No fix yet |
| 24.04 LTS | expat | No fix yet | |
| 22.04 LTS | expat | No fix yet | |
| Red Hat Enterprise Linux (+10 more packages) | RHEL 10 | expat | Fixed in 2.7.3-1.el10_2.7 RHSA-2026:88248 |
| RHEL 9 | expat | Fixed in 2.5.0-6.el9_8.7 RHSA-2026:88247 | |
| RHEL 8 | expat | Fixed in 2.5.0-6.el8_10 RHSA-2026:92323 | |
| RHEL 7 | expat | No fix yet | |
| RHEL 6 | expat | No fix yet |
From the Debian Security Tracker, Ubuntu security notices (CC BY-SA 4.0) and Red Hat Security Data (CC BY 4.0). Check the distro link before acting.
Patch events
Language runtimePython (CPython)
Python (CPython) security releases: 3.15.2, 3.14.10, 3.13.18, 3.12.16, 3.11.18
Upgrade to
3.15.23.14.103.13.183.12.163.11.18Why: Vendor security release for server software (most severe: CVE-2026-115557).
Exploit intelligence#
| Signal | Value | Source |
|---|---|---|
| Known exploited | No | CISA KEV |
| Ransomware use | — | CISA KEV |
| EPSS (30-day exploitation probability) | 0.3% (27th pct) | FIRST EPSS v2026.06.15 |
| CVSS base score | 8.3 (v4.0)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 | CNA / CISA ADP |
| SSVC exploitation | none | CISA Vulnrichment |
| SSVC automatable | Yes | CISA Vulnrichment |
| SSVC technical impact | partial | CISA Vulnrichment |
Affected versions (from the CVE record)#
- libexpat libexpat
0through2.8.5(affected)13c5f63a7f1c52c2feee3b16a1134d4fb68e9ea0(unaffected)
Description (from the CVE 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.
Quoted from the CVE Program record.