CVE-2024-31040
CVE-2024-31040 is a low-severity vulnerability in Emqx Nanomq with a CVSS 3.x base score of 2.7. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-120.
Key facts
- Severity: Low (CVSS 3.x base score 2.7)
- EPSS exploit prediction: 1% (43rd percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-28957
- Weakness: CWE-120
- Affected product: Emqx Nanomq
- Published:
- Last modified:
Description
Buffer Overflow vulnerability in the get_var_integer function in mqtt_parser.c in NanoMQ 0.21.7 allows remote attackers to cause a denial of service via a series of specially crafted hexstreams.
Frequently asked questions
- What is CVE-2024-31040?
- Buffer Overflow vulnerability in the get_var_integer function in mqtt_parser.c in NanoMQ 0.21.7 allows remote attackers to cause a denial of service via a series of specially crafted hexstreams.
- How severe is CVE-2024-31040?
- CVE-2024-31040 has a CVSS 3.x base score of 2.7, rated low severity. It is exploitable over network with low attack complexity, requires high privileges and no user interaction. Impact on confidentiality is none, integrity none, and availability low.
- Is CVE-2024-31040 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (43rd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-31040?
- CVE-2024-31040 affects Emqx Nanomq. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-31040?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2024-31040 have an EU (EUVD) identifier?
- Yes. CVE-2024-31040 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-28957.
- When was CVE-2024-31040 published?
- CVE-2024-31040 was published on 2024-04-17 and last updated on 2026-06-17.
References
Affected products (1)
- cpe:2.3:a:emqx:nanomq:0.21.7:*:*:*:*:*:*:*
More vulnerabilities in Emqx Nanomq
- CVE-2025-59947 — Critical (CVSS 9.0): NanoMQ is a messaging broker/bus for IoT Edge & SDV. Versions prior to 0.24.4 have a buffer overflow case while the…
- CVE-2024-42655 — High (CVSS 8.8): An access control issue in NanoMQ v0.21.10 allows attackers to bypass security restrictions and access sensitive system…
- CVE-2023-34488 — High (CVSS 7.8): NanoMQ 0.17.5 has a one-byte heap-based buffer over-read in the conn_handler function of mqtt_parser.c when it…
- CVE-2026-32135 — High (CVSS 7.5): NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. Versions prior to 0.24.11 have a remotely…
- CVE-2026-21888 — High (CVSS 7.5): NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. MQTT v5 Variable Byte Integer parsing…
- CVE-2024-48077 — High (CVSS 7.5): NanoMQ v0.22.7 is vulnerable to Denial of Service (DoS) due to improper resource throttling. A crafted sequence of…
All CVEs affecting Emqx Nanomq →
Other CWE-120 (Classic Buffer Overflow) vulnerabilities
- CVE-2025-48611 — Critical (CVSS 10.0): In DeviceId of DeviceId.java, there is a possible desync in persistence due to a missing bounds check. This could lead…
- CVE-2026-24823 — Critical (CVSS 10.0): Out-of-bounds Write, Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') vulnerability in FASTSHIFT…
- CVE-2026-24810 — Critical (CVSS 10.0): Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') vulnerability in rethinkdb (src/cjson modules).…
- CVE-2026-24800 — Critical (CVSS 10.0): Out-of-bounds Write, Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') vulnerability in tildearrow…
- CVE-2025-9962 — Critical (CVSS 10.0): A buffer overflow vulnerability in Novakon P series allows attackers to gain root permission without prior…
- CVE-2010-10016 — Critical (CVSS 10.0): BS.Player version 2.57 (build 1051) contains a vulnerability in its playlist import functionality. When processing .m3u…
Browse all CWE-120 (Classic Buffer Overflow) vulnerabilities →