CVE-2025-58056
JSON

2.9low

Netty is vulnerable to request smuggling due to incorrect parsing of chunk extensions

Severity
2.9low CVSS:4.0 by GitHub_M
Exploit likelihood
0.77% (higher than 56% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-fghv-69vj-qj49

Description

Netty is an asynchronous event-driven network application framework for development of maintainable high performance protocol servers and clients. In versions 4.1.124.Final, and 4.2.0.Alpha3 through 4.2.4.Final, Netty incorrectly accepts standalone newline characters (LF) as a chunk-size line terminator, regardless of a preceding carriage return (CR), instead of requiring CRLF per HTTP/1.1 standards. When combined with reverse proxies that parse LF differently (treating it as part of the chunk extension), attackers can craft requests that the proxy sees as one request but Netty processes as two, enabling request smuggling attacks. This is fixed in versions 4.1.125.Final and 4.2.5.Final.

Affected

Product or packageVersionsReported by
netty netty>= 4.2.0.Alpha3, < 4.2.5.Final, <= 4.1.124.Final, < 4.1.125.Final, before 4.1.125, from 4.2.0 before 4.2.5CVE List, NVD
io.netty:netty-codec-http (Maven)before 4.1.125.Final, from 4.2.0.Alpha1 before 4.2.5.FinalGitHub Advisory Database

All scores

GitHub_M2.9low CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
GitHublow rating
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-444

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Netty is an asynchronous event-driven network application framework for development of maintainable high performance protocol servers and clients. In versions 4.1.124.Final, and 4.2.0.Alpha3 through 4.2.4.Final, Netty incorrectly accepts standalone newline characters (LF) as a chunk-size line terminator, regardless of a preceding carriage return (CR), instead of requiring CRLF per HTTP/1.1 standards. When combined with reverse proxies that parse LF differently (treating it as part of the chunk extension), attackers can craft requests that the proxy sees as one request but Netty processes as two, enabling request smuggling attacks. This is fixed in versions 4.1.125.Final and 4.2.5.Final.

GitHub Advisory Database

Summary

A flaw in netty's parsing of chunk extensions in HTTP/1.1 messages with chunked encoding can lead to request smuggling issues with some reverse proxies.

Details

When encountering a newline character (LF) while parsing a chunk extension, netty interprets the newline as the end of the chunk-size line regardless of whether a preceding carriage return (CR) was found. This is in violation of the HTTP 1.1 standard which specifies that the chunk extension is terminated by a CRLF sequence (see the RFC).

This is by itself harmless, but consider an intermediary with a similar parsing flaw: while parsing a chunk extension, the intermediary interprets an LF without a preceding CR as simply part of the chunk extension (this is also in violation of the RFC, because whitespace characters are not allowed in chunk extensions). We can use this discrepancy to construct an HTTP request that the intermediary will interpret as one request but netty will interpret as two (all lines ending with CRLF, notice the LFs in the chunk extension):

POST /one HTTP/1.1
Host: localhost:8080
Transfer-Encoding: chunked

48;\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n0

POST /two HTTP/1.1
Host: localhost:8080
Transfer-Encoding: chunked

0

The intermediary will interpret this as a single request. Once forwarded to netty, netty will interpret it as two separate requests. This is a problem, because attackers can then the intermediary, as well as perform standard request smuggling attacks against other live users (see this Portswigger article).

Impact

This is a request smuggling issue which can be exploited for bypassing front-end access control rules as well as corrupting the responses served to other live clients.

The impact is high, but it only affects setups that use a front-end which:

  1. Interprets LF characters (without preceding CR) in chunk extensions as part of the chunk extension.
  2. Forwards chunk extensions without normalization.

Disclosure

Discussion

Discussion for this vulnerability can be found here:

Credit

  • Credit to @JeppW for uncovering this vulnerability.
  • Credit to @JLLeitschuh at Socket for coordinating the vulnerability disclosure.
NVD (es)

Netty es un framework de aplicación de red asíncrono impulsado por eventos para el desarrollo de servidores y clientes de protocolo de alto rendimiento y mantenibles. En las versiones 4.1.124.Final, y 4.2.0.Alpha3 hasta 4.2.4.Final, Netty acepta incorrectamente caracteres de nueva línea independientes (LF) como un terminador de línea de tamaño de fragmento, independientemente de un retorno de carro (CR) precedente, en lugar de requerir CRLF según los estándares HTTP/1.1. Cuando se combina con proxies inversos que analizan LF de manera diferente (tratándolo como parte de la extensión de fragmento), los atacantes pueden elaborar solicitudes que el proxy ve como una solicitud pero Netty procesa como dos, lo que permite ataques de contrabando de solicitudes. Esto se ha corregido en las versiones 4.1.125.Final y 4.2.5.Final.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-58056 changed 2025-09-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-fghv-69vj-qj49 changed 2026-09-10CC-BY-4.0
NVDCVE-2025-58056 changed 2026-10-19Public domain