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

- Severity: Medium 5.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-22T21:52:55.000Z
- Modified: 2026-09-10T03:50:52.172Z
- Also known as: GHSA-gcjf-9mgh-3p7g
- Weaknesses: CWE-93
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- netty netty: >= 4.2.0.Final, < 4.2.16.Final; < 4.1.136.Final; before 4.1.136; from 4.2.0 before 4.2.16
- io.netty:netty-codec-http (Maven): from 4.2.0.Final before 4.2.16.Final; before 4.1.136.Final

## Every score

- GitHub_M: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/netty/netty/security/advisories/GHSA-gcjf-9mgh-3p7g> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/netty/netty> (package)
- <https://github.com/netty/netty/releases/tag/netty-4.1.136.Final> (web)
- <https://github.com/netty/netty/releases/tag/netty-4.2.16.Final> (web)

## Sources

- CVE List: [CVE-2026-59921](https://www.cve.org/CVERecord?id=CVE-2026-59921), CVE Terms of Use, modified 2026-07-29
- GitHub Advisory Database: [GHSA-gcjf-9mgh-3p7g](https://github.com/advisories/GHSA-gcjf-9mgh-3p7g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-59921](https://nvd.nist.gov/vuln/detail/CVE-2026-59921), Public domain, modified 2026-08-07

---

Page: https://cve.day/CVE-2026-59921 · Whole record: https://cve.day/CVE-2026-59921.json · Rebuilt by cve.day 2026-11-25T22:59:30.395Z
