CVE-2026-56412: libexpat before 2.8.2 does not consider XML_TOK_DATA_CHARS in doCdataSection and thus lacks handler call depth
CVE-2026-56412 is a medium-severity flaw (CVSS 4.9) affecting libexpat. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
libexpat before 2.8.2 does not consider XML_TOK_DATA_CHARS in doCdataSection and thus lacks handler call depth tracking for various calls from within handlers in cases of a policy violation. Thus, a use-after-free can occur. NOTE: this issue exists because of an incomplete fix for CVE-2026-50219.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 4.9 (Medium) |
| Attack vector | Local |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.2% (top 93%) |
| CISA exploited list | No |
| Weakness | CWE-416 |
| Published | 2026-06-21 |
| Last modified | 2026-10-25 |
Last updated 2026-10-25 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-56412?
libexpat: upgrade to 2.8.2. Exact commands for each OS are on this page.
Is CVE-2026-56412 being exploited?
CVE-2026-56412 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-56412 affect?
CVE-2026-56412 affects libexpat. Severity is medium (CVSS 4.9). libexpat before 2.8.2 does not consider XML_TOK_DATA_CHARS in doCdataSection and thus lacks handler call depth tracking for various calls from within handlers in cases of a policy violation. Thus, a use-after-free can occur. NOTE: this issu
How urgent is CVE-2026-56412?
Priority 19/100. No elevated risk signals yet.
Related CVEs
- CVE-2026-56403 MEDIUM 6.9 UPGRADE libexpat before 2.8.2 has an integer overflow in storeAtts.
- CVE-2026-56406 MEDIUM 6.9 UPGRADE libexpat before 2.8.2 has an integer overflow in XML_ParseBuffer because it lacked a check that was present in
- CVE-2026-56407 MEDIUM 6.9 UPGRADE libexpat before 2.8.2 has an integer overflow in doProlog that is related to storeEntityValue and entity textL
- CVE-2026-56404 MEDIUM 6.9 UPGRADE libexpat before 2.8.2 has an integer overflow in addBinding.
- CVE-2026-56405 MEDIUM 6.9 UPGRADE libexpat before 2.8.2 has an integer overflow in getAttributeId.