Fedora Account System
Red Hat Associate
Red Hat Customer
Netty's HttpPostRequestEncoder builds multipart part headers by concatenating the filename and content type of a FileUpload directly into the Content-Disposition and Content-Type headers. MemoryFileUpload and DiskFileUpload only null-check these values and do not reject, escape, or strip carriage return and line feed characters. Field names are already sanitized, but filenames and content types are not. A filename or content type containing CRLF sequences can therefore end the current part header and start additional, attacker-controlled header lines in the generated multipart body. The impact is multipart part-header injection in outbound requests generated by Netty. Downstream services that make decisions from per-part metadata, such as upload filters that trust the per-part Content-Type, routing or validation based on Content-Disposition parameters, or multipart parsers and gateways that handle duplicate or unexpected part headers inconsistently, may be misled. The issue does not allow injection of top-level HTTP request headers, and no server compromise or request desynchronization has been shown. Applications are affected if they use HttpPostRequestEncoder in netty-codec-http to re-post or relay uploaded files, and the filename or content type of those files can be influenced by an attacker. This includes upload relays, proxies, and API gateways that preserve client-supplied file metadata. Affected versions are 4.1.0.Final through 4.1.138.Final and 4.2.0.Final through 4.2.18.Final. The issue is fixed in 4.1.139.Final and 4.2.19.Final. Affected versions: >= 4.1.0.Final, <= 4.1.138.Final; >= 4.2.0.Final, <= 4.2.18.Final Patched versions: 4.1.139.Final; 4.2.19.Final CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N (5.3) CWE: CWE-93, CWE-113 Upstream advisory: https://github.com/netty/netty/security/advisories/GHSA-6g26-xhvx-g5w3 CVE requested by the Netty Project via PSIRTSUPT-32166.