Read the docs

Denial of service via memory leak in aMQTT QoS 2 handshakes

Priority MEDIUM 40CWE-401Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-401.

Summary

aMQTT, an open source MQTT broker and client, is affected from 0.11.0 before 0.12.1. The QoS 2 transaction handler keeps transaction state and packet identifiers when a client disconnects before the handshake completes, unlike QoS 1 flows that expire after five seconds (CWE-401). A remote client can repeatedly start QoS 2 flows and disconnect, so broker memory grows until the process can be exhausted, and anonymous clients can do this with the default configuration.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0063 44th percentileScored 2026-11-30
Fix Fixed amqtt (Yakifo): 0.12.1amqtt (PyPI): 0.12.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Yakifoamqtt0.11.0 to before 0.12.10.12.1Patch availableCNA
—amqtt (PyPI)0.11.0 to before 0.12.10.12.1Patch availableGHSA-wcqj-wx85-c75p
  • amqtt VendorYakifo Affected 0.11.0 to before 0.12.1 Fixed in 0.12.1 Patch available CNA
  • amqtt (PyPI) Vendor— Affected 0.11.0 to before 0.12.1 Fixed in 0.12.1 Patch available GHSA-wcqj-wx85-c75p

Remediation

Upgrade amqtt to version 0.12.1, which is the fixed version for both the Yakifo amqtt and the PyPI amqtt packages.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

  • Fix · CNA amqtt (Yakifo) Fixed in 0.12.1
  • Fix · GHSA-wcqj-wx85-c75p amqtt (PyPI) Fixed in 0.12.1 Advisory →

Timeline

  1. 2026-11-19 Threatist record created from CVE-2026-130176
  2. 2026-11-20 Alias added: GHSA-wcqj-wx85-c75p
  3. 2026-11-20 Fix available: PyPI/[email protected] · GHSA-wcqj-wx85-c75p
  4. 2026-11-20 CVSS score added · GHSA-wcqj-wx85-c75p
  5. 2026-11-20 Weakness changed · GHSA-wcqj-wx85-c75p
  6. 2026-11-20 7 new references · GHSA-wcqj-wx85-c75p
  7. 2026-11-20 CISA SSVC decision points changed
  8. 2026-11-21 EPSS moved to the 50th–90th percentile
  9. 2026-11-25 EPSS moved to the below the 50th percentile

References

  • TI-2026-95133 Regular expression backtracking in aMQTT broker blocks message delivery CVSS 4.0HIGH 8.7

Sources