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


Severity

0.0
medium
0
10

    Threat Intelligence

    EPSS
    0.2% (58th 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 ID SNYK-JAVA-IONETTY-3167773
  • published 13 Dec 2022
  • disclosed 12 Dec 2022
  • credit Rafal Ambrozewicz

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
Expand this section

Snyk

6.5 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    None
Expand this section

NVD

6.5 medium
Expand this section

SUSE

7.5 high