6.5medium
Netty vulnerable to HTTP Response splitting from assigning header value iterator
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.96% (higher than 62% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-hh82-3pmq-7frp
Description
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 an _iterator_ of values, header value validation was not performed, allowing malicious header values in the iterator to perform HTTP Response Splitting. This issue has been patched in version 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| netty netty | from 4.1.86.Final before 4.1.86.Final, from 4.1.83.Final before 4.1.83.Final*, from 4.1.83 before 4.1.86 | CVE List, NVD |
| io.netty:netty-codec-http (Maven) | from 4.1.83.Final before 4.1.86.Final | GitHub Advisory Database |
| debian debian_linux | 10.0, 11.0 | NVD |
All scores
| GitHub_M | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Classification
What each source says
CVE List
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 an _iterator_ of values, header value validation was not performed, allowing malicious header values in the iterator to perform HTTP Response Splitting. This issue has been patched in version 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.
GitHub Advisory Database
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.
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 CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers
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)
- Email us at netty-security@googlegroups.com
NVD (es)
El proyecto Netty es un framework de aplicación de red asíncrona impulsado por eventos. A partir de la versión 4.1.83.Final y anteriores a la 4.1.86.Final, al llamar a `DefaultHttpHeadesr.set` con un _iterator_ de valores, no se realizaba la validación del valor del encabezado, lo que permitía que los valores de encabezado maliciosos en el iterador realizaran la división de respuesta HTTP. Este problema se solucionó en la versión 4.1.86.Final. Los integradores pueden solucionar el problema cambiando la llamada `DefaultHttpHeaders.set(CharSequence, Iterator)` a una llamada `remove()` y llamando a `add()` en un bucle sobre el iterador de valores.
References
| https://github.com/netty/netty/security/advisories/GHSA-hh82-3pmq-7frp | mitigation, third-party-advisory, web | |
| https://github.com/netty/netty/issues/13084 | exploit, issue-tracking, third-party-advisory, web | |
| https://github.com/netty/netty/pull/12760 | patch, third-party-advisory, web | |
| https://github.com/netty/netty/commit/fe18adff1c2b333acb135ab779a3b9ba3295a1c4 | patch, third-party-advisory, web | |
| https://lists.debian.org/debian-lts-announce/2023/01/msg00008.html | mailing-list, third-party-advisory, web | |
| https://www.debian.org/security/2023/dsa-5316 | third-party-advisory, vendor-advisory, web | |
| https://security.netapp.com/advisory/ntap-20230113-0004/ | third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-41915 | advisory | |
| https://github.com/netty/netty/commit/c37c637f096e7be3dffd36edee3455c8e90cb1b0 | web | |
| https://github.com/netty/netty | web | |
| https://security.netapp.com/advisory/ntap-20230113-0004 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-41915 changed 2025-04-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hh82-3pmq-7frp changed 2026-01-28 | CC-BY-4.0 |
| NVD | CVE-2022-41915 changed 2026-06-17 | Public domain |