Bug 2588744 (CVE-2026-142452)

Summary: CVE-2026-142452 io.netty/netty-codec-http: Netty: HttpPostRequestEncoder emits CRLF in multipart filename/contentType as part headers
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: ant, anujha, aschwart, asoldano, asyoung, aszczucz, bbaranow, bmaxwell, boliveir, bstansbe, ccranfor, cescoffi, chfoley, cmah, csuconic, dbruscin, dhanak, dlofthou, drichtar, drosa, dsimansk, ehelms, ewittman, fmariani, fmongiar, gmalinko, gsmet, gtanzill, gtully, istudens, ivassile, iweiss, janstey, jbaesner, jbuscemi, jkrystof, jmartisk, jnethert, jpasqual, jpechane, jsherman, jturenov, juwatts, jwon, kaycoth, kingland, kvanderr, lblicha, manderse, mcarlett, mhulan, mnovotny, mosmerov, mposolda, msvehla, nipatil, nwallace, ogajduse, olubyans, osousa, ozzy, pantinor, pberan, pesilva, pjindal, pmackay, prichard, rchan, rgemmell, rgodfrey, rguimara, rkubis, rmartinc, rstancel, rstepani, sausingh, sbiarozk, sdawley, smallamp, ssilvert, sthirugn, sthorger, swoodman, tbish, tcunning, thjenkin, tlavocat, tmielke, tzimanyi, varjain, vdosoudi, vmuzikar, yfang, zhunting
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in netty-codec-http. A remote attacker can exploit this issue by providing file upload metadata containing carriage return and line feed (CRLF) sequences. This flaw allows the attacker to inject arbitrary HTTP headers into outbound requests, potentially causing downstream services to misinterpret request metadata, bypass security filters, or process improper routing decisions.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-12-02 16:50:17 UTC
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.