Skip to main content

aMQTT CVE-2026-130176

| EUVDEUVD-2026-130690 HIGH
Memory Leak (CWE-401)
2026-11-19 GitHub_M GHSA-wcqj-wx85-c75p
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Connect to broker (anonymous default)
  2. Exploit
    Begin QoS 2 handshakes, disconnect pre-completion
  3. Execution
    Repeat to accumulate unreleased transaction state
  4. Impact
    Exhaust 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

amqtt 0.11.0, < 0.12.1

Affected Packages

pypi amqtt fix: 0.12.1

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

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Nov 19, 2026 - 21:19 EUVD
CVE Published
Nov 19, 2026 - 19:54 cve.org
HIGH 7.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 60% exploitable
Prevalence
Low
niche open-source Python MQTT broker, limited enterprise footprint
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy