CVE-2022-41915
JSON

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 packageVersionsReported by
netty nettyfrom 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.86CVE List, NVD
io.netty:netty-codec-http (Maven)from 4.1.83.Final before 4.1.86.FinalGitHub Advisory Database
debian debian_linux10.0, 11.0NVD

All scores

GitHub_M6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Classification

CWE-113CWE-436

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

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:

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-7frpmitigation, third-party-advisory, web
https://github.com/netty/netty/issues/13084exploit, issue-tracking, third-party-advisory, web
https://github.com/netty/netty/pull/12760patch, third-party-advisory, web
https://github.com/netty/netty/commit/fe18adff1c2b333acb135ab779a3b9ba3295a1c4patch, third-party-advisory, web
https://lists.debian.org/debian-lts-announce/2023/01/msg00008.htmlmailing-list, third-party-advisory, web
https://www.debian.org/security/2023/dsa-5316third-party-advisory, vendor-advisory, web
https://security.netapp.com/advisory/ntap-20230113-0004/third-party-advisory
https://nvd.nist.gov/vuln/detail/CVE-2022-41915advisory
https://github.com/netty/netty/commit/c37c637f096e7be3dffd36edee3455c8e90cb1b0web
https://github.com/netty/nettyweb
https://security.netapp.com/advisory/ntap-20230113-0004web

Sources

SourceRecordLicence
CVE ListCVE-2022-41915 changed 2025-04-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-hh82-3pmq-7frp changed 2026-01-28CC-BY-4.0
NVDCVE-2022-41915 changed 2026-06-17Public domain