GitHub Advisoryadvisory · Maven

GHSA-jfg9-48mv-9qgx Netty MQTT: Resource exhaustion in MqttDecoder

MEDIUM Published 2026-05-07 Modified 2026-05-14 Official page ↗
Aliases
CVE-2026-44248
Ecosystem
Maven
Packages
io.netty:netty-codec-mqtt
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weaknesses
CWE-400
Reviewed
2026-05-07

Affected packages

• Maven io.netty:netty-codec-mqtt: >= 4.2.0.Alpha1, < 4.2.13.Final → fixed in 4.2.13.Final • Maven io.netty:netty-codec-mqtt: < 4.1.133.Final → fixed in 4.1.133.Final

Description

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

Related

Alias · CVE (1)

  • CVE-2026-44248 Netty is an asynchronous, event-driven network application framework. vulnerability

Weakness · CWE (1)

  • CWE-400 Uncontrolled Resource Consumption weakness

References