-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
2.3.11.Final, 2.3.13.Final, 2.3.12.Final, 2.3.14.Final, 2.3.15.Final, 2.3.16.Final, 2.3.19.Final, 2.3.17.Final, 2.3.18.Final, 2.4.0.Alpha1, 2.3.20.Final
-
None
The` io.undertow.util.FileUtils.readFile` method can cause text corruption when reading streams containing multi-byte characters (such as those in UTF-8).
The root cause is that the method reads the `InputStream` into a fixed-size byte buffer (1024 bytes) and decodes each chunk independently. If a multi-byte character sequence is split across a buffer boundary, the decoder receives incomplete character data for that chunk, resulting in replacement characters in the final string.
This bug has a more significant impact following the changes in UNDERTOW-2337, as large form-data field values are now processed by this vulnerable function. The issue was originally reported in the context of the Spring Framework under issue #35292