# CVE-2025-56352: In tinyMQTT commit 6226ade15bd4f97be2d196352e64dd10937c1962 (2024-02-18), the broker mishandles protocol violations during CONNECT packet p…

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 28% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-18T00:00:00.000Z
- Modified: 2026-11-04T20:10:00.263Z
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a

## References

- <https://github.com/user-attachments/files/21207896/Resource_Exhaustion_Poc.txt> (exploit)
- <https://github.com/JustDoIt0910/tinyMQTT/issues/19>

## Sources

- CVE List: [CVE-2025-56352](https://www.cve.org/CVERecord?id=CVE-2025-56352), CVE Terms of Use, modified 2026-05-18
- NVD: [CVE-2025-56352](https://nvd.nist.gov/vuln/detail/CVE-2025-56352), Public domain, modified 2026-11-04

---

Page: https://cve.day/CVE-2025-56352 · Whole record: https://cve.day/CVE-2025-56352.json · Rebuilt by cve.day 2026-11-25T22:59:12.202Z
