Skip to main content
← All vulnerabilities
CVE-2026-59921GHSA-GCJF-9MGH-3P7G

Netty: CRLF Injection via Multipart Filename in Netty HttpPostRequestEncoder

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.2.16.Final, 4.1.136.Final
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • netty netty

    From 4.2.0.Final · fixed in 4.2.16.Final; fixed in 4.1.136.Final

  • io.netty:netty-codec-httpMaven

    From 4.2.0.Final · fixed in 4.2.16.Final

  • io.netty:netty-codec-httpMaven

    fixed in 4.1.136.Final

References 1

GitHub · netty/netty