Netty vulnerable to HTTP Response splitting from assigning header value iterator
### Impact 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](https://owasp.org/www-community/attacks/HTTP_Response_Splitting). ### Patches The necessary validation was added in Netty 4.1.86.Final. ### Workarounds 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. ### References [HTTP Response Splitting](https://owasp.org/www-community/attacks/HTTP_Response_Splitting) [CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers](https://cwe.mitre.org/data/definitions/113.html) ### For more information If you have any questions or comments about this advisory: * Open an issue in [[example link to repo](https://github.com/netty/netty)](https://github.com/netty/netty) * Email us at [netty-security@googlegroups.com](mailto:netty-security@googlegroups.com)
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2022-41915US | medium6.5 | — | ||
Netty project is an event-driven asynchronous network application framework. Starting in version 4.1.83.Final and prior to 4.1.86.Final, when calling `DefaultHttpHeadesr.set` with… | ||||
references
External citations — patches, advisories, analysis.
- https://github.com/netty/nettyWEB
- https://github.com/netty/netty/commit/c37c637f096e7be3dffd36edee3455c8e90cb1b0WEB
- https://github.com/netty/netty/commit/fe18adff1c2b333acb135ab779a3b9ba3295a1c4WEB
- https://github.com/netty/netty/issues/13084WEB
- https://github.com/netty/netty/pull/12760WEB
- https://github.com/netty/netty/security/advisories/GHSA-hh82-3pmq-7frpWEB
- https://lists.debian.org/debian-lts-announce/2023/01/msg00008.htmlWEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-41915ADVISORY
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan