PyPI
CVE-2026-130176
aMQTT: Denial of Service (DoS) via Memory Leak in Unmanaged QoS 2 Session Handshakes
- Severity
- High 7.5
- Published
- 20 Nov 2026
- Last changed
- 20 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.12.1
- Exploit chance
- 0.6% in the next 30 daysHigher than 50% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Memory leak (CWE-401)CWE-772
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-wcqj-wx85-c75p
- Sources
- OSV.dev and GitHub
Description
amqtt is vulnerable to a remote denial of service caused by incomplete MQTT QoS 2 transactions remaining allocated after the associated client disconnects.
MQTT QoS 2 uses a four-step handshake to provide exactly-once delivery. If a client begins a QoS 2 transaction but disconnects before the handshake completes, amqtt retains the associated transaction state and packet identifier without an expiration mechanism to remove it.
QoS 1 transactions are protected by a timeout mechanism, which defaults to 5 seconds, allowing abandoned state to be released. Equivalent timeout handling was not applied to incomplete QoS 2 transactions.
An attacker can repeatedly connect to the broker, initiate QoS 2 transactions, and disconnect before completing the handshake. Each incomplete transaction leaves state allocated in memory. Repeating this process causes broker memory consumption to grow continuously.
Successful exploitation can cause:
Workarounds
Administrators who cannot immediately upgrade should limit the ability of untrusted clients to create large numbers of incomplete QoS 2 transactions.
Where application requirements permit, preventing untrusted clients from using QoS 2 provides the strongest temporary mitigation.
Connection and request rate limiting at a reverse proxy, load balancer, firewall, or other network layer can reduce the rate at which an attacker creates abandoned transactions, but does not eliminate the underlying vulnerability.
Affected software
| Software | Affected versions |
|---|---|
amqttPyPI · osv:PyPI:amqtt |
|
About amqtt
- Weekly downloads (PyPI)
- 24,808PyPI Stats, 23 Nov 2026
Vulnerabilities in amqtt
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-104199aMQTT: Inefficient Regular Expression Complexity and Uncontrolled Resource Consumption and Improper Input ValidationHigh 20 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-130176
- GitHub Advisory Database https://github.com/advisories/GHSA-wcqj-wx85-c75p