Description
In nanomq versions 0.24.11 and earlier, a NULL pointer dereference in `properties_parse()` allows an authenticated attacker to crash the NanoMQ broker by sending a POST request to `/api/v4/mqtt/publish` with `user_properties` as a JSON array instead of a JSON object. The crash occurs because `strlen()` is called on a NULL `item->string` pointer when iterating over array elements. An authenticated attacker can exploit this to crash the NanoMQ broker process. This is patched in version 0.24.14.
Published: 2026-07-20
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw is a NULL pointer dereference in the NanoMQ function properties_parse. When a client sends a POST request to /api/v4/mqtt/publish with the field user_properties set as a JSON array instead of the expected JSON object, the code calls strlen on a NULL pointer within an array element, causing the broker to crash. This is a classic NULL pointer dereference that simply terminates the process.

Affected Systems

NanoMQ versions 0.24.11 and earlier are vulnerable; the issue is fixed in version 0.24.14. No other products are known to be affected.

Risk and Exploitability

The CVSS score of 6.5 indicates a moderate impact. The EPSS score of <1% indicates a very low likelihood of exploitation. The attack requires an authenticated session to the broker, meaning it limited to users with valid credentials. An attacker can induce a denial‑of‑service condition by sending a crafted request, but cannot gain code execution or data exfiltration. The vulnerability is not listed in CISA KEV. Ideally, the broker should be patched or the input should be validated to prevent the crash.

Generated by OpenCVE AI on July 30, 2026 at 18:58 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade NanoMQ to version 0.24.14 or later
  • Implement strict validation to reject JSON arrays for the user_properties field before processing
  • Configure network or API gateway to block malformed POST requests to /api/v4/mqtt/publish

Generated by OpenCVE AI on July 30, 2026 at 18:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 20 Jul 2026 23:30:00 +0000

Type Values Removed Values Added
First Time appeared Nanomq
Nanomq nanomq
Vendors & Products Nanomq
Nanomq nanomq

Mon, 20 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 20 Jul 2026 17:15:00 +0000

Type Values Removed Values Added
Description In nanomq versions 0.24.11 and earlier, a NULL pointer dereference in `properties_parse()` allows an authenticated attacker to crash the NanoMQ broker by sending a POST request to `/api/v4/mqtt/publish` with `user_properties` as a JSON array instead of a JSON object. The crash occurs because `strlen()` is called on a NULL `item->string` pointer when iterating over array elements. An authenticated attacker can exploit this to crash the NanoMQ broker process. This is patched in version 0.24.14.
Title NULL Pointer Dereference in REST API properties_parse via Malformed user_properties
Weaknesses CWE-476
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-20T17:41:06.753Z

Reserved: 2026-05-18T23:03:37.230Z

Link: CVE-2026-47276

cve-icon Vulnrichment

Updated: 2026-07-20T17:41:02.308Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T19:00:09Z

Weaknesses