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.

PackageEcosystemFixed in
expat-staticAmazon Linux2.5.0-1.amzn2023.0.2, 2.1.0-15.amzn2.0.1
expatArch Linux2.4.9-1
thunderbirdAmazon Linux102.4.0-1.amzn2.0.1
SIPLUS S7-1500 CPU 1518-4 PN/DP MFPSiemens3.1.5
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPSiemens3.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

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

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

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