Skip to content
Fencer Vulns
high 7.5

CVE-2022-25314 json

In Expat (aka libexpat) before 2.4.5, there is an integer overflow in copyString.

published 2022-02-18 4 y ago modified 2026-10-14 25 d ago also EUVD-2022-29997 , JLSEC-2025-55

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

Summary

In Expat (aka libexpat) before 2.4.5, there is an integer overflow in copyString.

Patch / fix

  • julia Expat_jll 2.4.8+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.5-1

debian advisories DEBIAN-CVE-2022-25314

  • expat Ubuntu 18.04 LTS 2.2.5-3ubuntu0.7
  • expat Ubuntu 20.04 LTS 2.2.9-1ubuntu0.4
  • firefox Ubuntu 22.04 LTS 1:1snap1-0ubuntu1

ubuntu advisories UBUNTU-CVE-2022-25314

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

  • mingw-expat RHEL 8 2.4.8-1.el8
  • mingw32-expat RHEL 8 2.4.8-1.el8
  • mingw64-expat RHEL 8 2.4.8-1.el8
  • expat RHEL 9 2.2.10-12.el9_0.2
  • expat RHEL 8 2.2.5-8.el8_6.2
  • expat RHEL 8.2 AUS 2.2.10-1.el8_2
  • expat RHEL 8.4 EUS_LONG_LIFE, RHEL 8.4 AUS 2.2.10-1.el8_4

red hat advisories RHSA-2025:22871RHSA-2025:22785RHSA-2022:7811RHSA-2022:5244RHSA-2022:5314

  • expat SLE Module for Basesystem 15 SP4, openSUSE Leap 15.4 2.4.4-150400.3.6.9
  • expat SLES 11 SP4-LTSS, SLE Point of Sale 11 SP3 2.0.1-88.42.18.1
  • expat SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +20 more 2.2.5-3.15.1
  • expat SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +11 more 2.1.0-21.18.1

suse advisories SUSE-SU-2022:2294-1SUSE-SU-2022:14903-1SUSE-SU-2022:0713-1SUSE-SU-2022:0698-1

  • expat openSUSE Tumbleweed 2.4.6-1.1
  • expat openSUSE Leap 15.3 2.2.5-3.15.1

opensuse advisories openSUSE-SU-2024:11866-1openSUSE-SU-2022:0713-1

  • mingw32-expat AlmaLinux 8 2.4.8-1.el8
  • mingw64-expat AlmaLinux 8 2.4.8-1.el8
  • expat AlmaLinux 9 2.2.10-12.el9_0.2
  • expat AlmaLinux 8 2.2.5-8.el8_6.2

almalinux advisories ALSA-2022:7811ALSA-2022:5244ALSA-2022:5314

  • expat Rocky Linux 8 2.2.5-8.el8_6.2

rocky linux advisories RLSA-2022:5314

  • expat Alpine 3.12 2.2.10-r2
  • expat Alpine 3.13 2.2.10-r4
  • expat Alpine 3.24, Alpine 3.23, Alpine 3.22 +8 more 2.4.5-r0

alpine advisories ALPINE-CVE-2022-25314

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-1

azure linux advisories AZL-8624

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

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-25314 updated cvss 7.5

expat: Integer overflow in copyString()

  • Red Hat Enterprise Linux 7 firefox, thunderbird
    affected: workaround, no fix planned “There is no known mitigation other than restricting applications using the expat library from processing untrusted XML content.”
  • Red Hat CodeReady Linux Builder (v. 8) mingw-expat 2.4.8-1.el8, mingw32-expat 2.4.8-1.el8, mingw64-expat 2.4.8-1.el8
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing untrusted XML content.” RHSA-2022:7811
  • Red Hat Enterprise Linux AppStream (v. 9) expat-devel 2.2.10-12.el9_0.2, expat-debuginfo 2.2.10-12.el9_0.2, expat-debugsource 2.2.10-12.el9_0.2
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing untrusted XML content.” RHSA-2022:5244
  • Red Hat Enterprise Linux BaseOS (v. 8) expat 2.2.5-8.el8_6.2
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing untrusted XML content.” RHSA-2022:5314
  • Red Hat Enterprise Linux BaseOS (v. 9) expat 2.2.10-12.el9_0.2
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing untrusted XML content.” RHSA-2022:5244
  • Red Hat Enterprise Linux BaseOS AUS (v. 8.2) expat 2.2.10-1.el8_2
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing untrusted XML content.” RHSA-2025:22871
  • Red Hat Enterprise Linux BaseOS AUS (v.8.4) expat 2.2.10-1.el8_4 Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) expat 2.2.10-1.el8_4
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing untrusted XML content.” RHSA-2025:22785
  • Red Hat JBoss Core Services
    fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing untrusted XML content.” RHSA-2022:7144
show 1 more
  • Red Hat Enterprise Linux 6 expat Red Hat Enterprise Linux 7 expat Red Hat Enterprise Linux 8 firefox, xmlrpc-c, thunderbird, xmlrpc-c-c++, xmlrpc-c-client, xmlrpc-c-client++ Red Hat Enterprise Linux 9 firefox, xmlrpc-c, firefox-x11, thunderbird, xmlrpc-c-c++, xmlrpc-c-client, +1 more Red Hat Enterprise Linux BaseOS AUS (v. 8.2) expat 2.2.10-1.el8_2 Red Hat Enterprise Linux BaseOS AUS (v.8.4) expat 2.2.10-1.el8_4
    +1 more products
    Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) expat 2.2.10-1.el8_4
    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 7.5

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-22-167-17 updated cvss 7.5

Siemens OpenSSL Affecting Industrial Products

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-278-01 updated cvss 7.5

Hitachi Energy AFS65x,AFF66x, AFS67x, and AFR67x Series Products

  • Hitachi Energy AFF66X FW <= 03.0.02 Hitachi Energy AFR677 Hitachi Energy AFS65X Hitachi Energy AFS66X-B Hitachi Energy AFS66X-S Hitachi Energy AFS67X
    +2 more products
    Hitachi Energy AFS660-C Hitachi Energy AFS670-V20
    affected: vendor fix, mitigation “Hitachi energy recommends the following actions:” publisher.hitachienergy.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
yes
Technical impact
partial
Assessed
18 mo ago

Exploit prediction

4.82% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P
OSV 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
julia Expat_jll
<2.4.8+0
2.4.8+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
  • CWE-190 Integer Overflow or Wraparound

References

Sources

Fencer Vulns 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.