CVE-2026-47276

NULL Pointer Dereference in REST API properties_parse via Malformed user_properties

Published Jul 20, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
First Time appeared Nanomq
Nanomq nanomq
Vendors & Products Nanomq
Nanomq nanomq
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 20, 2026, 5:41 PM
Reserved
May 18, 2026, 11:03 PM
Status
Deferred
Published
Jul 20, 2026, 5:17 PM
Modified
Jul 23, 2026, 4:04 PM