Skip to content
Fencer Intel
high 8.1

CVE-2022-40674 json

libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.

published 4y ago modified 26d ago also EUVD-2022-43945 , JLSEC-2025-57

cvss
8.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
2.4%
EPSS 2.4% chance of exploitation in 30 days, percentile 84%
public exploits
0
none known

Summary

libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.

Patch / fix

  • julia Expat_jll 2.5.0+0
  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
  • Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP V3.1.5
  • Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
  • expat Debian 14, Debian 13, Debian 12 2.4.8-2

debian advisories DEBIAN-CVE-2022-40674

  • expat Ubuntu 18.04 LTS 2.2.5-3ubuntu0.8
  • expat Ubuntu 20.04 LTS 2.2.9-1ubuntu0.5
  • expat Ubuntu 22.04 LTS 2.4.7-1ubuntu0.1
  • firefox Ubuntu 18.04 LTS 107.0+build2-0ubuntu0.18.04.1
  • firefox Ubuntu 20.04 LTS 107.0+build2-0ubuntu0.20.04.1
  • expat Ubuntu Pro 14.04 LTS 2.1.0-4ubuntu1.4+esm7
  • expat Ubuntu Pro 16.04 LTS 2.1.0-7ubuntu0.16.04.5+esm6

ubuntu advisories UBUNTU-CVE-2022-40674

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • redhat-virtualization-host rhev hypervisor 4.4 4.5.3-202211170828_8.6
  • redhat-virtualization-host-image-update rhev hypervisor 4.4 4.5.3-202211170828_8.6
  • mingw-expat RHEL 8 2.4.8-2.el8
  • mingw32-expat RHEL 8 2.4.8-2.el8
  • mingw64-expat RHEL 8 2.4.8-2.el8
  • firefox RHEL 7 102.3.0-7.el7_9
  • expat RHEL 8 2.2.5-8.el8_6.3
  • thunderbird RHEL 7 102.3.0-4.el7_9

red hat advisories RHSA-2022:8598RHSA-2023:3068RHSA-2022:6996RHSA-2022:6997RHSA-2022:6878RHSA-2022:6998

  • expat SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +21 more 2.2.5-150000.3.22.1
  • expat SLE Module for Basesystem 15 SP4, SLE Micro 5.3, openSUSE Leap 15.4 2.4.4-150400.3.9.1
  • expat SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +6 more 2.1.0-21.25.1

suse advisories SUSE-SU-2022:3597-1SUSE-SU-2022:3489-1SUSE-SU-2022:3466-1

  • firefox-esr openSUSE Tumbleweed 128.5.1-1.1
  • expat openSUSE Tumbleweed 2.4.9-1.1
  • MozillaFirefox openSUSE Tumbleweed 107.0-1.1

opensuse advisories openSUSE-SU-2024:14572-1openSUSE-SU-2024:12359-1openSUSE-SU-2024:12518-1

  • mingw32-expat AlmaLinux 8 2.4.8-2.el8
  • mingw64-expat AlmaLinux 8 2.4.8-2.el8
  • firefox AlmaLinux 9 102.3.0-7.el9_0.alma
  • thunderbird AlmaLinux 8 102.3.0-4.el8_6.alma
  • firefox AlmaLinux 8 102.3.0-7.el8_6.alma
  • thunderbird AlmaLinux 9 102.3.0-4.el9_0.alma.plus
  • expat AlmaLinux 8 2.2.5-8.el8_6.3
  • expat AlmaLinux 9 2.2.10-12.el9_0.3

almalinux advisories ALSA-2023:3068ALSA-2022:7020ALSA-2022:7023ALSA-2022:7024ALSA-2022:7026ALSA-2022:6878

  • mingw-expat Rocky Linux 8 2.4.8-2.el8
  • firefox Rocky Linux 8 102.3.0-7.el8_6
  • thunderbird Rocky Linux 8 102.3.0-4.el8_6
  • expat Rocky Linux 8 2.2.5-8.el8_6.3
  • expat Rocky Linux 9 2.2.10-12.el9_0.3

rocky linux advisories RLSA-2023:3068RLSA-2022:7024RLSA-2022:7023RLSA-2022:6878RLSA-2022:6838

  • expat Alpine 3.13 2.2.10-r7
  • expat Alpine 3.24, Alpine 3.23, Alpine 3.22 +8 more 2.4.9-r0

alpine advisories ALPINE-CVE-2022-40674

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • expat CBL-Mariner 2.0 2.4.8-2

azure linux advisories AZL-10921

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

  • expat Arch Linux 2.4.9-1

arch linux advisories AVG-2815

Is CVE-2022-40674 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-40674 updated cvss 8.1

expat: a use-after-free in the doContent function in xmlparse.c

  • Red Hat Enterprise Linux 8 firefox, thunderbird
    affected: workaround, no fix planned “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.”
  • Red Hat Enterprise Linux 9 firefox, firefox-x11, thunderbird
    affected: workaround, no fix available “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.”
  • Red Hat Enterprise Linux AppStream (v. 8) firefox 102.3.0-7.el8_6, thunderbird 102.3.0-4.el8_6
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.” RHSA-2022:7024
  • Red Hat Enterprise Linux AppStream (v. 9) firefox 102.3.0-7.el9_0, thunderbird 102.3.0-4.el9_0
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.” RHSA-2022:6838
  • Red Hat Enterprise Linux AppStream E4S (v. 8.1) firefox 102.3.0-7.el8_1, thunderbird 102.3.0-4.el8_1
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.” RHSA-2022:7019
  • Red Hat Enterprise Linux AppStream EUS (v. 8.2) firefox 102.3.0-7.el8_2, thunderbird 102.3.0-4.el8_2
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.” RHSA-2022:7022
  • Red Hat Enterprise Linux AppStream EUS (v.8.4) firefox 102.3.0-7.el8_4, thunderbird 102.3.0-4.el8_4
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.” RHSA-2022:7025
  • Red Hat Enterprise Linux BaseOS (v. 8) expat 2.2.5-8.el8_6.3
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.” RHSA-2022:6878
show 11 more
  • Red Hat Enterprise Linux BaseOS (v. 9) expat 2.2.10-12.el9_0.3
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.” RHSA-2022:6838
  • Red Hat Enterprise Linux BaseOS E4S (v. 8.1) expat 2.2.5-3.el8_1.2
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.” RHSA-2022:6833
  • Red Hat Enterprise Linux BaseOS EUS (v. 8.2) expat 2.2.5-3.el8_2.3
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.” RHSA-2022:6832
  • Red Hat Enterprise Linux BaseOS EUS (v.8.4) expat 2.2.5-4.el8_4.4
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.” RHSA-2022:6831
  • Red Hat Enterprise Linux Client (v. 7) expat 2.1.0-15.el7_9, firefox 102.3.0-7.el7_9, thunderbird 102.3.0-4.el7_9 Red Hat Enterprise Linux Client Optional (v. 7) firefox 102.3.0-7.el7_9 Red Hat Enterprise Linux ComputeNode Optional (v. 7) expat-devel 2.1.0-15.el7_9, expat-static 2.1.0-15.el7_9, expat-debuginfo 2.1.0-15.el7_9
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.” RHSA-2022:6834
  • Red Hat Enterprise Linux CRB (v. 8) mingw-expat 2.4.8-2.el8, mingw32-expat 2.4.8-2.el8, mingw64-expat 2.4.8-2.el8
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.” RHSA-2023:3068
  • Red Hat Enterprise Linux Server (v. 6 ELS) expat 2.0.1-15.el6_10, compat-expat1 1.95.8-9.el6_10
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.” RHSA-2022:6967
  • Red Hat Enterprise Linux Server (v. 7) expat 2.1.0-15.el7_9, firefox 102.3.0-7.el7_9 Red Hat Enterprise Linux Server Optional (v. 7) firefox 102.3.0-7.el7_9, thunderbird 102.3.0-4.el7_9 Red Hat Enterprise Linux Workstation (v. 7) expat 2.1.0-15.el7_9, firefox 102.3.0-7.el7_9, thunderbird 102.3.0-4.el7_9 Red Hat Enterprise Linux Workstation Optional (v. 7) firefox 102.3.0-7.el7_9
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.” RHSA-2022:6834
  • Red Hat JBoss Core Services
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.” RHSA-2022:8841
  • Red Hat Virtualization 4 Hypervisor for RHEL 8 redhat-virtualization-host 4.5.3-202211170828_8.6, redhat-virtualization-host-image-update 4.5.3-202211170828_8.6
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing XML content. Please update the affected packages as soon as possible.” RHSA-2022:8598
  • Red Hat Enterprise Linux 8 xmlrpc-c, xmlrpc-c-c++, xmlrpc-c-client, xmlrpc-c-client++ Red Hat RHEL 8-based RHEV-H for RHEV 4 (build requirements) redhat-release-virtualization-host 4.5.3-1.el8ev, redhat-virtualization-host-productimg 4.5.3-1.el8, redhat-release-virtualization-host-content 4.5.3-1.el8ev, redhat-virtualization-host-image-update-placeholder 4.5.3-1.el8ev
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-23-348-10 updated cvss 9.8

Siemens SIMATIC S7-1500

  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) >= 3.1.0, < 3.1.5
    affected: fixed in V3.1.5, mitigation support.industry.siemens.com

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

cisa ICSA-23-103-09 updated cvss 9.8

Siemens SCALANCE XCM332

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

cisa ICSA-25-105-08 updated cvss 7.5

ABB M2M Gateway

  • ABB M2M Gateway >=4.1.2, <=5.0.3, >=5.0.1, <=5.0.3
    affected: mitigation

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

cisa ICSA-23-143-01 updated cvss 8.1

Hitachi Energy’s AFS65x, AFS67x, AFR67x and AFF66x Products

  • Hitachi Energy AFF660/665 <= 03.0.02
    affected: vendor fix search.abb.com
  • Hitachi Energy AFR67x <= 9.1.07
    affected: fixed in 9.1.08 search.abb.com
  • Hitachi Energy AFS65x Hitachi Energy AFS660/665C <= 7.1.05 Hitachi Energy AFS660/665S <= 7.1.05
    affected: vendor fix search.abb.com
  • Hitachi Energy AFS670/675 <= 9.1.07
    affected: fixed in 9.1.08 search.abb.com
  • Hitachi Energy AFS670v2 <= 7.1.05
    affected: vendor fix search.abb.com

From CISA ICS and IT advisories (CSAF, https://github.com/cisagov/CSAF), a U.S. Government work; changed: reduced to products, statuses and remediations. CISA notification · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
last yr.

Exploit prediction

2.40% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CISA ADP 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
julia Expat_jll
<2.5.0+0
2.5.0+0

Affected products

  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP
  • Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP
  • Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP

Classification

Weakness

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.