CVE-2025-56353

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

High · published January 20, 2026

CVSS v3.1
7.5
EPSS
0%
Percentile
25.6
In the wild
Unconfirmed
What it is

⚡ A memory leak lurking in tinyMQTT could turn your broker into a virtual sponge! 🌊 Think of the broker as a restaurant that keeps accepting orders for the same dish but never serves them, leading to a mountain of unfulfilled plates piling up in the back kitchen. Each invalid subscription request is like another order—each one adds to the chaos without ever being cleared away. An attacker can exploit this memory leak by bombarding the broker with malformed topic filters, causing the server's memory to swell uncontrollably. This relentless assault could lead to a denial of service, effectively choking the broker and rendering it unable to process legitimate requests. Your service could grind to a halt under the weight of wasted memory!

Put simply

Think of the broker as a restaurant that keeps accepting orders for the same dish but never serves them, leading to a mountain of unfulfilled plates piling up in the back kitchen. Each invalid subscription request is like another order—each one adds to the chaos without ever being cleared away. This vulnerability arises from the broker's failure to validate or reject malformed UTF-8 strings in topic filters, resulting in unbounded memory allocation without proper deallocation during repeated subscription requests.

What to do

An attacker can exploit this memory leak by bombarding the broker with malformed topic filters, causing the server's memory to swell uncontrollably. This relentless assault could lead to a denial of service, effectively choking the broker and rendering it unable to process legitimate requests. Your service could grind to a halt under the weight of wasted memory! To remediate this issue, update tinyMQTT to the latest version that addresses this memory leak. Also, implement input validation to ensure that malformed topic filters are rejected before memory is allocated. Regularly monitor memory usage to catch any anomalies early. You've got this! Take these steps, and you'll be a security hero in no time! 🦸

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00334 · 25.6th percentile
Published
2026-01-20T00:00Z
EPSS history
Timeline
  • 20 JAN 00:00Z
    In tinyMQTT commit 6226ade15bd4f97be2d196352e64dd10937c1962 (2024-02-18), a memory leak occurs due to the broker's failure to validate or reject malformed…
    cvelistv5