CVE-2022-40674
Summary
| CVE | CVE-2022-40674 |
|---|---|
| State | PUBLISHED |
| Assigner | mitre |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-09-14 11:15:54 UTC |
| Updated | 2026-10-14 18:17:05 UTC |
| Description | libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c. |
Risk And Classification
Primary CVSS: v3.1 8.1 HIGH from [email protected]
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS: 0.022230000 probability, percentile 0.823460000 (date 2026-10-14)
Problem Types: CWE-416 | n/a | CWE-416 CWE-416 Use After Free
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 8.1 | HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | ADP | DECLARED | 8.1 | HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | Secondary | 8.1 | HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Debian | Debian Linux | 10.0 | All | All | All |
| Operating System | Debian | Debian Linux | 11.0 | All | All | All |
| Operating System | Fedoraproject | Fedora | 35 | All | All | All |
| Operating System | Fedoraproject | Fedora | 36 | All | All | All |
| Operating System | Fedoraproject | Fedora | 37 | All | All | All |
| Application | Libexpat Project | Libexpat | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Na | N/a | affected n/a | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| cert-portal.siemens.com/productcert/html/ssa-398330.html | 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e | cert-portal.siemens.com | |
| Ensure raw tagnames are safe exiting internalEntityParser by RMJ10 · Pull Request #629 · libexpat/libexpat · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Issue Tracking, Patch, Third Party Advisory |
| cert-portal.siemens.com/productcert/html/ssa-558014.html | 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e | cert-portal.siemens.com | |
| [SECURITY] Fedora 36 Update: expat-2.4.9-1.fc36 - package-announce - Fedora Mailing-Lists | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| Debian -- Security Information -- DSA-5236-1 expat | af854a3a-2127-422b-91ae-364da2661108 | www.debian.org | Third Party Advisory |
| [SECURITY] Fedora 37 Update: mingw-expat-2.4.9-1.fc37 - package-announce - Fedora Mailing-Lists | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| [SECURITY] [DLA 3119-1] expat security update | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | Issue Tracking, Third Party Advisory |
| cert-portal.siemens.com/productcert/html/ssa-892048.html | 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e | cert-portal.siemens.com | |
| CVE-2022-40674 libexpat Vulnerability in NetApp Products | NetApp Product Security | af854a3a-2127-422b-91ae-364da2661108 | security.netapp.com | Third Party Advisory |
| [SECURITY] Fedora 35 Update: expat-2.4.9-1.fc35 - package-announce - Fedora Mailing-Lists | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| [SECURITY] Fedora 36 Update: mingw-expat-2.4.9-1.fc36 - package-announce - Fedora Mailing-Lists | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| [SECURITY] Fedora 35 Update: mingw-expat-2.4.9-1.fc35 - package-announce - Fedora Mailing-Lists | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| tests: Cover heap use-after-free issue in doContent (follow-up to #629) by hartwork · Pull Request #640 · libexpat/libexpat · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Issue Tracking, Patch, Third Party Advisory |
| Expat: Multiple Vulnerabilities (GLSA 202209-24) — Gentoo security | af854a3a-2127-422b-91ae-364da2661108 | security.gentoo.org | Third Party Advisory |
| Mozilla Firefox: Multiple Vulnerabilities (GLSA 202211-06) — Gentoo security | af854a3a-2127-422b-91ae-364da2661108 | security.gentoo.org | Third Party Advisory |
| [SECURITY] Fedora 36 Update: expat-2.4.9-1.fc36 - package-announce - Fedora Mailing-Lists | MITRE | lists.fedoraproject.org | |
| [SECURITY] Fedora 35 Update: mingw-expat-2.4.9-1.fc35 - package-announce - Fedora Mailing-Lists | MITRE | lists.fedoraproject.org | |
| [SECURITY] Fedora 35 Update: expat-2.4.9-1.fc35 - package-announce - Fedora Mailing-Lists | MITRE | lists.fedoraproject.org | |
| [SECURITY] Fedora 36 Update: mingw-expat-2.4.9-1.fc36 - package-announce - Fedora Mailing-Lists | MITRE | lists.fedoraproject.org | |
| [SECURITY] Fedora 37 Update: mingw-expat-2.4.9-1.fc37 - package-announce - Fedora Mailing-Lists | MITRE | lists.fedoraproject.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 160131 Oracle Enterprise Linux Security Update for expat (ELSA-2022-6838)
- 160133 Oracle Enterprise Linux Security Update for expat (ELSA-2022-6834)
- 160138 Oracle Enterprise Linux Security Update for expat (ELSA-2022-6878)
- 160145 Oracle Enterprise Linux Security Update for thunderbird (ELSA-2022-7026)
- 160146 Oracle Enterprise Linux Security Update for firefox (ELSA-2022-7020)
- 160148 Oracle Enterprise Linux Security Update for firefox (ELSA-2022-7024)
- 160149 Oracle Enterprise Linux Security Update for thunderbird (ELSA-2022-7023)
- 160180 Oracle Enterprise Linux Security Update for thunderbird (ELSA-2022-6998)
- 160182 Oracle Enterprise Linux Security Update for firefox (ELSA-2022-6997)
- 160188 Oracle Enterprise Linux Security Update for expat (ELSA-2022-9962)
- 160189 Oracle Enterprise Linux Security Update for compat-expat1 (ELSA-2022-9967)
- 181073 Debian Security Update for expat (DSA 5236-1)
- 181130 Debian Security Update for expat (DLA 3119-1)
- 183854 Debian Security Update for expat (CVE-2022-40674)
- 199028 Ubuntu Security Notification for Firefox Vulnerabilities (USN-5726-1)
- 199034 Ubuntu Security Notification for Expat Vulnerabilities (USN-5638-2)
- 199586 Ubuntu Security Notification for Expat Vulnerabilities (USN-5638-4)
- 20320 IBM DB2 Multiple Vulnerabilities (6847293)
- 240714 Red Hat Update for expat (RHSA-2022:6834)
- 240716 Red Hat Update for expat (RHSA-2022:6832)
- 240717 Red Hat Update for expat (RHSA-2022:6831)
- 240718 Red Hat Update for expat (RHSA-2022:6838)
- 240721 Red Hat Update for expat (RHSA-2022:6878)
- 240733 Red Hat Update for thunderbird (RHSA-2022:6995)
- 240735 Red Hat Update for thunderbird (RHSA-2022:6998)
- 240739 Red Hat Update for firefox (RHSA-2022:7022)
- 240740 Red Hat Update for firefox (RHSA-2022:7024)
- 240741 Red Hat Update for thunderbird (RHSA-2022:7023)
- 240742 Red Hat Update for firefox (RHSA-2022:7020)
- 240743 Red Hat Update for thunderbird (RHSA-2022:7026)
- 240744 Red Hat Update for thunderbird (RHSA-2022:6996)
- 240745 Red Hat Update for firefox (RHSA-2022:6997)
- 240746 Red Hat Update for firefox (RHSA-2022:7025)
- 257199 CentOS Security Update for expat (CESA-2022:6834)
- 283180 Fedora Security Update for expat (FEDORA-2022-15ec504440)
- 283208 Fedora Security Update for expat (FEDORA-2022-c68d90efc3)
- 283259 Fedora Security Update for mingw (FEDORA-2022-c22feb71ba)
- 283260 Fedora Security Update for mingw (FEDORA-2022-d93b3bd8b9)
- 283462 Fedora Security Update for mingw (FEDORA-2022-dcb1d7bcb1)
- 296086 Oracle Solaris 11.4 Support Repository Update (SRU) 51.132.1 Missing (CPUOCT2022)
- 296098 Oracle Solaris 11.4 Support Repository Update (SRU) 52.132.2 Missing (CPUOCT2022)
- 330125 IBM AIX Multiple Vulnerabilities in Python (python_advisory2)
- 354103 Amazon Linux Security Advisory for expat : ALAS2-2022-1877
- 354131 Amazon Linux Security Advisory for thunderbird : ALAS2-2022-1900
- 354248 Amazon Linux Security Advisory for expat : ALAS-2022-1654
- 354280 Amazon Linux Security Advisory for expat : ALAS2022-2022-259
- 354426 Amazon Linux Security Advisory for expat : ALAS-2022-259
- 354528 Amazon Linux Security Advisory for expat : ALAS-2022-259
- 354565 Amazon Linux Security Advisory for expat : ALAS-2022-259
- 355281 Amazon Linux Security Advisory for expat : ALAS2023-2023-058
- 356274 Amazon Linux Security Advisory for firefox : ALASFIREFOX-2023-010
- 356488 Amazon Linux Security Advisory for firefox : ALAS2FIREFOX-2023-010
- 377621 Alibaba Cloud Linux Security Update for expat (ALINUX2-SA-2022:0041)
- 377714 Alibaba Cloud Linux Security Update for expat (ALINUX3-SA-2022:0169)
- 377731 F5 BIG-IP Expat Vulnerability cve-2022-40674 (K44454157)
- 377768 Mozilla Firefox Multiple Vulnerabilities (MFSA2022-47)
- 377882 IBM Hypertext Transfer Protocol Server (HTTP Server) Remote Code Execution (RCE) Vulnerability (6827119)
- 378337 IBM Tivoli Monitoring Remote Code Execution (RCE) Vulnerability (6826711)
- 378492 Apache Open Office Multiple Vulnerabilities
- 378514 Alibaba Cloud Linux Security Update for mingw-expat (ALINUX3-SA-2023:0043)
- 390283 Oracle Managed Virtualization (VM) Server for x86 Security Update for expat (OVMSA-2023-0009)
- 502508 Alpine Linux Security Update for expat
- 502509 Alpine Linux Security Update for expat
- 503917 Alpine Linux Security Update for expat
- 6140116 AWS Bottlerocket Security Update for libexpat (GHSA-xvff-wcqg-jj26)
- 672371 EulerOS Security Update for expat (EulerOS-SA-2022-2762)
- 672398 EulerOS Security Update for expat (EulerOS-SA-2022-2727)
- 672418 EulerOS Security Update for expat (EulerOS-SA-2022-2794)
- 672452 EulerOS Security Update for expat (EulerOS-SA-2022-2819)
- 672453 EulerOS Security Update for expat (EulerOS-SA-2022-2844)
- 672728 EulerOS Security Update for expat (EulerOS-SA-2023-1501)
- 690945 Free Berkeley Software Distribution (FreeBSD) Security Update for expat (0a0670a1-3e1a-11ed-b48b-e0d55e2a8bf9)
- 710626 Gentoo Linux Expat Multiple Vulnerabilities (GLSA 202209-24)
- 710686 Gentoo Linux Mozilla Firefox Multiple Vulnerabilities (GLSA 202211-06)
- 730816 Skyhigh (McAfee) Web Gateway Security Update for expat
- 752638 SUSE Enterprise Linux Security Update for expat (SUSE-SU-2022:3466-1)
- 752644 SUSE Enterprise Linux Security Update for expat (SUSE-SU-2022:3489-1)
- 752678 SUSE Enterprise Linux Security Update for expat (SUSE-SU-2022:3597-1)
- 87525 IBM HTTP Server Remote Code Execution (RCE) Vulnerability (6827119)
- 903901 Common Base Linux Mariner (CBL-Mariner) Security Update for expat (10944)
- 903936 Common Base Linux Mariner (CBL-Mariner) Security Update for expat (10921)
- 904045 Common Base Linux Mariner (CBL-Mariner) Security Update for expat (10921-1)
- 904082 Common Base Linux Mariner (CBL-Mariner) Security Update for expat (10944-1)
- 904948 Common Base Linux Mariner (CBL-Mariner) Security Update for cmake (12307)
- 904949 Common Base Linux Mariner (CBL-Mariner) Security Update for python3 (12414)
- 905092 Common Base Linux Mariner (CBL-Mariner) Security Update for python3 (12611)
- 905144 Common Base Linux Mariner (CBL-Mariner) Security Update for cmake (12468)
- 940659 AlmaLinux Security Update for expat (ALSA-2022:6838)
- 940664 AlmaLinux Security Update for expat (ALSA-2022:6878)
- 940687 AlmaLinux Security Update for thunderbird (ALSA-2022:7023)
- 940689 AlmaLinux Security Update for firefox (ALSA-2022:7024)
- 940696 AlmaLinux Security Update for firefox (ALSA-2022:7020)
- 940698 AlmaLinux Security Update for thunderbird (ALSA-2022:7026)
- 941071 AlmaLinux Security Update for mingw-expat (ALSA-2023:3068)
- 960312 Rocky Linux Security Update for firefox (RLSA-2022:7024)
- 960358 Rocky Linux Security Update for expat (RLSA-2022:6878)
- 960457 Rocky Linux Security Update for thunderbird (RLSA-2022:7023)
- 960516 Rocky Linux Security Update for expat (RLSA-2022:6838)