CVE-2022-25313

Summary

CVECVE-2022-25313
StatePUBLISHED
Assignermitre
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-02-18 05:15:08 UTC
Updated2026-10-14 17:17:34 UTC
DescriptionIn 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


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary6.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
3.1ADPDECLARED6.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary6.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
2.0[email protected]Primary4.3AV:N/AC:M/Au:N/C:N/I:N/A:P

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Medium
Authentication
None
Confidentiality
None
Integrity
None
Availability
Partial

AV:N/AC:M/Au:N/C:N/I:N/A:P

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
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

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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

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)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report