Home / Libexpat Project / Libexpat / CVE-2022-40674
CVE-2022-40674: is it exploited, and which versions of Libexpat Project Libexpat are affected and fixed?
CVE-2022-40674 is an use after free vulnerability in Libexpat Project Libexpat. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: libexpat before 2.4.9, debian linux 10.0, debian linux 11.0 and 3 more (NVD). Fixed in 2.4.9 (NVD). Severity: High (8.1, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:45 UTC.
What is CVE-2022-40674?
libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.
From the CVE record by mitre, last updated October 14, 2026, 18:06 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| libexpat project | libexpat | before 2.4.9 | application |
| debian | debian linux | 10.0 | operating system |
| debian | debian linux | 11.0 | operating system |
| fedoraproject | fedora | 35 | operating system |
| fedoraproject | fedora | 36 | operating system |
| fedoraproject | fedora | 37 | operating system |
NVD analysis (status Modified), last modified October 14, 2026, 18:17 UTC.
How severe is CVE-2022-40674?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-40674 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, May 30, 2025)
- EPSS
- 2.54% probability of exploitation activity in the next 30 days, percentile 85.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-416 Use After Free
Where are the vendor advisories and references?
- https://github.com/libexpat/libexpat/pull/629
- https://github.com/libexpat/libexpat/pull/640
- DSA-5236 vendor-advisory
- [debian-lts-announce] 20220925 [SECURITY] [DLA 3119-1] expat security update mailing-list
- GLSA-202209-24 vendor-advisory
- FEDORA-2022-15ec504440 vendor-advisory
- FEDORA-2022-c68d90efc3 vendor-advisory
- https://security.netapp.com/advisory/ntap-20221028-0008/
- FEDORA-2022-d93b3bd8b9 vendor-advisory
- FEDORA-2022-c22feb71ba vendor-advisory
- FEDORA-2022-dcb1d7bcb1 vendor-advisory
- GLSA-202211-06 vendor-advisory
- https://cert-portal.siemens.com/productcert/html/ssa-558014.html
- https://cert-portal.siemens.com/productcert/html/ssa-892048.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
When was it published, and where is the official record?
- Reserved
- September 14, 2022
- Published
- September 14, 2022, 00:00 UTC
- CVE record updated
- October 14, 2026, 18:06 UTC by mitre
- NVD
- Modified, last modified October 14, 2026, 18:17 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:45 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Libexpat?
- Nov 13, 2026CVE-2026-128241 libexpat project libexpat: link following (a symlink lets an attacker reach other files)
- Aug 20, 2026CVE-2026-76957 libexpat project libexpat: use after free
- Aug 20, 2026CVE-2026-76956 libexpat project libexpat: unexpected Status Code or Return Value
- Aug 18, 2026CVE-2026-66046 libexpat project libexpat: denial of service through slow algorithm
- Aug 10, 2026CVE-2026-72522 libexpat project libexpat: out-of-bounds read
- Jun 21, 2026CVE-2026-56412 libexpat project libexpat: use after free
- Jun 21, 2026CVE-2026-56411 libexpat project libexpat: integer overflow
- Jun 21, 2026CVE-2026-56410 libexpat project libexpat: integer overflow
Questions about CVE-2022-40674
Is CVE-2022-40674 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 2.54% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Libexpat Project Libexpat are affected by CVE-2022-40674?
libexpat before 2.4.9, debian linux 10.0, debian linux 11.0, fedora 35, fedora 36 and fedora 37, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2022-40674?
2.4.9, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-40674?
High (8.1, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2022-40674?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.