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.

PackageEcosystemFixed in
expat-develAmazon Linux2.1.0-12.amzn2.0.4
expatAmazon Linux2.5.0-1.amzn2023.0.2
expatAlpine2.4.3-r0, 2.2.10-r2, 2.2.10-r0
sinema_remote_connect_serversiemens3.1
libexpatlibexpat_project2.4.3
SIMATIC S7-1500 CPU 1518-4 PN/DP MFPSiemens3.1.5
nessustenable10.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

VendorProductVersions
n/an/an/a
amazon:2expat-devel0
amazon:2023expat0
alpineexpat0, 0, 0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.0
n/an/a*
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
amazon:2023expat-devel0
amazon:2expat-static0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.0
amazon:2023expat-static0
amazon:2expat0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›