GitHub Advisoryadvisory · Maven

GHSA-hh82-3pmq-7frp Netty vulnerable to HTTP Response splitting from assigning header value iterator

MEDIUM Published 2022-12-12 Modified 2023-01-10 Official page ↗
Aliases
CVE-2022-41915
Ecosystem
Maven
Packages
io.netty:netty-codec-http
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weaknesses
CWE-113, CWE-436
Reviewed
2022-12-12

Affected packages

• Maven io.netty:netty-codec-http: >= 4.1.83.Final, < 4.1.86.Final → fixed in 4.1.86.Final

Description

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 [email protected]

Related

Alias · CVE (1)

  • CVE-2022-41915 Netty project is an event-driven asynchronous network application framework. vulnerability

Weakness · CWE (2)

  • CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers weakness
  • CWE-436 Interpretation Conflict weakness

References