When calling DefaultHttpHeaders.set
with an iterator of values (as opposed to a single given value), header value validation was not performed, allowing malicious header values in the iterator to perform HTTP Response Splitting.
The necessary validation was added in Netty 4.1.86.Final.
Integrators can work around the issue by changing the DefaultHttpHeaders.set(CharSequence, Iterator<?>)
call, into a remove()
call, and call add()
in a loop over the iterator of values.
HTTP Response Splitting CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers
If you have any questions or comments about this advisory: * Open an issue in [example link to repo](https://github.com/netty/netty) * Email us at netty-security@googlegroups.com
{ "nvd_published_at": "2022-12-13T07:15:00Z", "cwe_ids": [ "CWE-113", "CWE-436" ], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2022-12-12T21:25:44Z" }