RHEL 8 : expat (RHSA-2025:22785)

critical Nessus Plugin ID 277504

Synopsis

The remote Red Hat host is missing one or more security updates for expat.

Description

The remote Redhat Enterprise Linux 8 host has a package installed that is affected by multiple vulnerabilities as referenced in the RHSA-2025:22785 advisory.

Expat is a C library for parsing XML documents.

Security Fix(es):

* expat: internal entity expansion (CVE-2013-0340)

* 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.

Tenable has extracted the preceding description block directly from the Red Hat Enterprise Linux security advisory.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Update the RHEL expat package based on the guidance in RHSA-2025:22785.

See Also

https://bugzilla.redhat.com/show_bug.cgi?id=2048356

https://bugzilla.redhat.com/show_bug.cgi?id=2056350

https://bugzilla.redhat.com/show_bug.cgi?id=2056354

https://bugzilla.redhat.com/show_bug.cgi?id=2044451

https://bugzilla.redhat.com/show_bug.cgi?id=2044455

https://bugzilla.redhat.com/show_bug.cgi?id=2044457

https://bugzilla.redhat.com/show_bug.cgi?id=2044464

https://bugzilla.redhat.com/show_bug.cgi?id=2044467

https://bugzilla.redhat.com/show_bug.cgi?id=2044479

https://bugzilla.redhat.com/show_bug.cgi?id=2044484

https://bugzilla.redhat.com/show_bug.cgi?id=2044488

https://bugzilla.redhat.com/show_bug.cgi?id=2140059

https://access.redhat.com/security/updates/classification/#important

https://bugzilla.redhat.com/show_bug.cgi?id=2262877

https://bugzilla.redhat.com/show_bug.cgi?id=2310137

https://bugzilla.redhat.com/show_bug.cgi?id=2395108

https://bugzilla.redhat.com/show_bug.cgi?id=1000109

https://access.redhat.com/errata/RHSA-2025:22785

http://www.nessus.org/u?f0f15d5d

Plugin Details

Severity: Critical

ID: 277504

File Name: redhat-RHSA-2025-22785.nasl

Version: 1.1

Type: local

Agent: unix

Published: 12/4/2025

Updated: 12/4/2025

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Azure, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

Vendor

Vendor Severity: Important

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 7

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2021-45960

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

CVSS Score Source: CVE-2022-22824

Vulnerability Information

CPE: cpe:/o:redhat:enterprise_linux:8, p-cpe:/a:redhat:enterprise_linux:expat, cpe:/o:redhat:rhel_aus:8.4

Required KB Items: Host/local_checks_enabled, Host/RedHat/release, Host/RedHat/rpm-list, Host/cpu

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 12/4/2025

Vulnerability Publication Date: 2/21/2013

Reference Information

CVE: CVE-2013-0340, CVE-2021-45960, CVE-2021-46143, CVE-2022-22822, CVE-2022-22823, CVE-2022-22824, CVE-2022-22825, CVE-2022-22826, CVE-2022-22827, CVE-2022-23990, CVE-2022-25313, CVE-2022-25314, CVE-2022-43680, CVE-2023-52425, CVE-2024-8176, CVE-2025-59375

CWE: 130, 190, 400, 416, 674, 770

RHSA: 2025:22785