VDB
CVE-2021-45960
CVE-2021-45960
PUBLISHED
CVSS 8.8 HIGH
Reported by mitre · Published January 1, 2022
In Expat (aka libexpat) before 2.4.3, a left shift by 29 (or more) places in the storeAtts function in xmlparse.c can lead to realloc misbehavior (e.g., allocating too few bytes, or only freeing memory).
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-devel | Amazon Linux | 2.1.0-12.amzn2.0.4 |
| expat | Amazon Linux | 2.5.0-1.amzn2023.0.2 |
| expat | Alpine | 2.4.3-r0, 2.2.10-r2, 2.2.10-r0 |
| sinema_remote_connect_server | siemens | 3.1 |
| libexpat | libexpat_project | 2.4.3 |
| SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
| nessus | tenable | 10.1.1, 8.15.3 |
Risk scores
CVSS 3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | expat-devel | 0 |
| amazon:2023 | expat | 0 |
| alpine | expat | 0, 0, 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| n/a | n/a | * |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | expat-devel | 0 |
| amazon:2 | expat-static | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | expat-static | 0 |
| amazon:2 | expat | 0 |
Timeline
- Jan 1, 2022 CVE Published
- Jan 2, 2022 EPSS Score (30 in total, the first dated here)
- Apr 3, 2025 PoC Published (2 in total, the first dated here)
- Mar 27, 2026 Distribution Patch (19 in total, the first dated here)
- Mar 27, 2026 Security Advisory (28 in total, the first dated here)
- Jul 15, 2026 Coalition ESS Score
- Sep 20, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-45960
vulnetix vdb fixes CVE-2021-45960
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-2021-45960/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- [oss-security] 20220117 Expat 2.4.3 released, includes 8 security fixes mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- DSA-5073 vendor-advisoryx_refsource_DEBIAN
- x_refsource_CONFIRM
- GLSA-202209-24 vendor-advisoryx_refsource_GENTOO
- https://cert-portal.siemens.com/productcert/html/ssa-484086.html url
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url