VDB
CVE-2022-40674
CVE-2022-40674
PUBLISHED
CVSS 8.1 HIGH
libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.
Reported by mitre · Published September 14, 2022
libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| expat-static | Amazon Linux | 2.5.0-1.amzn2023.0.2, 2.1.0-15.amzn2.0.1 |
| expat | Arch Linux | 2.4.9-1 |
| thunderbird | Amazon Linux | 102.4.0-1.amzn2.0.1 |
| SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
| SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | Siemens | 3.1.5 |
Risk scores
CVSS 3.1
8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | expat-static | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| arch | expat | 0 |
| amazon:2 | thunderbird | 0 |
| amazon:2023 | expat-static | 0 |
| n/a | n/a | * |
| wolfi | expat | * |
| alpine | expat | 0, 0 |
| amazon:2023 | expat-devel | 0 |
| amazon:2023 | expat | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | expat | 0 |
| chainguard | expat | * |
| amazon:2 | expat-devel | 0 |
Timeline
- Sep 14, 2022 CVE Published
- Sep 14, 2022 EPSS Score (30 in total, the first dated here)
- May 30, 2025 CVE Updated
- Dec 16, 2025 PoC Published
- Mar 17, 2026 Security Advisory (55 in total, the first dated here)
- Jun 16, 2026 Coalition ESS Score
- Oct 15, 2026 Distribution Patch (49 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-40674
vulnetix vdb fixes CVE-2022-40674
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-40674/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 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
- 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 url
- https://cert-portal.siemens.com/productcert/html/ssa-892048.html url
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url