Encoding validation missing in xmltok_impl.c #290
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In the file contrib/sdk/sources/expat/lib/xmltok_impl.c of the KolibriOS SDK copy of libexpat, I observed that certain UTF-8 encoding sequences are not sufficiently validated before processing.
This corresponds to the security vulnerability CVE-2022-25235, which describes that in Expat(before version 2.4.5) xmltok_impl.c “lacks certain validation of encoding. Because KolibriOS includes its own copy of libexpat in the SDK, this missing validation could allow maliciously crafted XML input to be parsed incorrectly, potentially leading to memory corruption or code execution.