CVE-2025-56352: tinyMQTT - Denial of Service
- Cve: CVE-2025-56352
- Name: tinyMQTT - Denial of Service
- Description: 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.
- Impact: Remote attackers can exhaust server resources by leaving sockets open, causing denial of service.
- Remediation: Update to the latest version containing the fix.
- Vulnerability type: denial_of_service
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- 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
- Epss score: 0.00278
- Epss percentile: 0.20554
- Assignee: [email protected]
- Published at: 2026-05-18T16:16:29Z
- Age in days: 190
- Modified at: 2026-11-04T20:10:00Z
- References total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-56352
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-400 | Uncontrolled Resource Consumption |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/JustDoIt0910/tinyMQTT/issues/19 | nvd | |
| https://github.com/user-attachments/files/21207896/Resource_Exhaustion_Poc.txt | nvd |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| JustDoIt0910/tinyMQTT | issues | yes | /v1/repositories/JustDoIt0910/tinyMQTT |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts