Skip to content
Threat Feed
low advisory

Eclipse Mosquitto: mosquitto_ctrl denial-of-service (CVE-2026-126706)

A null-pointer dereference in the Eclipse Mosquitto mosquitto_ctrl utility allows a malicious broker to crash the client tool via a crafted JSON $CONTROL reply.

CVE search metadata

CVE search record: CVE-2026-126706. Severity: high. CVSS: 7.5. EPSS: 0.21%. KEV: no. Product: Eclipse Mosquitto. Brief: Eclipse Mosquitto: mosquitto_ctrl denial-of-service (CVE-2026-126706). Brief link: https://feed.craftedsignal.io/briefs/2026-11-mosquitto-ctrl-dos-cve-2026-126706/

Triage facts

Revision 1
Applicability
Eclipse Mosquitto
Evidence
Unknown
Severity
Low
Sources
2 public sources
Freshness
Revision 1Nov 20, 00:01 UTC
Vulnerabilities
1 CVE
Source quality
A2Roughly even chance

Overview

Eclipse Mosquitto versions 2.1.0 through 2.1.2 and the current development branch (commit 6aaba326) contain a null-pointer dereference (CWE-476) in the mosquitto_ctrl utility. The vulnerability is located in apps/mosquitto_ctrl/ctrl_shell.c within the ctrl_shell__on_message() function. When the utility processes a $CONTROL PUBLISH response from a broker, it fails to validate the data type of the "error" field. If a broker sends a non-string value, the code attempts to access valuestring on a structure that does not contain one, resulting in a NULL pointer dereference and a crash of the mosquitto_ctrl process.

Attack Chain

An attacker controlling a malicious MQTT broker or performing a man-in-the-middle attack on an unencrypted or unauthenticated connection can trigger the vulnerability by sending a crafted $CONTROL PUBLISH packet with a non-string "error" field.

Impact

This vulnerability results in a client-side denial of service, preventing the operator from further administrative interaction with the broker via the mosquitto_ctrl utility.

Recommendation

  1. Only use mosquitto_ctrl to connect to trusted brokers.
  2. Enforce the use of TLS with strict certificate verification (using --cafile, --cert, and --key flags) to prevent man-in-the-middle injection.
  3. Apply the provided patch to apps/mosquitto_ctrl/ctrl_shell.c to include null-checks for the valuestring property before calling strcmp.