PT-2022-1764 · Expat+13 · Expat+13
Published
2022-02-15
·
Updated
2026-05-27
·
CVE-2022-25235
CVSS v2.0
10
Critical
| Vector | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
Expat versions prior to 2.4.5
Description
The issue is related to the incorrect handling of encoding validation in the xmltok impl.c component of the Expat library, specifically lacking checks for whether a UTF-8 character is valid in a certain context. This could allow a remote attacker to execute arbitrary code by sending a specially crafted request.
Recommendations
For versions prior to 2.4.5, update to version 2.4.5 or later to resolve the issue. As a temporary workaround, consider restricting the use of the xmltok impl.c component until a patch is available. Avoid using the Expat library to parse untrusted input until the issue is resolved.
Fix
Improper Encoding or Escaping of Output
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Debian
Expat
Ibm Aix
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu
Zvirt Node