Netty: Prior to versions 4.1.136.Final and 4.2.16.Final, HttpPostRequestEncoder constructs multipart HTTP request bodies by directly concatenating… (CVE-2026-59921)
Netty versions prior to 4.1.136.Final and 4.2.16.Final contain a vulnerability in HttpPostRequestEncoder where multipart HTTP request bodies are constructed by directly concatenating user-supplied filenames and field names into Content-Disposition MIME headers without sanitizing CRLF characters. This allows an attacker controlling the filename to inject arbitrary MIME headers into the multipart body part. The issue is fixed in versions 4.1.136.Final and 4.2.16.Final.
AI Analysis
Technical Summary
Netty is an asynchronous network application framework. In versions before 4.1.136.Final and 4.2.16.Final, the HttpPostRequestEncoder component constructs multipart HTTP request bodies by concatenating user-supplied filenames and field names directly into Content-Disposition MIME headers without validating or neutralizing CRLF characters (\r\n). Since MIME headers are delimited by CRLF, this lack of sanitization enables an attacker who controls the filename to inject arbitrary MIME headers into the multipart body part. The root cause is that neither the encoder nor the FileUpload implementations' setFilename() methods neutralize CRLF characters before embedding the filename into the header. This vulnerability has been addressed in versions 4.1.136.Final and 4.2.16.Final.
Potential Impact
An attacker able to control the filename in a multipart HTTP request can inject arbitrary MIME headers into the multipart body part. This can lead to HTTP header injection, potentially affecting the integrity of HTTP requests or responses processed by the application. The CVSS score of 6.5 (medium severity) reflects that the vulnerability requires network access with low complexity and privileges but can cause a high impact on integrity. There is no indication of confidentiality or availability impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade Netty to version 4.1.136.Final or later, or 4.2.16.Final or later, where this vulnerability has been fixed by properly sanitizing CRLF characters in filenames and field names used in multipart HTTP request bodies. No other mitigations are indicated by the vendor advisory or source data.
Netty: Prior to versions 4.1.136.Final and 4.2.16.Final, HttpPostRequestEncoder constructs multipart HTTP request bodies by directly concatenating… (CVE-2026-59921)
Description
Netty versions prior to 4.1.136.Final and 4.2.16.Final contain a vulnerability in HttpPostRequestEncoder where multipart HTTP request bodies are constructed by directly concatenating user-supplied filenames and field names into Content-Disposition MIME headers without sanitizing CRLF characters. This allows an attacker controlling the filename to inject arbitrary MIME headers into the multipart body part. The issue is fixed in versions 4.1.136.Final and 4.2.16.Final.
CVSS v3.1
Score 6.5medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Netty is an asynchronous network application framework. In versions before 4.1.136.Final and 4.2.16.Final, the HttpPostRequestEncoder component constructs multipart HTTP request bodies by concatenating user-supplied filenames and field names directly into Content-Disposition MIME headers without validating or neutralizing CRLF characters (\r\n). Since MIME headers are delimited by CRLF, this lack of sanitization enables an attacker who controls the filename to inject arbitrary MIME headers into the multipart body part. The root cause is that neither the encoder nor the FileUpload implementations' setFilename() methods neutralize CRLF characters before embedding the filename into the header. This vulnerability has been addressed in versions 4.1.136.Final and 4.2.16.Final.
Potential Impact
An attacker able to control the filename in a multipart HTTP request can inject arbitrary MIME headers into the multipart body part. This can lead to HTTP header injection, potentially affecting the integrity of HTTP requests or responses processed by the application. The CVSS score of 6.5 (medium severity) reflects that the vulnerability requires network access with low complexity and privileges but can cause a high impact on integrity. There is no indication of confidentiality or availability impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade Netty to version 4.1.136.Final or later, or 4.2.16.Final or later, where this vulnerability has been fixed by properly sanitizing CRLF characters in filenames and field names used in multipart HTTP request bodies. No other mitigations are indicated by the vendor advisory or source data.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-gcjf-9mgh-3p7g
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-59921"]
- Ecosystems
- ["Maven"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a6150d39c2644c7f8da06c6
Added to database: 07/22/2026, 23:22:59 UTC
Last enriched: 08/08/2026, 16:58:42 UTC
Last updated: 09/05/2026, 07:00:18 UTC
Views: 118
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.