CVE-2022-25313
Summary
| CVE | CVE-2022-25313 |
|---|---|
| State | PUBLISHED |
| Assigner | mitre |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-02-18 05:15:08 UTC |
| Updated | 2026-10-14 17:17:34 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 6.5 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS: 0.032950000 probability, percentile 0.882920000 (date 2026-10-14)
Problem Types: CWE-674 | n/a | CWE-674 CWE-674 Uncontrolled Recursion
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| 3.1 | ADP | DECLARED | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| 3.1 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | Secondary | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| 2.0 | [email protected] | Primary | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS v2.0 Breakdown
Access Vector
NetworkAccess Complexity
MediumAuthentication
NoneConfidentiality
NoneIntegrity
NoneAvailability
PartialAV:N/AC:M/Au:N/C:N/I:N/A:P
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Debian | Debian Linux | 10.0 | All | All | All |
| Operating System | Debian | Debian Linux | 11.0 | All | All | All |
| Operating System | Fedoraproject | Fedora | 34 | All | All | All |
| Operating System | Fedoraproject | Fedora | 35 | All | All | All |
| Application | Libexpat Project | Libexpat | All | All | All | All |
| Application | Oracle | Http Server | 12.2.1.3.0 | All | All | All |
| Application | Oracle | Http Server | 12.2.1.4.0 | All | All | All |
| Application | Oracle | Zfs Storage Appliance Kit | 8.8 | All | All | All |
| Application | Siemens | Sinema Remote Connect Server | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Na | N/a | affected n/a | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| cert-portal.siemens.com/productcert/html/ssa-398330.html | 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e | cert-portal.siemens.com | |
| Oracle Critical Patch Update Advisory - April 2022 | af854a3a-2127-422b-91ae-364da2661108 | www.oracle.com | Patch, Third Party Advisory |
| [CVE-2022-25313] lib: Prevent stack exhaustion in build_model by ferivoz · Pull Request #558 · libexpat/libexpat · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Third Party Advisory |
| cert-portal.siemens.com/productcert/pdf/ssa-484086.pdf | af854a3a-2127-422b-91ae-364da2661108 | cert-portal.siemens.com | Third Party Advisory |
| cert-portal.siemens.com/productcert/html/ssa-484086.html | 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e | cert-portal.siemens.com | |
| oss-security - Expat 2.4.5 released, includes 5 security fixes | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | Mailing List, Third Party Advisory |
| Debian -- Security Information -- DSA-5085-1 expat | af854a3a-2127-422b-91ae-364da2661108 | www.debian.org | Third Party Advisory |
| February 2022 Expat Vulnerabilities in NetApp Products | NetApp Product Security | af854a3a-2127-422b-91ae-364da2661108 | security.netapp.com | Third Party Advisory |
| [SECURITY] Fedora 34 Update: mingw-expat-2.4.6-1.fc34 - package-announce - Fedora Mailing-Lists | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| [SECURITY] Fedora 35 Update: mingw-expat-2.4.6-1.fc35 - package-announce - Fedora Mailing-Lists | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| [SECURITY] [DLA 2935-1] expat security update | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | Third Party Advisory |
| Expat: Multiple Vulnerabilities (GLSA 202209-24) — Gentoo security | af854a3a-2127-422b-91ae-364da2661108 | security.gentoo.org | Third Party Advisory |
| [SECURITY] Fedora 34 Update: mingw-expat-2.4.6-1.fc34 - package-announce - Fedora Mailing-Lists | MITRE | lists.fedoraproject.org | |
| [SECURITY] Fedora 35 Update: mingw-expat-2.4.6-1.fc35 - package-announce - Fedora Mailing-Lists | MITRE | lists.fedoraproject.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 159918 Oracle Enterprise Linux Security Update for expat (ELSA-2022-5314)
- 159925 Oracle Enterprise Linux Security Update for expat (ELSA-2022-5244)
- 179091 Debian Security Update for expat (DSA 5085-1)
- 179107 Debian Security Update for expat (DLA 2935-1)
- 184643 Debian Security Update for expat (CVE-2022-25313)
- 20259 IBM DB2 Multiple Vulnerabilities (6597637)
- 240497 Red Hat Update for expat (RHSA-2022:5244)
- 240505 Red Hat Update for expat (RHSA-2022:5314)
- 240794 Red Hat Update for JBoss Core Services (RHSA-2022:7143)
- 282449 Fedora Security Update for mingw (FEDORA-2022-3d9d67f558)
- 282450 Fedora Security Update for mingw (FEDORA-2022-04f206996b)
- 296057 Oracle Solaris 11.4 Support Repository Update (SRU) 44.113.4 Missing (bulletinapr2022)
- 330124 IBM AIX Multiple Vulnerabilities in Python (python_advisory)
- 354434 Amazon Linux Security Advisory for expat : ALAS2022-2022-232
- 354490 Amazon Linux Security Advisory for expat : ALAS2022-2022-036
- 354570 Amazon Linux Security Advisory for expat : ALAS-2022-232
- 355281 Amazon Linux Security Advisory for expat : ALAS2023-2023-058
- 356393 Amazon Linux Security Advisory for expat : ALAS2-2023-2280
- 377580 Alibaba Cloud Linux Security Update for expat (ALINUX3-SA-2022:0128)
- 377786 Alibaba Cloud Linux Security Update for mingw-expat (ALINUX3-SA-2022:0183)
- 38862 NetApp Data Open Network Technology for Appliance Products (ONTAP) Denial of Service (DoS) Vulnerability (NTAP-20210303-0002)
- 44025 Juniper Network Operating System (Junos OS) Multiple Vulnerabilities (JSA70605)
- 500179 Alpine Linux Security Update for expat
- 501402 Alpine Linux Security Update for expat
- 501740 Alpine Linux Security Update for expat
- 503916 Alpine Linux Security Update for expat
- 591406 Siemens SIMATIC S7-1500 CPU GNU/Linux subsystem Multiple Vulnerabilities (SSB-439005, ICSA-22-104-13)
- 6140364 AWS Bottlerocket Security Update for libexpat (GHSA-x6p7-99mx-mwxq)
- 671588 EulerOS Security Update for expat (EulerOS-SA-2022-1562)
- 671757 EulerOS Security Update for expat (EulerOS-SA-2022-1786)
- 671760 EulerOS Security Update for expat (EulerOS-SA-2022-1803)
- 671787 EulerOS Security Update for expat (EulerOS-SA-2022-1861)
- 671796 EulerOS Security Update for expat (EulerOS-SA-2022-1837)
- 673085 EulerOS Security Update for expat (EulerOS-SA-2023-2143)
- 710626 Gentoo Linux Expat Multiple Vulnerabilities (GLSA 202209-24)
- 751782 SUSE Enterprise Linux Security Update for expat (SUSE-SU-2022:0698-1)
- 751795 SUSE Enterprise Linux Security Update for expat (SUSE-SU-2022:0713-1)
- 751810 OpenSUSE Security Update for expat (openSUSE-SU-2022:0713-1)
- 752302 SUSE Enterprise Linux Security Update for expat (SUSE-SU-2022:2294-1)
- 753324 SUSE Enterprise Linux Security Update for expat (SUSE-SU-2022:14903-1)
- 87487 IBM Hypertext Transfer Protocol Server (HTTP Server) Multiple Vulnerabilities (6560814)
- 900697 Common Base Linux Mariner (CBL-Mariner) Security Update for expat (8629)
- 901725 Common Base Linux Mariner (CBL-Mariner) Security Update for expat (8623-1)
- 940591 AlmaLinux Security Update for expat (ALSA-2022:5314)
- 940631 AlmaLinux Security Update for expat (ALSA-2022:5244)
- 940738 AlmaLinux Security Update for mingw-expat (ALSA-2022:7811)
- 960442 Rocky Linux Security Update for expat (RLSA-2022:5314)