Skip to main content

tinyMQTT EUVDEUVD-2025-209887

| CVE-2025-56352 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-05-18 mitre GHSA-m5jh-ppcv-76xr
7.5
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Reach broker MQTT port
  2. Delivery
    Send CONNECT with empty ClientID, CleanSession=0
  3. Exploit
    Broker replies CONNACK 0x02 but leaks socket
  4. Execution
    Loop invalid CONNECTs to accumulate FDs/memory
  5. Impact
    Resource 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

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

n/a n/a

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

Vendor (mitre) 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

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.

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 (mitre).

CVSS VectorVendor: mitre

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

Lifecycle Timeline

2
CVE Published
May 18, 2026 - 00:00 cve.org
HIGH 7.5
CVE Published
May 18, 2026 - 00:00 nvd
UNKNOWN (no severity yet)

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 84% exploitable
Prevalence
Rare
individual developer's hobby MQTT broker on GitHub, negligible production footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.1%
Patch available No
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
Out-of-Cycle
Exploitation
Poc
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.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

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