Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach broker MQTT port
-
DeliverySend CONNECT with empty ClientID, CleanSession=0
-
ExploitBroker replies CONNACK 0x02 but leaks socket
-
ExecutionLoop invalid CONNECTs to accumulate FDs/memory
-
ImpactResource exhaustion denies service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the ability to open TCP connections to the tinyMQTT broker's MQTT listener and send raw CONNECT packets crafted with a zero-length Client ID combined with CleanSession flag set to 0 - this specific protocol-violating combination is the exact trigger. No authentication, credentials, or user interaction are needed (CVSS PR:N/UI:N), and default configurations are affected since the flaw is in core CONNECT parsing. The primary limiting factor is exposure and prevalence: the attacker must have network access to the broker port, and impact is confined to availability (no data disclosure or code execution). Because tinyMQTT is a niche hobby project, realistic exposure is very small even though the technical prerequisites are minimal. |
| Impact | The signals are internally consistent but point to modest real-world risk. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5 High) accurately reflects an unauthenticated, low-complexity, network-reachable availability-only attack, and SSVC agrees the impact is partial with the attack automatable and PoC-stage exploitation - the repeated identical CONNECT packets are trivially scriptable. However, EPSS is only 0.05% (16th percentile) and there is no KEV listing, which is expected: tinyMQTT is an individual developer's hobby/learning project on GitHub with negligible production deployment, so widespread exploitation is unlikely despite the easy technique. The CVSS score is real but should be read against near-zero prevalence - this is a legitimate availability bug that matters only to the handful of instances actually running this code, not a broad emergency. No confidentiality or integrity impact is claimed or implied, so the blast radius is limited to service uptime of the specific broker instance. |
| Exploit ScenarioDerived | An attacker with network reachability to the broker's MQTT port scripts a loop that opens a TCP connection and sends a CONNECT packet with an empty Client ID and CleanSession=0, then leaves the socket to the broker. Because each rejected connection is never closed server-side, thousands of iterations accumulate leaked file descriptors and memory until the broker can no longer accept connections or crashes. A publicly attached PoC (Resource_Exhaustion_Poc.txt) demonstrates exactly this, and the low attack complexity means it requires only a basic socket script. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 23, 2026
Denial of service in the tinyMQTT broker (commit 6226ade, 2024-02-18) lets remote unauthenticated clients exhaust server resources by repeatedly sending malformed CONNECT packets. When a CONNECT arrives with a zero-length Client ID and CleanSession=0, the broker sends the correct CONNACK 0x02 (Identifier Rejected) but never closes the TCP socket, leaking a file descriptor and memory on every attempt until the process is starved. Publicly available exploit code exists (a resource-exhaustion PoC is attached to the NVD reference), but there is no public exploit identified as used in attacks, EPSS is very low (0.05%), and it is not in CISA KEV.
RemediationAI
No vendor-released patch or tagged version is identified at time of analysis, as tinyMQTT is an unversioned source-only project; track the upstream issue at https://github.com/JustDoIt0910/tinyMQTT/issues/19 for a fix. The concrete code fix is to explicitly close() the client socket and free its connection state immediately after sending CONNACK 0x02 in the CONNECT-handling path, rather than relying on later teardown logic. Until an upstream fix is confirmed, compensating controls include placing the broker behind a reverse proxy or firewall that restricts the MQTT listener (default TCP 1883) to trusted clients only - trade-off: breaks open/public broker use cases; enforcing per-source connection rate limits and OS-level file-descriptor limits (ulimit) so a flood degrades gracefully rather than crashing - trade-off: legitimate high-connection clients may be throttled; and monitoring the broker's open file-descriptor count to alert on leakage. Given the project's hobby status, migrating production workloads to a maintained broker such as Mosquitto or EMQX is the most durable option. Additional third-party analysis is at https://vuldb.com/vuln/364480.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
tinyMQTT is a small C-based MQTT broker implementing the MQTT protocol's connection handshake. The MQTT 3.1.1 specification states that a broker may accept a zero-length Client ID only when CleanSession=1 (assigning a unique ID itself); a zero-length ID with CleanSession=0 is a protocol violation that must be rejected with CONNACK return code 0x02. tinyMQTT rejects it correctly at the protocol level but its connection teardown path does not guarantee the underlying socket is closed after that rejection, so the descriptor and its associated buffers persist. This is a classic CWE-400 (Uncontrolled Resource Consumption) defect rooted in a resource-cleanup/lifecycle bug rather than a memory-corruption flaw. The CPE data is uninformative (cpe:2.3:a:n/a:n/a:*), so affected scope is defined by the referenced GitHub commit rather than a structured product identifier.
Know when N A 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
Unauthenticated network-reachable CONNECT flood with low complexity and no user interaction; impact is availability-only (socket/memory exhaustion), so C:N/I:N/A:H.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.org
In tinyMQTT commit 6226ade15bd4f97be2d196352e64dd10937c1962 (2024-02-18), the broker mishandles protocol violations during CONNECT packet parsing. When receiving a CONNECT packet with a zero-length Client ID while CleanSession is set to 0, the broker correctly replies with a CONNACK return code 0x02 (Identifier Rejected) but fails to explicitly close the TCP connection. Since the surrounding connection teardown logic is not guaranteed to execute, each such invalid CONNECT attempt leaves the underlying socket open. Repeated attempts cause server-side resource exhaustion due to accumulating file descriptors and memory usage, potentially resulting in denial of service.
Executive ViewAI
CVE-2025-56352 affects tinyMQTT message brokers, allowing unauthenticated remote attackers to trigger denial-of-service conditions by exhausting server resources through repeated malformed connection requests. Organizations relying on MQTT infrastructure face service interruptions and recovery delays, with no vendor patch currently available. Immediate inventory and interim containment controls are essential to reduce operational risk while awaiting remediation.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Enforce per-source connection rate limiting to restrict CONNECT attempts; (2) Configure OS-level resource quotas (file descriptors, memory) to prevent process starvation; (3) Implement TCP connection timeouts and aggressive idle connection termination; (4) Apply network access controls to restrict MQTT connections to authorized clients; (5) Deploy resource monitoring on broker processes with automated restart triggers when usage exceeds safe limits.
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.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2025-209887
GHSA-m5jh-ppcv-76xr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB