| Name | CVE-2022-40674 | 
| Description | libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c. | 
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) | 
| References | DLA-3119-1, DSA-5236-1 | 
| Debian Bugs | 1019761 | 
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|
| expat (PTS) | bullseye | 2.2.10-2+deb11u5 | fixed | 
|  | bullseye (security) | 2.2.10-2+deb11u7 | fixed | 
|  | bookworm | 2.5.0-1+deb12u2 | fixed | 
|  | bookworm (security) | 2.5.0-1+deb12u1 | fixed | 
|  | trixie | 2.7.1-2 | fixed | 
|  | forky, sid | 2.7.3-1 | fixed | 
| libxmltok (PTS) | bookworm, bullseye | 1.2-4 | vulnerable | 
The information below is based on the following data on fixed versions.
Notes
[bookworm] - libxmltok <ignored> (Minor issue, no runtime dependencies left)
https://github.com/libexpat/libexpat/pull/629
https://github.com/libexpat/libexpat/pull/640
https://github.com/libexpat/libexpat/commit/4a32da87e931ba54393d465bb77c40b5c33d343b