# CVE-2022-40674: libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.

- Severity: High 8.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.54%, higher than 85% of CVEs (2026-12-02)
- Published: 2022-09-14T00:00:00.000Z
- Modified: 2026-10-14T18:17:05.450Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mitre

## Description

libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- libexpat_project libexpat: before 2.4.9
- debian debian_linux: 10.0; 11.0
- fedoraproject fedora: 35; 36; 37

## Every score

- CISA-ADP: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/libexpat/libexpat/pull/629> (issue-tracking, patch, third-party-advisory)
- <https://github.com/libexpat/libexpat/pull/640> (issue-tracking, patch, third-party-advisory)
- <https://www.debian.org/security/2022/dsa-5236> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/09/msg00029.html> (issue-tracking, mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202209-24> (third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WE2ZKEPGFCZ7R6DRVH3K6RBJPT42ZBEG/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J2IGJNHFV53PYST7VQV3T4NHVYAMXA36/> (vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20221028-0008/> (third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GSVZN3IJ6OCPSJL7AEX3ZHSHAHFOGESK/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XCGBVQQ47URGJAZWHCISHDWF6QBTV2LE/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LQB6FJAM5YQ35SF5B2MN25Y2FX56EOEZ/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202211-06> (third-party-advisory, 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>

## Sources

- CVE List: [CVE-2022-40674](https://www.cve.org/CVERecord?id=CVE-2022-40674), CVE Terms of Use, modified 2026-10-14
- NVD: [CVE-2022-40674](https://nvd.nist.gov/vuln/detail/CVE-2022-40674), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2022-40674 · Whole record: https://cve.day/CVE-2022-40674.json · Rebuilt by cve.day 2026-11-25T22:58:14.927Z
