CVE-2026-59921 Netty: CRLF Injection via Multipart Filename in Netty HttpPostRequestEncoder

Medium 5.7 Published Updated

Attackers can inject arbitrary MIME headers into multipart requests via unsanitized filenames, potentially bypassing security controls or corrupting data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-59921?

CVE-2026-59921 is a medium-severity vulnerability in Netty Netty, published on 28 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Netty is an asynchronous, event-driven network application framework. Prior to versions 4.1.136.Final and 4.2.16.Final, HttpPostRequestEncoder constructs multipart HTTP request bodies by directly concatenating user-supplied filenames and field names into Content-Disposition MIME headers without validating or sanitizing CRLF characters (\r\n). Since MIME headers are delimited by CRLF, an attacker who controls the filename can inject arbitrary MIME headers into the multipart body part. The root cause is that neither the encoder nor the FileUpload implementations' setFilename() methods, which only check for null, neutralize CRLF characters before the filename is embedded into the header. This issue has been fixed in versions 4.1.136.Final and 4.2.16.Final.

Weakness: CWE-93

Which versions are affected by CVE-2026-59921?

4 open source packages ship an affected version, including io.netty:netty-codec-http. It affects 1 product.

PackageAffectedFixed in
io.netty:netty-codec-http MavenAll versions4.1.136.Final
io.netty:netty-codec-http MavenAll versions4.1.136.Final
io.netty:netty-codec-http MavenFrom 4.2.0.Final4.2.16.Final
io.netty:netty-codec-http MavenFrom 4.2.0.Final4.2.16.Final

Products include Netty Netty.

How do I fix CVE-2026-59921?

Upgrade io.netty:netty-codec-http to a fixed version for your release line: 4.1.136.Final or 4.2.16.Final.

Is CVE-2026-59921 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-59921 exists.

All Netty Netty vulnerabilities

Sources

Also known as CLEANSTART-2026-AC10383, CLEANSTART-2026-BL92558, CLEANSTART-2026-CK01312, CLEANSTART-2026-CP85393, CLEANSTART-2026-SM87861, DEBIAN-CVE-2026-59921 and 108 more.

Is CVE-2026-59921 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free