libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.
Priority MEDIUM 42CWE-416Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 21 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat. Impact type from CWE-416 and the CVSS impact.
Summary
libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.
Why it matters now
Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0225 83rd percentileScored 2026-11-07
Fix Partial Red Hat: 23 advisoriesRed Hat: 21 fixed, 2 without a fix
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:* | before 2.4.9 | Vulnerable | libexpat project |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* | 11.0 | Vulnerable | Debian |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 36 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* | 37 | Vulnerable | Fedoraproject |
- cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:* Versions before 2.4.9 Vulnerable ·libexpat project
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* Versions 11.0 Vulnerable ·Debian
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* Versions 37 Vulnerable ·Fedoraproject
Remediation
Red Hat 23 advisories
- RHSA-2023:3068 Released 2023-05-16 · Red Hat rating Importantmingw-expat security update
- Red Hat Enterprise Linux CRB (v. 8) mingw-expat-2.4.8-2.el8, mingw32-expat-2.4.8-2.el8, mingw64-expat-2.4.8-2.el8
- RHSA-2022:8841 Released 2022-12-08 · Red Hat rating ImportantRed Hat JBoss Core Services Apache HTTP Server 2.4.51 SP1 security update
- Red Hat JBoss Core Services
- RHSA-2022:8598 Released 2022-11-22 · Red Hat rating ImportantRed Hat Virtualization Host security update [ovirt-4.5.3-1]
- Red Hat Virtualization 4 Hypervisor for RHEL 8 redhat-virtualization-host-4.5.3-202211170828_8.6, redhat-virtualization-host-image-update-4.5.3-202211170828_8.6
Show 20 more Red Hat advisories
- RHSA-2022:7025 Released 2022-10-18 · Red Hat rating Importantfirefox security update
- Red Hat Enterprise Linux AppStream EUS (v.8.4) firefox-102.3.0-7.el8_4
- RHSA-2022:7024 Released 2022-10-18 · Red Hat rating Importantfirefox security update
- Red Hat Enterprise Linux AppStream (v. 8) firefox-102.3.0-7.el8_6
- RHSA-2022:7023 Released 2022-10-18 · Red Hat rating Importantthunderbird security update
- Red Hat Enterprise Linux AppStream (v. 8) thunderbird-102.3.0-4.el8_6
- RHSA-2022:7020 Released 2022-10-18 · Red Hat rating Importantfirefox security update
- Red Hat Enterprise Linux AppStream (v. 9) firefox-102.3.0-7.el9_0
- RHSA-2022:7026 Released 2022-10-18 · Red Hat rating Importantthunderbird security update
- Red Hat Enterprise Linux AppStream (v. 9) thunderbird-102.3.0-4.el9_0
- RHSA-2022:7022 Released 2022-10-18 · Red Hat rating Importantfirefox security update
- Red Hat Enterprise Linux AppStream EUS (v. 8.2) firefox-102.3.0-7.el8_2
- RHSA-2022:7019 Released 2022-10-18 · Red Hat rating Importantfirefox security update
- Red Hat Enterprise Linux AppStream E4S (v. 8.1) firefox-102.3.0-7.el8_1
- RHSA-2022:7021 Released 2022-10-18 · Red Hat rating Importantthunderbird security update
- Red Hat Enterprise Linux AppStream E4S (v. 8.1) thunderbird-102.3.0-4.el8_1
- RHSA-2022:6998 Released 2022-10-18 · Red Hat rating Importantthunderbird security update
- Red Hat Enterprise Linux Client (v. 7) thunderbird-102.3.0-4.el7_9
- Red Hat Enterprise Linux Server Optional (v. 7) thunderbird-102.3.0-4.el7_9
- Red Hat Enterprise Linux Workstation (v. 7) thunderbird-102.3.0-4.el7_9
- RHSA-2022:6995 Released 2022-10-18 · Red Hat rating Importantthunderbird security update
- Red Hat Enterprise Linux AppStream EUS (v.8.4) thunderbird-102.3.0-4.el8_4
- RHSA-2022:6997 Released 2022-10-18 · Red Hat rating Importantfirefox security update
- Red Hat Enterprise Linux Client (v. 7) firefox-102.3.0-7.el7_9
- Red Hat Enterprise Linux Client Optional (v. 7) firefox-102.3.0-7.el7_9
- Red Hat Enterprise Linux Server (v. 7) firefox-102.3.0-7.el7_9
- Red Hat Enterprise Linux Server Optional (v. 7) firefox-102.3.0-7.el7_9
- Red Hat Enterprise Linux Workstation (v. 7) firefox-102.3.0-7.el7_9
- Red Hat Enterprise Linux Workstation Optional (v. 7) firefox-102.3.0-7.el7_9
- RHSA-2022:6996 Released 2022-10-18 · Red Hat rating Importantthunderbird security update
- Red Hat Enterprise Linux AppStream EUS (v. 8.2) thunderbird-102.3.0-4.el8_2
- RHSA-2022:6967 Released 2022-10-17 · Red Hat rating Importantcompat-expat1 security update
- Red Hat Enterprise Linux Server (v. 6 ELS) compat-expat1-1.95.8-9.el6_10
- RHSA-2022:6921 Released 2022-10-12 · Red Hat rating Importantexpat security update
- Red Hat Enterprise Linux Server (v. 6 ELS) expat-2.0.1-15.el6_10, expat-devel-2.0.1-15.el6_10
- RHSA-2022:6878 Released 2022-10-11 · Red Hat rating Importantexpat security update
- Red Hat Enterprise Linux BaseOS (v. 8) expat-2.2.5-8.el8_6.3, expat-devel-2.2.5-8.el8_6.3
- RHSA-2022:6838 Released 2022-10-06 · Red Hat rating Importantexpat security update
- Red Hat Enterprise Linux AppStream (v. 9) expat-devel-2.2.10-12.el9_0.3
- Red Hat Enterprise Linux BaseOS (v. 9) expat-2.2.10-12.el9_0.3
- RHSA-2022:6834 Released 2022-10-06 · Red Hat rating Importantexpat security update
- Red Hat Enterprise Linux Client (v. 7) expat-2.1.0-15.el7_9
- Red Hat Enterprise Linux Client Optional (v. 7) expat-devel-2.1.0-15.el7_9, expat-static-2.1.0-15.el7_9
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) expat-devel-2.1.0-15.el7_9, expat-static-2.1.0-15.el7_9
- Red Hat Enterprise Linux Server (v. 7) expat-2.1.0-15.el7_9, expat-2.1.0-15.el7_9.ppc, expat-devel-2.1.0-15.el7_9 +1
- Red Hat Enterprise Linux Server Optional (v. 7) expat-static-2.1.0-15.el7_9, expat-static-2.1.0-15.el7_9.ppc
- Red Hat Enterprise Linux Workstation (v. 7) expat-2.1.0-15.el7_9, expat-devel-2.1.0-15.el7_9
- Red Hat Enterprise Linux Workstation Optional (v. 7) expat-static-2.1.0-15.el7_9
- RHSA-2022:6831 Released 2022-10-06 · Red Hat rating Importantexpat security update
- Red Hat Enterprise Linux BaseOS EUS (v.8.4) expat-2.2.5-4.el8_4.4, expat-devel-2.2.5-4.el8_4.4
- RHSA-2022:6832 Released 2022-10-06 · Red Hat rating Importantexpat security update
- Red Hat Enterprise Linux BaseOS EUS (v. 8.2) expat-2.2.5-3.el8_2.3, expat-devel-2.2.5-3.el8_2.3
- RHSA-2022:6833 Released 2022-10-06 · Red Hat rating Importantexpat security update
- Red Hat Enterprise Linux BaseOS E4S (v. 8.1) expat-2.2.5-3.el8_1.2, expat-devel-2.2.5-3.el8_1.2
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 8 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 9 | Affected | No fix yet |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2022:7023, RHSA-2022:7024 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2022:6838, RHSA-2022:7020, RHSA-2022:7026 |
| Red Hat Enterprise Linux AppStream E4S (v. 8.1) | Fixed | RHSA-2022:7019, RHSA-2022:7021 |
| Red Hat Enterprise Linux AppStream EUS (v. 8.2) | Fixed | RHSA-2022:6996, RHSA-2022:7022 |
| Red Hat Enterprise Linux AppStream EUS (v.8.4) | Fixed | RHSA-2022:6995, RHSA-2022:7025 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2022:6878 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2022:6838 |
| Red Hat Enterprise Linux BaseOS E4S (v. 8.1) | Fixed | RHSA-2022:6833 |
| Red Hat Enterprise Linux BaseOS EUS (v. 8.2) | Fixed | RHSA-2022:6832 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.4) | Fixed | RHSA-2022:6831 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2023:3068 |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2022:6834, RHSA-2022:6997, RHSA-2022:6998 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2022:6834, RHSA-2022:6997 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2022:6834 |
| Red Hat Enterprise Linux Server (v. 6 ELS) | Fixed | RHSA-2022:6921, RHSA-2022:6967 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2022:6834, RHSA-2022:6997 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2022:6834, RHSA-2022:6997, RHSA-2022:6998 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2022:6834, RHSA-2022:6997, RHSA-2022:6998 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2022:6834, RHSA-2022:6997 |
| Red Hat JBoss Core Services | Fixed | RHSA-2022:8841 |
| Red Hat Virtualization 4 Hypervisor for RHEL 8 | Fixed | RHSA-2022:8598 |
Not affected: 2 products
- RHEL 8-based RHEV-H for RHEV 4 (build requirements)
- Red Hat Enterprise Linux 8
Timeline
- 2026-10-02 Threatist record created from CVE-2022-40674
- 2026-10-03 Alias added: GHSA-2vq2-xc55-3j5m
- 2026-10-09 Fix available: RHSA-2022:8841 · Red Hat
- 2026-10-09 Fix available: Red Hat JBoss Core Services · Red Hat
References
Sources
- CVE-2022-40674 · CVE Program
- CVE-2022-40674 · NVD
- FIRST EPSS
- GHSA-2vq2-xc55-3j5m · GitHub Advisory Database · CC BY 4.0
- CVE-2022-40674 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences