Skip to main content
VulnerabilityPublished Updated

CVE-2024-31036: nanomq · A Heap-buffer-overflow

Affects nanomqSource CVE Database V5

0

Not known to be exploited · CVSS 6.8 Medium.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 3.1 base score
6.8Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 25% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 22 Apr 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
GitHubnanomq/nanomqpkg:github/nanomq/nanomqOther threatsAffected
  • =0.21.7
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2024-31036, organizations should first monitor for updates from the NanoMQ project and apply patches as soon as they become available. In the absence of patches, implement strict input validation and filtering on incoming MQTT messages and hexstreams to detect and block malformed or suspicious payloads. Network segmentation can limit exposure by isolating NanoMQ brokers from untrusted networks and restricting access to trusted clients only. Employ runtime protections such as memory safety tools or sandboxing to detect and contain heap overflows. Additionally, configure logging and alerting to identify abnormal crashes or service disruptions promptly. Educate users and administrators about the risk of processing untrusted data streams and enforce policies to minimize user interaction with potentially malicious inputs. Regularly audit and update NanoMQ deployments to ensure they are not running vulnerable versions.

Description

A heap-buffer-overflow vulnerability in the read_byte function in NanoMQ v.0.21.7 allows attackers to cause a denial of service via transmission of crafted hexstreams.

References

Community reviews

Loading reviews…