HTTP Response Splitting Affecting io.netty:netty-codec package, versions [4.1.83.Final,4.1.86.Final)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (65th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-IONETTY-3167773
  • published13 Dec 2022
  • disclosed12 Dec 2022
  • creditRafal Ambrozewicz

Introduced: 12 Dec 2022

CVE-2022-41915  (opens in a new tab)
CWE-113  (opens in a new tab)

How to fix?

Upgrade io.netty:netty-codec to version 4.1.86.Final or higher.

Overview

io.netty:netty-codec is an event-driven asynchronous network application framework.

Affected versions of this package are vulnerable to HTTP Response Splitting when calling DefaultHttpHeaders.set on an iterator of values, because header value validation is not performed.

Workaround

This vulnerability can be worked around by changing the DefaultHttpHeaders.set(CharSequence, Iterator<?>) call into a remove() call, and calling add() in a loop over the iterator.

CVSS Scores

version 3.1