CVE-2025-56353
JSON

7.5high

In tinyMQTT commit 6226ade15bd4f97be2d196352e64dd10937c1962 (2024-02-18), a memory leak occurs due to the broker's failure to validate or r…

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.33% (higher than 28% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre

Description

In tinyMQTT commit 6226ade15bd4f97be2d196352e64dd10937c1962 (2024-02-18), a memory leak occurs due to the broker's failure to validate or reject malformed UTF-8 strings in topic filters. An attacker can exploit this by sending repeated subscription requests with arbitrarily large or invalid filter payloads. Each request causes memory to be allocated for the malformed topic filter, but the broker does not free the associated memory, leading to unbounded heap growth and potential denial of service under sustained attack.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
justdoit0910 tinymqtt2024-02-18NVD

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

In tinyMQTT commit 6226ade15bd4f97be2d196352e64dd10937c1962 (2024-02-18), a memory leak occurs due to the broker's failure to validate or reject malformed UTF-8 strings in topic filters. An attacker can exploit this by sending repeated subscription requests with arbitrarily large or invalid filter payloads. Each request causes memory to be allocated for the malformed topic filter, but the broker does not free the associated memory, leading to unbounded heap growth and potential denial of service under sustained attack.

NVD (es)

En el commit 6226ade15bd4f97be2d196352e64dd10937c1962 (18-02-2024) de tinyMQTT, se produce una fuga de memoria debido a que el bróker no valida ni rechaza cadenas UTF-8 mal formadas en los filtros de temas. Un atacante puede explotar esto enviando solicitudes de suscripción repetidas con cargas útiles de filtro arbitrariamente grandes o inválidas. Cada solicitud provoca que se asigne memoria para el filtro de tema mal formado, pero el bróker no libera la memoria asociada, lo que lleva a un crecimiento ilimitado del heap y a una posible denegación de servicio bajo un ataque sostenido.

References

https://github.com/JustDoIt0910/tinyMQTT/issues/19exploit, issue-tracking, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2025-56353 changed 2026-01-21CVE Terms of Use
NVDCVE-2025-56353 changed 2026-06-17Public domain