- Issued:
- 2025-12-08
- Updated:
- 2025-12-08
RHSA-2025:22871 - Security Advisory
Synopsis
Important: expat security update
Type/Severity
Security Advisory: Important
Red Hat Lightspeed patch analysis
Identify and remediate systems affected by this advisory.
Topic
An update for expat is now available for Red Hat Enterprise Linux 8.2 Advanced Update Support.
Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section.
Description
Expat is a C library for parsing XML documents.
Security Fix(es):
- expat: internal entity expansion (CVE-2013-0340)
- expat: large number of colons in input makes parser consume high amount of resources, leading to DoS (CVE-2018-20843)
- expat: heap-based buffer over-read via crafted XML input (CVE-2019-15903)
- expat: Large number of prefixed XML attributes on a single tag can crash libexpat (CVE-2021-45960)
- expat: Integer overflow in doProlog in xmlparse.c (CVE-2021-46143)
- expat: Integer overflow in addBinding in xmlparse.c (CVE-2022-22822)
- expat: Integer overflow in build_model in xmlparse.c (CVE-2022-22823)
- expat: Integer overflow in defineAttribute in xmlparse.c (CVE-2022-22824)
- expat: Integer overflow in lookup in xmlparse.c (CVE-2022-22825)
- expat: Integer overflow in nextScaffoldPart in xmlparse.c (CVE-2022-22826)
- expat: Integer overflow in storeAtts in xmlparse.c (CVE-2022-22827)
- expat: integer overflow in the doProlog function (CVE-2022-23990)
- expat: Stack exhaustion in doctype parsing (CVE-2022-25313)
- expat: Integer overflow in copyString() (CVE-2022-25314)
- expat: use-after free caused by overeager destruction of a shared DTD in XML_ExternalEntityParserCreate (CVE-2022-43680)
- expat: parsing large tokens can trigger a denial of service (CVE-2023-52425)
- libexpat: expat: Improper Restriction of XML Entity Expansion Depth in libexpat (CVE-2024-8176)
- expat: libexpat in Expat allows attackers to trigger large dynamic memory allocations via a small document that is submitted for parsing (CVE-2025-59375)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Solution
For details on how to apply this update, which includes the changes described in this advisory, refer to:
Affected Products
- Red Hat Enterprise Linux Server - AUS 8.2 x86_64
Fixes
- BZ - 1000109 - CVE-2013-0340 expat: internal entity expansion
- BZ - 1723723 - CVE-2018-20843 expat: large number of colons in input makes parser consume high amount of resources, leading to DoS
- BZ - 1752592 - CVE-2019-15903 expat: heap-based buffer over-read via crafted XML input
- BZ - 2044451 - CVE-2021-45960 expat: Large number of prefixed XML attributes on a single tag can crash libexpat
- BZ - 2044455 - CVE-2021-46143 expat: Integer overflow in doProlog in xmlparse.c
- BZ - 2044457 - CVE-2022-22822 expat: Integer overflow in addBinding in xmlparse.c
- BZ - 2044464 - CVE-2022-22823 expat: Integer overflow in build_model in xmlparse.c
- BZ - 2044467 - CVE-2022-22824 expat: Integer overflow in defineAttribute in xmlparse.c
- BZ - 2044479 - CVE-2022-22825 expat: Integer overflow in lookup in xmlparse.c
- BZ - 2044484 - CVE-2022-22826 expat: Integer overflow in nextScaffoldPart in xmlparse.c
- BZ - 2044488 - CVE-2022-22827 expat: Integer overflow in storeAtts in xmlparse.c
- BZ - 2048356 - CVE-2022-23990 expat: integer overflow in the doProlog function
- BZ - 2056350 - CVE-2022-25313 expat: Stack exhaustion in doctype parsing
- BZ - 2056354 - CVE-2022-25314 expat: Integer overflow in copyString()
- BZ - 2140059 - CVE-2022-43680 expat: use-after free caused by overeager destruction of a shared DTD in XML_ExternalEntityParserCreate
- BZ - 2262877 - CVE-2023-52425 expat: parsing large tokens can trigger a denial of service
- BZ - 2310137 - CVE-2024-8176 libexpat: expat: Improper Restriction of XML Entity Expansion Depth in libexpat
- BZ - 2395108 - CVE-2025-59375 expat: libexpat in Expat allows attackers to trigger large dynamic memory allocations via a small document that is submitted for parsing
CVEs
Red Hat Enterprise Linux Server - AUS 8.2
| SRPM | |
|---|---|
| expat-2.2.10-1.el8_2.src.rpm | SHA-256: 9857b416e57be742d5bc5f342aa2a2f4517924f0e39b3329bb2278d76ee865c9 |
| x86_64 | |
| expat-2.2.10-1.el8_2.i686.rpm | SHA-256: c4432f579b58dc4db33fbbf38613c6d093fa54c7069b0f2cac87137f6fecb41a |
| expat-2.2.10-1.el8_2.x86_64.rpm | SHA-256: aa63d3f0841556840414c67cd8c4731dc4bb6cf9e02182e3feaca0ce1273b661 |
| expat-debuginfo-2.2.10-1.el8_2.i686.rpm | SHA-256: f3a1713ad0e3ce8815d48298e8f8b86c290cd9d74d8034682b6a37b8616aad77 |
| expat-debuginfo-2.2.10-1.el8_2.x86_64.rpm | SHA-256: 77b0200577793584f18173808c082266b7563c8772b0c04caaeba7cae0814f91 |
| expat-debugsource-2.2.10-1.el8_2.i686.rpm | SHA-256: ca5276f67a4e7625f79a7119a0738832af33bb55d21d6e127eee6c4039fbe989 |
| expat-debugsource-2.2.10-1.el8_2.x86_64.rpm | SHA-256: 8f84c9cad39730d815e229beef2393ac423693f06c488b62b8bc063cb9a5ca02 |
| expat-devel-2.2.10-1.el8_2.i686.rpm | SHA-256: 2110b70e98ea391f199b86f99f26ce2420c4679326427aeca6d4ebc918f6d065 |
| expat-devel-2.2.10-1.el8_2.x86_64.rpm | SHA-256: 523fc775b07362b3b5e426b82e786f9b765d64e2ed1ab8d532fd75b9390f0248 |
The Red Hat security contact is secalert@redhat.com. More contact details at https://access.redhat.com/security/team/contact/.