Vulnerability · Published Sep 14, 2022 · Assigned by mitre
CVE-2022-40674
High 8.1
In plain English
A high-severity use-after-free in the expat package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 83% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)8.1High
Exploit odds (30 days)2.2%top 17.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | expat | 2.2.5-8.el8_6.3 | ALSA-2022:6878 |
| AlmaLinux:9 | expat | 2.2.10-12.el9_0.3 | ALSA-2022:6838 |
| AlmaLinux:8 | expat-devel | 2.2.5-8.el8_6.3 | ALSA-2022:6878 |
| AlmaLinux:9 | expat-devel | 2.2.10-12.el9_0.3 | ALSA-2022:6838 |
| AlmaLinux:8 | firefox | 102.3.0-7.el8_6.alma | ALSA-2022:7024 |
| AlmaLinux:9 | firefox | 102.3.0-7.el9_0.alma | ALSA-2022:7020 |
| AlmaLinux:8 | mingw32-expat | 2.4.8-2.el8 | ALSA-2023:3068 |
| AlmaLinux:8 | mingw64-expat | 2.4.8-2.el8 | ALSA-2023:3068 |
| AlmaLinux:8 | thunderbird | 102.3.0-4.el8_6.alma | ALSA-2022:7023 |
| AlmaLinux:9 | thunderbird | 102.3.0-4.el9_0.alma.plus | ALSA-2022:7026 |
| Alpine:v3.20 | expat | 2.4.9-r0 | ALPINE-CVE-2022-40674 |
| Alpine:v3.21 | expat | 2.4.9-r0 | ALPINE-CVE-2022-40674 |
| Alpine:v3.22 | expat | 2.4.9-r0 | ALPINE-CVE-2022-40674 |
| Alpine:v3.23 | expat | 2.4.9-r0 | ALPINE-CVE-2022-40674 |
| Alpine:v3.24 | expat | 2.4.9-r0 | ALPINE-CVE-2022-40674 |
| Debian:12 | expat | 2.4.8-2 | DEBIAN-CVE-2022-40674 |
| Debian:13 | expat | 2.4.8-2 | DEBIAN-CVE-2022-40674 |
| Debian:14 | expat | 2.4.8-2 | DEBIAN-CVE-2022-40674 |
| Debian:12 | libxmltok | no fix listed | DEBIAN-CVE-2022-40674 |
| Rocky Linux:8 | expat | 0:2.2.5-8.el8_6.3 | RLSA-2022:6878 |
| Rocky Linux:9 | expat | 0:2.2.10-12.el9_0.3 | RLSA-2022:6838 |
| Rocky Linux:8 | firefox | 0:102.3.0-7.el8_6 | RLSA-2022:7024 |
| Rocky Linux:8 | mingw-expat | 0:2.4.8-2.el8 | RLSA-2023:3068 |
| Rocky Linux:8 | thunderbird | 0:102.3.0-4.el8_6 | RLSA-2022:7023 |
| Ubuntu:22.04:LTS | cadaver | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:24.04:LTS | cadaver | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:25.10 | cadaver | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:26.04:LTS | cadaver | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:26.10 | cadaver | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:22.04:LTS | coin3 | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:24.04:LTS | coin3 | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:25.10 | coin3 | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:26.04:LTS | coin3 | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:26.10 | coin3 | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:22.04:LTS | expat | 2.4.7-1ubuntu0.1 | USN-5638-2 |
| Ubuntu:22.04:LTS | expat | 2.4.7-1ubuntu0.1 | UBUNTU-CVE-2022-40674 |
| Ubuntu:22.04:LTS | matanza | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:24.04:LTS | matanza | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:25.10 | matanza | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:26.04:LTS | matanza | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:26.10 | matanza | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:25.10 | swish-e | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:26.10 | swish-e | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:22.04:LTS | tdom | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:24.04:LTS | tdom | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:25.10 | tdom | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:26.04:LTS | tdom | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:26.10 | tdom | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:22.04:LTS | thunderbird | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:24.04:LTS | thunderbird | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:25.10 | thunderbird | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:26.04:LTS | thunderbird | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:26.10 | thunderbird | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:22.04:LTS | wbxml2 | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:24.04:LTS | wbxml2 | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:25.10 | wbxml2 | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:26.04:LTS | wbxml2 | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:26.10 | wbxml2 | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:25.10 | xmlrpc-c | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:26.04:LTS | xmlrpc-c | no fix listed | UBUNTU-CVE-2022-40674 |
| Ubuntu:26.10 | xmlrpc-c | no fix listed | UBUNTU-CVE-2022-40674 |
Affected products (as reported)
Weakness: CWE-416 · Vector: 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
- 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