Encoding validation missing in xmltok_impl.c #290

Open
opened 2025-12-15 05:27:06 +00:00 by Mrcopytuo · 0 comments

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.

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](https://nvd.nist.gov/vuln/detail/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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KolibriOS/kolibrios#290