5.3medium
Netty: Resource exhaustion in MqttDecoder
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.56% (higher than 48% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jfg9-48mv-9qgx
Description
Netty is an asynchronous, event-driven network application framework. Prior to 4.2.13.Final and 4.1.133.Final, the MQTT 5 header Properties section is parsed and buffered before any message size limit is applied. Specifically, in MqttDecoder, the decodeVariableHeader() method is called before the bytesRemainingBeforeVariableHeader > maxBytesInMessage check. The decodeVariableHeader() can call other methods which will call decodeProperties(). Effectively, Netty does not apply any limits to the size of the properties being decoded. Additionally, because MqttDecoder extends ReplayingDecoder, Netty will repeatedly re-parse the enormous Properties sections and buffer the bytes in memory, until the entire thing parses to completion. This can cause high resource usage in both CPU and memory. This vulnerability is fixed in 4.2.13.Final and 4.1.133.Final.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| netty netty | >= 4.2.0.Alpha1, < 4.2.13.Final, < 4.1.133.Final, before 4.1.133, from 4.2.0 before 4.2.13 | CVE List, NVD |
| io.netty netty-codec-mqtt | >= 4.2.0.Alpha1, < 4.2.13.Final, < 4.1.133.Final | CVE List |
| netty | Not specified Not affected: from codec-mqtt before * | CVE List |
| netty-codec-mqtt | Not specified | CVE List |
| io.netty:netty-codec-mqtt (Maven) | from 4.2.0.Alpha1 before 4.2.13.Final, before 4.1.133.Final | GitHub Advisory Database |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| redhat-SADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
Netty is an asynchronous, event-driven network application framework. Prior to 4.2.13.Final and 4.1.133.Final, the MQTT 5 header Properties section is parsed and buffered before any message size limit is applied. Specifically, in MqttDecoder, the decodeVariableHeader() method is called before the bytesRemainingBeforeVariableHeader > maxBytesInMessage check. The decodeVariableHeader() can call other methods which will call decodeProperties(). Effectively, Netty does not apply any limits to the size of the properties being decoded. Additionally, because MqttDecoder extends ReplayingDecoder, Netty will repeatedly re-parse the enormous Properties sections and buffer the bytes in memory, until the entire thing parses to completion. This can cause high resource usage in both CPU and memory. This vulnerability is fixed in 4.2.13.Final and 4.1.133.Final.
GitHub Advisory Database
Impact
The MQTT 5 header Properties section is parsed and buffered before any message size limit is applied.
Specifically, in MqttDecoder, the decodeVariableHeader() method is called before the bytesRemainingBeforeVariableHeader > maxBytesInMessage check. The decodeVariableHeader() can call other methods which will call decodeProperties(). Effectively, Netty does not apply any limits to the size of the properties being decoded.
Additionally, because MqttDecoder extends ReplayingDecoder, Netty will repeatedly re-parse the enormous Properties sections and buffer the bytes in memory, until the entire thing parses to completion.
This can cause high resource usage in both CPU and memory.
Resources
ANT-2026-09608
https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901027
NVD (es)
Netty es un framework de aplicación de red asíncrono y basado en eventos. Antes de 4.2.13.Final y 4.1.133.Final, la sección de Propiedades del encabezado MQTT 5 se analiza y almacena en búfer antes de que se aplique cualquier límite de tamaño de mensaje. Específicamente, en MqttDecoder, el método decodeVariableHeader() se llama antes de la comprobación bytesRemainingBeforeVariableHeader > maxBytesInMessage. El decodeVariableHeader() puede llamar a otros métodos que llamarán a decodeProperties(). Efectivamente, Netty no aplica ningún límite al tamaño de las propiedades que se están decodificando. Además, debido a que MqttDecoder extiende ReplayingDecoder, Netty volverá a analizar repetidamente las enormes secciones de Propiedades y almacenará los bytes en la memoria, hasta que todo se analice por completo. Esto puede causar un alto uso de recursos tanto en la CPU como en la memoria. Esta vulnerabilidad se corrige en 4.2.13.Final y 4.1.133.Final.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-44248 changed 2026-09-11 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jfg9-48mv-9qgx changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-44248 changed 2026-10-26 | Public domain |