CVE-2022-25235: Input Validation
A flaw was found in expat. Passing malformed 2- and 3-byte UTF-8 sequences (for example, from start tag names) to the XML processing application on top of expat can lead to arbitrary code execution. This issue is dependent on how invalid UTF-8 is handled inside the XML processor.
Other sources
libexpat is vulnerable to a denial of service, caused by improper input validation in xmltokimpl.c. By persuading a victim to open a specially-crafted content with malformed encoding, a remote attacker could exploit this vulnerability to cause a denial of service condition.
— IBM
xmltokimpl.c in Expat (aka libexpat) before 2.4.5 lacks certain validation of encoding, such as checks for whether a UTF-8 character is valid in a certain context.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/expatto a version that resolves this vulnerability.Fixed in 0:2.0.1-14.el6_10 - Upgrade
Upgrade
redhat/firefoxto a version that resolves this vulnerability.Fixed in 0:91.7.0-3.el7_9 - Upgrade
Upgrade
redhat/thunderbirdto a version that resolves this vulnerability.Fixed in 0:91.7.0-2.el7_9 - Upgrade
Upgrade
redhat/expatto a version that resolves this vulnerability.Fixed in 0:2.1.0-14.el7_9 - Upgrade
Upgrade
redhat/firefoxto a version that resolves this vulnerability.Fixed in 0:91.7.0-3.el8_5 - Upgrade
Upgrade
redhat/thunderbirdto a version that resolves this vulnerability.Fixed in 0:91.7.0-2.el8_5 - Upgrade
Upgrade
redhat/mingw-expatto a version that resolves this vulnerability.Fixed in 0:2.4.8-1.el8 - Upgrade
Upgrade
redhat/expatto a version that resolves this vulnerability.Fixed in 0:2.2.5-4.el8_5.3 - Upgrade
Upgrade
redhat/xmlrpc-cto a version that resolves this vulnerability.Fixed in 0:1.51.0-5.el8_5.1 - Upgrade
Upgrade
redhat/firefoxto a version that resolves this vulnerability.Fixed in 0:91.7.0-3.el8_1 - Upgrade
Upgrade
redhat/thunderbirdto a version that resolves this vulnerability.Fixed in 0:91.7.0-2.el8_1 - Upgrade
Upgrade
redhat/expatto a version that resolves this vulnerability.Fixed in 0:2.2.5-3.el8_1.1 - Upgrade
Upgrade
redhat/xmlrpc-cto a version that resolves this vulnerability.Fixed in 0:1.51.0-5.el8_1.1 - Upgrade
Upgrade
redhat/firefoxto a version that resolves this vulnerability.Fixed in 0:91.7.0-3.el8_2 - Upgrade
Upgrade
redhat/thunderbirdto a version that resolves this vulnerability.Fixed in 0:91.7.0-2.el8_2 - Upgrade
Upgrade
redhat/expatto a version that resolves this vulnerability.Fixed in 0:2.2.5-3.el8_2.2 - Upgrade
Upgrade
redhat/xmlrpc-cto a version that resolves this vulnerability.Fixed in 0:1.51.0-5.el8_2.1 - Upgrade
Upgrade
redhat/firefoxto a version that resolves this vulnerability.Fixed in 0:91.7.0-3.el8_4 - Upgrade
Upgrade
redhat/thunderbirdto a version that resolves this vulnerability.Fixed in 0:91.7.0-2.el8_4 - Upgrade
Upgrade
redhat/expatto a version that resolves this vulnerability.Fixed in 0:2.2.5-4.el8_4.2 - Upgrade
Upgrade
redhat/xmlrpc-cto a version that resolves this vulnerability.Fixed in 0:1.51.0-5.el8_4.1 - Upgrade
Upgrade
redhat/redhat-virtualization-hostto a version that resolves this vulnerability.Fixed in 0:4.3.22-20220330.1.el7_9 - Upgrade
Upgrade
debian/expatto a version that resolves this vulnerability.Fixed in 2.2.10-2+deb11u5Fixed in 2.2.10-2+deb11u7Fixed in 2.5.0-1+deb12u2Fixed in 2.5.0-1+deb12u1Fixed in 2.7.1-2Fixed in 2.8.1-1 - Upgrade
Upgrade
redhat/expatto a version that resolves this vulnerability.Fixed in 2.4.5 - Upgrade
Upgrade
expat (libexpat)to a version that resolves this vulnerability.Fixed in 2.4.5 - Compensating control
Restrict applications using the expat (libexpat) library from processing untrusted XML content, since there is no known mitigation other than input restriction for this issue.
Event History
Parent advisories
This vulnerability appears in the following advisories.
- RHSA-2022:1309
- RHSA-2022:0824
- RHSA-2022:0850
- RHSA-2022:1069
- RHSA-2022:0818
- RHSA-2022:0845
- RHSA-2022:7811
- RHSA-2022:0951
- RHSA-2022:1643
- RHSA-2022:0815
- RHSA-2022:0847
- RHSA-2022:1068
- RHSA-2022:1539
- RHSA-2022:0816
- RHSA-2022:0843
- RHSA-2022:1070
- RHSA-2022:1540
- RHSA-2022:0817
- RHSA-2022:0853
- RHSA-2022:1012
- RHSA-2022:1644
- RHSA-2022:7144
- RHSA-2022:1263
- RHSA-2022:1053
- IBM-7160471
Frequently Asked Questions
What is the severity of CVE-2022-25235?
The severity of CVE-2022-25235 is classified as critical due to its potential for arbitrary code execution.
How do I fix CVE-2022-25235?
To fix CVE-2022-25235, upgrade expat to version 0:2.0.1-14.el6_10 or higher.
Which software is affected by CVE-2022-25235?
CVE-2022-25235 affects expat, firefox, and thunderbird across various Red Hat distributions.
What impact does CVE-2022-25235 have on my system?
CVE-2022-25235 can lead to arbitrary code execution, potentially compromising system security.
Is there a workaround for CVE-2022-25235?
Updating to the recommended versions of the affected software is the suggested approach to mitigate CVE-2022-25235.