Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessConnect to broker (anonymous default)
-
ExploitBegin QoS 2 handshakes, disconnect pre-completion
-
ExecutionRepeat to accumulate unreleased transaction state
-
ImpactExhaust broker memory, trigger OOM kill
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
|
| Exploitation Conditions | Exploitation requires that the attacker's client be permitted to initiate MQTT QoS 2 message flows against the broker. Under the default aMQTT configuration this needs no credentials - anonymous clients can trigger it remotely. When authentication is enabled, any authenticated client allowed to use QoS 2 can still exploit it, so authentication alone is not a sufficient mitigation. The limiting factors are: the broker must be reachable by untrusted clients, and QoS 2 must be usable by them; preventing untrusted clients from using QoS 2 is the strongest workaround. MQTT Keep Alive limits do not help because the leaked state persists after the client connection terminates, and rate limiting only slows, not prevents, accumulation. Only upgrading to 0.12.1 fully resolves the issue. |
| Impact | Signals align consistently toward a genuine but bounded availability risk. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, base 7.5) is credible: under the default configuration anonymous clients can initiate QoS 2 flows remotely over the network with low complexity and no user interaction, and the advisory confirms the impact is availability-only (C:N/I:N consistent with CWE-401/CWE-772 memory leak). The vuln.today decision label is 'this_week' rather than act_now/emergency, which fits the picture: no CISA KEV listing and no EPSS score are present in the input, so there is no evidence of active exploitation or high predicted exploitation probability. No working exploit code is identified - the GitHub references are advisory, PR, commit and release artifacts plus a regression test, not a published exploit. The practical caveat is that this is a slow-burn resource-exhaustion flaw, not instant code execution: an attacker must repeatedly open QoS 2 handshakes and abandon them, and memory grows continuously until OOM, so single requests do not immediately crash the broker. Net: a real priority to patch within the stated this-week window for internet-exposed or multi-tenant brokers, but not an emergency-grade, mass-exploited issue on current signals. |
| Exploit ScenarioDerived | A remote client connects to an internet-reachable aMQTT broker (anonymously under the default configuration) and begins a QoS 2 publish handshake but disconnects before sending the completing packets, then repeats this thousands of times. Each abandoned QoS 2 transaction leaves packet-identifier and transaction state resident in broker memory with no expiration, so memory grows continuously until the process is killed by the OS Out-Of-Memory handler, taking the broker offline. No public exploit identified at time of analysis; exploitation is low-complexity and unauthenticated against default deployments. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
Repeatedly abandoning MQTT QoS 2 handshakes lets a remote client exhaust broker memory in aMQTT 0.11.0 through 0.12.0, because the incomplete transaction state and packet identifier are never expired after the client disconnects. The broker's QoS 1 path already releases abandoned transactions after a five-second default timeout, but the QoS 2 path in amqtt/mqtt/protocol/handler.py waited indefinitely, so each aborted handshake leaves memory allocated until the process is killed or the host OOM killer intervenes. Under the default configuration anonymous clients can do this without credentials, and enabling authentication does not close the hole because any client permitted to initiate QoS 2 flows can still trigger it; only availability is affected (CVSS 7.5, C:N/I:N/A:H). No public exploit code was identified at time of analysis, the issue is not in CISA KEV, and it is fixed in 0.12.1.
RemediationAI
Vendor-released patch: 0.12.1 - upgrade with pip install --upgrade "amqtt==0.12.1" (or pin >= 0.12.1) and redeploy the broker; the fixing commit is 2755fd801a6f95e9b73e11116948b57a95348466, merged through pull request 404, and the release notes are at https://github.com/Yakifo/amqtt/releases/tag/v0.12.1 with the advisory at https://github.com/Yakifo/amqtt/security/advisories/GHSA-wcqj-wx85-c75p. If upgrading cannot happen immediately, the vendor's stated options are: prevent untrusted clients from using QoS 2 where application requirements allow (described as the strongest temporary mitigation, at the cost of losing exactly-once delivery semantics for those clients); apply connection and request rate limiting at a reverse proxy, load balancer or firewall, which only slows the rate of abandoned transactions and does not eliminate the issue; and monitor broker memory consumption while configuring process or container memory limits so exhaustion is contained, though this does not remove the leak. Restarting the broker reclaims abandoned state and restores availability, but the broker remains vulnerable until 0.12.1 is installed. The advisory explicitly notes that MQTT Keep Alive limits are not a sufficient mitigation because the state persists after the client connection has already terminated, and that authentication alone is not sufficient since any client permitted to initiate QoS 2 flows can still exploit the flaw.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MQTT QoS 2 provides exactly-once delivery through a four-step handshake (PUBLISH, PUBREC, PUBREL, PUBCOMP) in which the broker must retain per-packet transaction state until the exchange finishes. aMQTT is a Python/asyncMQTT broker and client library built on asyncio; its protocol handler keeps an outgoing application message plus the awaited asyncio futures for the PUBREC and PUBCOMP packets keyed by packet identifier. In 0.11.0 through 0.12.0 the QoS 1 flow was guarded by a default five-second transaction timeout, but _handle_qos2_message_flow() awaited waiter_pub_rec and waiter_pub_comp with no timeout at all, so a client that starts a QoS 2 transaction and drops the connection leaves the message state, the packet identifier and the waiter objects resident indefinitely. This is CWE-401 (missing release of memory after effective lifetime), with the advisory also classifying it as CWE-772 (missing release of resource after effective lifetime). The 0.12.1 fix wraps both awaits in asyncio.wait_for(..., timeout=5) and raises a TimeoutError with a logged warning for the affected packet ID, bringing QoS 2 in line with the existing QoS 1 expiration behavior; the same commit (2755fd801a6f95e9b73e11116948b57a95348466, merged via pull request 404) adds the regression test test_qos2_outgoing_timeout_cleans_waiter_and_inflight covering both the PUBREC and PUBCOMP timeout stages. The supplied CPE cpe:2.3:a:yakifo:amqtt:*:*:*:*:*:*:*:* is unbounded, so the authoritative affected range is the one stated in the advisory: >= 0.11.0, <= 0.12.0, with versions before 0.11.0 not evaluated. The trigger described in the sources is a client disconnecting before the handshake completes; no confidentiality or integrity impact is identified.
Know when Amqtt gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Default config permits anonymous network clients to trigger it with low complexity and no interaction (AV:N/AC:L/PR:N/UI:N); impact is availability-only via memory exhaustion, so C:N/I:N/A:H.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
aMQTT is an open source MQTT broker and client. From 0.11.0 until 0.12.1, the QoS 2 transaction handler in amqtt/mqtt/protocol/handler.py, _handle_qos2_message_flow(), can retain transaction state and packet identifiers when a client disconnects before the handshake completes, unlike QoS 1 flows that expire after the default five-second timeout. A remote client can repeatedly begin QoS 2 flows and disconnect without maintaining long-lived connections; anonymous clients can do this with the default configuration, while authenticated deployments remain affected when a client may initiate QoS 2 flows. The retained state grows broker memory until resource exhaustion can terminate the process; no confidentiality or integrity impact is identified. This issue is fixed in version 0.12.1.
Technical POC Analysis
CWE-401 (Missing Release of Memory after Effective Lifetime), with the advisory also tagging CWE-772 (Missing Release of Resource after Effective Lifetime).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-130176 is a high-severity availability vulnerability in aMQTT versions 0.11.0 through 0.12.0. A remote client can repeatedly abandon QoS 2 handshakes, causing broker memory exhaustion that leads to denial of service. This impacts any organization relying on aMQTT for IoT or messaging infrastructure, potentially disrupting critical operations and services.
Apply vendor patch. If unable to patch immediately, enforce network segmentation to limit access to MQTT brokers, deploy intrusion detection to monitor for repeated QoS 2 handshake attempts, and configure broker resource limits to reduce the impact of memory exhaustion.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-130690
GHSA-wcqj-wx85-c75p
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB