5.3
Medium
io.netty:netty-codec-http

CVE-2026-50020

CVE-2026-50020 is a medium-severity security vulnerability in io.netty:netty-codec-http (maven), affecting versions >= 4.2.0.Final, <= 4.2.14.Final. It is fixed in 4.2.15.Final, 4.1.135.Final.

Key facts
CVSS score
5.3
Medium
Attack vector
Network
Issuing authority
GitHub Advisory Database
Affected package
io.netty:netty-codec-http
Fixed in
4.2.15.Final, 4.1.135.Final
Disclosed
2026

Summary

Summary Before reading the first request-line, HttpObjectDecoder skips every byte for which Character.isISOControl(b) is true (0x00–0x1F and 0x7F) as well as all whitespace. RFC 9112 §2.2 only asks servers to ignore empty CRLF lines preceding the request-line, a carefully scoped robustness allowance intended to handle HTTP/1.0 POST workarounds. Silently absorbing NUL bytes, SOH, STX, and other non-CRLF control characters goes significantly beyond this, and can be exploited for request-boundary confusion in pipelined or multiplexed transports where a front-end component treats those bytes differently. Affected Code | File | Lines | Role | |------|-------|------| | codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java | 1298–1313 | ISOCONTROLORWHITESPACE static initialiser, marks all ISO control chars | | codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java | 1307–1313 | SKIPCONTROLCHARSBYTES ByteProcessor, skips the entire set | | codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java | 1275–1289 | LineParser.skipControlChars, advances readerIndex past all matching bytes | Specification Analysis RFC 9112 §2.2, Message Parsing In the interest of robustness, a server that is expecting to receive and parse a request-line SHOULD ignore at least one empty line (CRLF) received prior to the request-line. An HTTP/1.1 user agent MUST NOT preface or follow a request with an extra CRLF. Deviation The RFC names a single permitted exception: an empty line (bare CRLF, i.e. the two-byte sequence \r\n). The ISOCONTROLORWHITESPACE table is initialised as: Character.isISOControl returns true for 0x00–0x1F and 0x7F. This includes NUL (0x00), SOH (0x01), STX (0x02), BEL (0x07), DEL (0x7F), and every other non-CRLF control character. The SKIPCONTROLCHARS state runs this scan unconditionally before the first READINITIAL, meaning any sequence of such bytes prepended to a request is silently consumed. A load balancer or TLS terminator that does not perform the same scan sees a different message boundary than Netty does, which is the basis of a request-desync / smuggling attack. Suggested Unit Test Add to HttpRequestDecoderTest.java. Current behaviour (unfixed): skipControlChars advances past 0x00 and 0x01 because both are in ISOCONTROLOR_WHITESPACE; the request parses normally, isFailure() is false → test fails. Expected behaviour after fix: only CRLF empty lines are tolerated; non-CRLF control bytes produce an error, isFailure() is true → test passes.

Impact

Severity and exposure

CVE-2026-50020 has a CVSS score of 5.3 (Medium). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment.

A fixed version is available (4.2.15.Final, 4.1.135.Final). Upgrading removes the vulnerable code path.

Affected versions

maven

  • io.netty:netty-codec-http (>= 4.2.0.Final, <= 4.2.14.Final)
  • io.netty:netty-codec-http (<= 4.1.134.Final)

Security releases

  • io.netty:netty-codec-http → 4.2.15.Final (maven)
  • io.netty:netty-codec-http → 4.1.135.Final (maven)
Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter instead of chasing every advisory.

Kodem's runtime-powered SCA identifies whether CVE-2026-50020 is reachable in your applications. Explore open-source security for your team.

See if CVE-2026-50020 is reachable in your applications. Get a demo

Remediation advice

Upgrade the following packages to resolve this vulnerability:

  • Upgrade io.netty:netty-codec-http to 4.2.15.Final or later
  • Upgrade io.netty:netty-codec-http to 4.1.135.Final or later

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently asked questions about CVE-2026-50020

What is CVE-2026-50020?

CVE-2026-50020 is a medium-severity security vulnerability in io.netty:netty-codec-http (maven), affecting versions >= 4.2.0.Final, <= 4.2.14.Final. It is fixed in 4.2.15.Final, 4.1.135.Final.

How severe is CVE-2026-50020?

CVE-2026-50020 has a CVSS score of 5.3 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.

Which versions of io.netty:netty-codec-http are affected by CVE-2026-50020?

io.netty:netty-codec-http (maven) versions >= 4.2.0.Final, <= 4.2.14.Final is affected.

Is there a fix for CVE-2026-50020?

Yes. CVE-2026-50020 is fixed in 4.2.15.Final, 4.1.135.Final. Upgrade to this version or later.

Is CVE-2026-50020 exploitable, and should I be worried?

Whether CVE-2026-50020 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo

What actually determines whether CVE-2026-50020 is exploitable, and how bad it is?

Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.

How do I fix CVE-2026-50020?
  • Upgrade io.netty:netty-codec-http to 4.2.15.Final or later
  • Upgrade io.netty:netty-codec-http to 4.1.135.Final or later

Stop the waste.
Protect your environment with Kodem.