{"vuln_id":"CVE-2026-130176","aliases":["GHSA-wcqj-wx85-c75p"],"description":"aMQTT: Denial of Service (DoS) via Memory Leak in Unmanaged QoS 2 Session Handshakes","published_at":"2026-11-19T20:17:28.477000Z","modified_at":"2026-11-20T17:18:09.357000Z","first_seen_at":"2026-11-21T19:15:19.274706Z","severity":"high","severity_source":"nvd","cvss_score":7.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","cwe":["CWE-401","CWE-772"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00623,"epss_percentile":0.5079,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-130176"},"matched_alias":null,"items":[{"id":10664,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-wcqj-wx85-c75p: aMQTT: Denial of Service (DoS) via Memory Leak in Unmanaged QoS 2 Session Handshakes","summary":"aMQTT: Denial of Service (DoS) via Memory Leak in Unmanaged QoS 2 Session Handshakes\n\n### Impact\n\n`amqtt` is vulnerable to a remote denial of service caused by incomplete MQTT QoS 2 transactions remaining allocated after the associated client disconnects.\n\nMQTT 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.\n\nQoS 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.\n\nAn 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.\n\nSuccessful exploitation can cause:\n\n* Unbounded growth in broker memory usage\n* Accumulation of incomplete QoS 2 transaction state\n* Increasing memory pressure on the host system\n* Termination of the broker process when available memory is exhausted\n* Operating-system Out-Of-Memory (OOM) intervention\n* Complete loss of availability for the affected broker process\n\nExploitation does not require maintaining long-lived connections. An attacker can create incomplete QoS 2 transactions and disconnect, leaving the broker to retain the associated state after the network connection has closed.\n\nUnder the default configuration, anonymous clients can exploit the vulnerability without credentials. When authentication is enabled, any authenticated client permitted to initiate QoS 2 message flows may still be able to exploit it. Authentication alone is therefore not a sufficient mitigation.\n\n* Ecosystem: `pip`\n* Package: `amqtt`\n* Affected versions: `>= 0.11.0, <= 0.12.0`\n\nThe vulnerable code is present in the v0.11.0 release commit, 352678c87e50e501a8a5bb91fab73c9400fa046c, and remained present on the main branch as of 5ebbf366f6b79ab12a06f426ffd18ff28954e4ea. Versions before 0.11.0 were not evaluated.\n\nThis is a denial-of-service vulnerability only. No confidentiality or integrity impact has been identified. Successful exploitation causes degradation and eventual loss of availability through memory exhaustion.\n\n### Patches\n\nThe issue will be been patched in the `v0.12.1` released version; all users should upgrade.\n\nThe completed fix:\n\n* Apply transaction expiration handling consistently to incomplete QoS 1 and QoS 2 message flows\n* Expire abandoned QoS 2 state when the associated transaction does not complete within the configured timeout\n* Release the associated message state and packet identifiers when the transaction expires\n* Prevent disconnected clients from leaving incomplete QoS 2 transactions resident in broker memory indefinitely\n\nThe fixing commit is [`2755fd801a6f95e9b73e11116948b57a95348466`](https://github.com/Yakifo/amqtt/commit/2755fd801a\n\nAffected: PyPI:amqtt\n\nFixed in: 0.12.1\n\nReferences:\nhttps://github.com/Yakifo/amqtt/security/advisories/GHSA-wcqj-wx85-c75p\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-130176\nhttps://github.com/Yakifo/amqtt/pull/404\nhttps://github.com/Yakifo/amqtt/commit/2755fd801a6f95e9b73e11116948b57a95348466\nhttps://github.com/Yakifo/amqtt/commit/64a6f8c3ebc47640f2e092885c1d504c8f34f1af\nhttps://github.com/Yakifo/amqtt\nhttps://github.com/Yakifo/amqtt/releases/tag/v0.12.1","url":"https://osv.dev/vulnerability/GHSA-wcqj-wx85-c75p","published_at":"2026-11-20T14:54:50Z","updated_at":"2026-11-20T15:00:07.494652Z","fetched_at":"2026-11-21T19:15:55.946087Z","severity":"high","cvss_score":7.5,"epss":0.00623,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"amqtt","vuln_id":"CVE-2026-130176","vuln_ids":["CVE-2026-130176","GHSA-WCQJ-WX85-C75P"],"tags":["osv","pypi","fix-available"],"cluster_id":2027,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10664","html":"https://vulnwatch.ve1ve2.com/item/10664"}},{"id":2304,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-wcqj-wx85-c75p / CVE-2026-130176: aMQTT: Denial of Service (DoS) via Memory Leak in Unmanaged QoS 2 Session Handshakes","summary":"aMQTT: Denial of Service (DoS) via Memory Leak in Unmanaged QoS 2 Session Handshakes\n\n### Impact\n\n`amqtt` is vulnerable to a remote denial of service caused by incomplete MQTT QoS 2 transactions remaining allocated after the associated client disconnects.\n\nMQTT 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.\n\nQoS 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.\n\nAn 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.\n\nSuccessful exploitation can cause:\n\n* Unbounded growth in broker memory usage\n* Accumulation of incomplete QoS 2 transaction state\n* Increasing memory pressure on the host system\n* Termination of the broker process when available memory is exhausted\n* Operating-system Out-Of-Memory (OOM) intervention\n* Complete loss of availability for the affected broker process\n\nExploitation does not require maintaining long-lived connections. An attacker can create incomplete QoS 2 transactions and disconnect, leaving the broker to retain the associated state after the network connection has closed.\n\nUnder the default configuration, anonymous clients can exploit the vulnerability without credentials. When authentication is enabled, any authenticated client permitted to initiate QoS 2 message flows may still be able to exploit it. Authentication alone is therefore not a sufficient mitigation.\n\n* Ecosystem: `pip`\n* Package: `amqtt`\n* Affected versions: `>= 0.11.0, <= 0.12.0`\n\nThe vulnerable code is present in the v0.11.0 release commit, 352678c87e50e501a8a5bb91fab73c9400fa046c, and remained present on the main branch as of 5ebbf366f6b79ab12a06f426ffd18ff28954e4ea. Versions before 0.11.0 were not evaluated.\n\nThis is a denial-of-service vulnerability only. No confidentiality or integrity impact has been identified. Successful exploitation causes degradation and eventual loss of availability through memory exhaustion.\n\n### Patches\n\nThe issue will be been patched in the `v0.12.1` released version; all users should upgrade.\n\nThe completed fix:\n\n* Apply transaction expiration handling consistently to incomplete QoS 1 and QoS 2 message flows\n* Expire abandoned QoS 2 state when the associated transaction does not complete within the configured timeout\n* Release the associated message state and packet identifiers when the transaction expires\n* Prevent disconnected clients from leaving incomplete QoS 2 transactions resident in broker memory indefinitely\n\nThe fixing commit is [`2755fd801a6f95e9b73e11116948b57a95348466`](https://github.com/Yakifo/amqtt/commit/2755fd801a\n\nAffected packages: pip:amqtt\nPatched: amqtt 0.12.1","url":"https://github.com/advisories/GHSA-wcqj-wx85-c75p","published_at":"2026-11-20T14:54:50Z","updated_at":"2026-11-20T14:54:52Z","fetched_at":"2026-11-21T19:15:18.416735Z","severity":"high","cvss_score":7.5,"epss":0.00623,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"amqtt","vuln_id":"CVE-2026-130176","vuln_ids":["CVE-2026-130176","GHSA-WCQJ-WX85-C75P"],"tags":["ghsa","pip","CWE-401","CWE-772"],"cluster_id":2027,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2304","html":"https://vulnwatch.ve1ve2.com/item/2304"}},{"id":9118,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-130176: 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…","summary":"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.\n\nReferences:\nhttps://github.com/Yakifo/amqtt/commit/2755fd801a6f95e9b73e11116948b57a95348466\nhttps://github.com/Yakifo/amqtt/commit/64a6f8c3ebc47640f2e092885c1d504c8f34f1af\nhttps://github.com/Yakifo/amqtt/pull/404\nhttps://github.com/Yakifo/amqtt/releases/tag/v0.12.1\nhttps://github.com/Yakifo/amqtt/security/advisories/GHSA-wcqj-wx85-c75p","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-130176","published_at":"2026-11-19T20:17:28.477000Z","updated_at":"2026-11-20T17:18:09.357000Z","fetched_at":"2026-11-21T19:15:31.484756Z","severity":"high","cvss_score":7.5,"epss":0.00623,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-130176","vuln_ids":["CVE-2026-130176","GHSA-WCQJ-WX85-C75P"],"tags":["CWE-401","CWE-772"],"cluster_id":2028,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/9118","html":"https://vulnwatch.ve1ve2.com/item/9118"}}]}