CVE-2022-25313 json
In Expat (aka libexpat) before 2.4.5, an attacker can trigger stack exhaustion in `build_model` via...
published 4y ago modified 26d ago also EUVD-2022-29996 , JLSEC-2025-54
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.3%
- EPSS 3.3% chance of exploitation in 30 days, percentile 88%
- public exploits
- 0
- none known
Summary
In Expat (aka libexpat) before 2.4.5, an attacker can trigger stack exhaustion in build_model via a large nesting depth in the DTD element.
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-25313
- 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
- expat Ubuntu Pro 14.04 LTS 2.1.0-4ubuntu1.4+esm6
- expat Ubuntu Pro 16.04 LTS 2.1.0-7ubuntu0.16.04.5+esm5
ubuntu advisories UBUNTU-CVE-2022-25313
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-25313
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/libexpat/libexpat#558 pull request
- oracle.com/security-alerts/cpuapr2022.html advisory
Is CVE-2022-25313 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 FencerVendor 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-25313 updated cvss 6.5
expat: Stack exhaustion in doctype parsing
-
Red Hat Enterprise Linux 6 expat Red Hat Enterprise Linux 7 expat, firefox, thunderbird Red Hat Enterprise Linux 8 firefox, thunderbirdaffected: workaround, no fix planned “There is no known mitigation other than restricting applications using the expat library from processing untrusted XML content.”
-
Red Hat Enterprise Linux 9 firefox, firefox-x11, thunderbirdaffected: workaround, no fix available “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.el8fixed: 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.2fixed: 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.2fixed: 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.2fixed: 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_2fixed: 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_4fixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing untrusted XML content.” RHSA-2025:22785
show 2 moreshow fewer
-
Red Hat JBoss Core Servicesfixed: vendor fix “There is no known mitigation other than restricting applications using the expat library from processing untrusted XML content.” RHSA-2022:7144
-
Red Hat Enterprise Linux 8 xmlrpc-c, xmlrpc-c-c++, xmlrpc-c-client, xmlrpc-c-client++ Red Hat Enterprise Linux 9 xmlrpc-c, xmlrpc-c-c++, xmlrpc-c-client, xmlrpc-c-client++ 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 Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) expat 2.2.10-1.el8_4not 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 6.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.5affected: 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 6.5
Siemens OpenSSL Affecting Industrial Products
-
Siemens SINEMA Remote Connect Server <V3.1affected: fixed in V3.1 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 SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
3.30% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
| OSV | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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-674 Uncontrolled Recursion
References
-
github.com
/libexpat/libexpat/pull/558
third-party-advisory, web
-
oracle.com
/security-alerts/cpuapr2022.html
patch, third-party-advisory, web
-
debian.org
/security/2022/dsa-5085
vendor-advisory, third-party-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/3UFRBA3UQVIQKXTBUQXDWQOVWNBKLERU/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/Y27XO3JMKAOMQZVPS3B4MJGEAHCZF5OM/
vendor-advisory, web
-
security.gentoo.org
/glsa/202209-24
vendor-advisory, third-party-advisory, web
-
openwall.com
/lists/oss-security/2022/02/19/1
mailing-list, third-party-advisory, web
-
lists.debian.org
/debian-lts-announce/2022/03/msg00007.html
mailing-list, third-party-advisory, web
-
security.netapp.com
/advisory/ntap-20220303-0008/
third-party-advisory, web
-
cert-portal.siemens.com
/productcert/pdf/ssa-484086.pdf
third-party-advisory, web
- cert-portal.siemens.com /productcert/html/ssa-484086.html
- cert-portal.siemens.com /productcert/html/ssa-398330.html
Sources
- CVE List CVE-2022-25313
- NVD CVE-2022-25313
- OSV JLSEC-2025-54
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.