CVE-2026-142452: Io.netty/netty-codec-http: netty: httppostrequestencoder emits crlf in multipart filename/contenttype as part headers

Published Dec 2, 2026
·
Updated

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.

Other sources

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.

— Red Hat

Affected Software

1 affected component
maven/io.netty/netty-codec-http>=4.1.0.Final<=4.1.138.Final, >=4.2.0.Final<=4.2.18.Final

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade io.netty/netty-codec-http to a version that resolves this vulnerability.

    Fixed in 4.1.139.Final
  2. Upgrade

    Upgrade io.netty/netty-codec-http to a version that resolves this vulnerability.

    Fixed in 4.2.19.Final

Event History

Dec 2, 2026
Data Sourced
via Red Hat·04:50 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·06:27 PM
Data Sourced
via MITRE·06:27 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What conditions are required for exploitation?

A remote attacker must be able to provide file upload metadata containing carriage return and line feed sequences. The listed vector indicates no authentication, user interaction, or special privileges are required.

2

Which deployments are most relevant to triage?

Applications that use this component to create outbound multipart upload requests and allow untrusted parties to influence file-upload metadata are the primary concern. Injected headers may cause downstream services to misinterpret metadata, bypass filters, or make improper routing decisions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203