
CVE catalog
CVE-2022-25313
libxmltok: CVE-2022-25313
- Severity
- Medium · CVSS 6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 3.29% · Oct 22, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | expat | sid | 2.9.0-1 | fixed |
| Debian | expat | forky | 2.9.0-1 | fixed |
| Debian | expat | trixie | 2.8.3-1~deb13u1 | fixed |
| Debian | expat | trixie-security | 2.9.0-1~deb13u1 | fixed |
| Debian | expat | bookworm | 2.5.0-1+deb12u2 | fixed |
| Debian | expat | bookworm-security | 2.5.0-1+deb12u5 | fixed |
| Debian | libxmltok | bookworm | 1.2-4 | vulnerable |
| Cpe | libexpat | Not reported | 2.4.5 | fixed |
| Cpe | debian_linux | Not reported | Not reported | unknown |
| Cpe | fedora | Not reported | Not reported | unknown |
| Cpe | http_server | Not reported | Not reported | unknown |
| Cpe | zfs_storage_appliance_kit | Not reported | Not reported | unknown |
| Cpe | sinema_remote_connect_server | Not reported | 3.1 | fixed |
| Ubuntu | expat | pro | 2.1.0-7 | vulnerable |
| Ubuntu | expat | pro | 2.1.0-7ubuntu0.16.04.1 | vulnerable |
| Ubuntu | expat | pro | 2.1.0-7ubuntu0.16.04.2 | vulnerable |
| Ubuntu | expat | pro | 2.1.0-7ubuntu0.16.04.3 | vulnerable |
| Ubuntu | expat | pro | 2.1.0-7ubuntu0.16.04.4 | vulnerable |
| Ubuntu | expat | pro | 2.1.0-7ubuntu0.16.04.5 | vulnerable |
| Ubuntu | expat | pro | 2.1.0-7ubuntu0.16.04.5+esm2 | vulnerable |
| Ubuntu | expat | pro | 2.1.0-7ubuntu0.16.04.5+esm5 | fixed |
| Ubuntu | expat | 18.04 | 2.2.3-1 | vulnerable |
| Ubuntu | expat | 18.04 | 2.2.3-2 | vulnerable |
| Ubuntu | expat | 18.04 | 2.2.5-0ubuntu2 | vulnerable |
| Ubuntu | expat | 18.04 | 2.2.5-3 | vulnerable |
| Ubuntu | expat | 18.04 | 2.2.5-3ubuntu0.1 | vulnerable |
| Ubuntu | expat | 18.04 | 2.2.5-3ubuntu0.2 | vulnerable |
| Ubuntu | expat | 18.04 | 2.2.5-3ubuntu0.4 | vulnerable |
| Ubuntu | expat | 18.04 | 2.2.5-3ubuntu0.7 | fixed |
| Ubuntu | expat | 20.04 | 2.2.7-2 | vulnerable |
| Ubuntu | expat | 20.04 | 2.2.9-1 | vulnerable |
| Ubuntu | expat | 20.04 | 2.2.9-1build1 | vulnerable |
| Ubuntu | expat | 20.04 | 2.2.9-1ubuntu0.2 | vulnerable |
| Ubuntu | expat | 20.04 | 2.2.9-1ubuntu0.4 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | expat | source | sid | 2.4.5-1 | not yet assigned | Not reported | Not reported |
| Debian | expat | source | forky | 2.4.5-1 | not yet assigned | Not reported | Not reported |
| Debian | expat | source | trixie | 2.4.5-1 | not yet assigned | Not reported | Not reported |
| Debian | expat | source | bookworm | 2.4.5-1 | not yet assigned | Not reported | Not reported |
| Debian | libxmltok | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Cpe | libexpat | cpe | Not reported | 2.4.5 | Not reported | NVD-CVE-2022-25313 | Not reported |
| Cpe | sinema_remote_connect_server | cpe | Not reported | 3.1 | Not reported | NVD-CVE-2022-25313 | Not reported |
| Ubuntu | expat | deb | pro | 2.1.0-7ubuntu0.16.04.5+esm5 | Not reported | USN-5320-1 | Not reported |
| Ubuntu | expat | deb | 18.04 | 2.2.5-3ubuntu0.7 | Not reported | USN-5320-1 | Not reported |
| Ubuntu | expat | deb | 20.04 | 2.2.9-1ubuntu0.4 | Not reported | USN-5320-1 | Not reported |
Notes
[bookworm] libxmltok: Minor issue, no runtime dependencies left
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [expat]Unknown
Details (4)
2.5.0-1+deb12u2· amd64 · bookwormFixed · Fixed:
2.4.5-1dsa · expat · debian · bookworm
2.5.0-1+deb12u2· arm64 · bookwormFixed · Fixed:
2.4.5-1dsa · expat · debian · bookworm
2.5.0-1+deb12u3· amd64 · bookworm-securityFixed · Fixed:
2.4.5-1dsa · expat · debian · bookworm
2.5.0-1+deb12u3· arm64 · bookworm-securityFixed · Fixed:
2.4.5-1dsa · expat · debian · bookworm
- [libexpat1]Unknown
Source package: [expat]
Details (4)
2.5.0-1+deb12u2· amd64 · bookwormFixed · Fixed:
2.4.5-1dsa · expat · debian · bookworm
2.5.0-1+deb12u2· arm64 · bookwormFixed · Fixed:
2.4.5-1dsa · expat · debian · bookworm
2.5.0-1+deb12u3· amd64 · bookworm-securityFixed · Fixed:
2.4.5-1dsa · expat · debian · bookworm
2.5.0-1+deb12u3· arm64 · bookworm-securityFixed · Fixed:
2.4.5-1dsa · expat · debian · bookworm
- [libexpat1-dev]Unknown
Source package: [expat]
Details (4)
2.5.0-1+deb12u2· amd64 · bookwormFixed · Fixed:
2.4.5-1dsa · expat · debian · bookworm
2.5.0-1+deb12u2· arm64 · bookwormFixed · Fixed:
2.4.5-1dsa · expat · debian · bookworm
2.5.0-1+deb12u3· amd64 · bookworm-securityFixed · Fixed:
2.4.5-1dsa · expat · debian · bookworm
2.5.0-1+deb12u3· arm64 · bookworm-securityFixed · Fixed:
2.4.5-1dsa · expat · debian · bookworm
- [libxmltok1]Unknown
Source package: [libxmltok]
Details (2)
1.2-4· amd64 · bookwormAffected
dsa · libxmltok · debian · bookworm
1.2-4· arm64 · bookwormAffected
dsa · libxmltok · debian · bookworm
- [libxmltok1-dev]Unknown
Source package: [libxmltok]
Details (2)
1.2-4· amd64 · bookwormAffected
dsa · libxmltok · debian · bookworm
1.2-4· arm64 · bookwormAffected
dsa · libxmltok · debian · bookworm
Observed:
References
- [https://access.redhat.com/errata/RHSA-2022:5244]
- [https://cert-portal.siemens.com/productcert/csaf/ssa-484086.json]
- [https://ftp.suse.com/pub/projects/security/]
- [https://nvd.nist.gov/vuln/detail/CVE-2022-25313]
- [https://osv.dev/vulnerability/USN-5320-1]
- [https://security-tracker.debian.org/tracker/CVE-2022-25313]
- [https://wid.cert-bund.de/.well-known/csaf/white/2022/wid-sec-w-2022-0302.json]
[CERT-Bund public advisories] · [CISA cybersecurity advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]