ZeroHour

CVE-2024-10525

PoC mass

Out-of-bounds write in Eclipse Mosquitto client (libmosquitto) via crafted SUBACK

CVSS 4.0
7.2 high
EPSS
59%p99
Published
()
Modified
AI analysis

A heap-based out-of-bounds memory-access flaw (CWE-122/CWE-787) exists in Eclipse Mosquitto's client library libmosquitto in versions 1.3.2 through 2.0.18. When an MQTT client built on libmosquitto — including the bundled mosquitto_sub and mosquitto_rr command-line tools — connects to a malicious or compromised broker that responds with a crafted SUBACK packet containing no reason codes, the on_subscribe callback can access memory out of bounds. An attacker who controls the broker a client connects to could corrupt client memory or crash it, with the CVSS 4.0 score of 7.2 (High) indicating potentially high integrity and availability impact but only low confidentiality impact. Only client-side deployments are affected — scripts and applications using libmosquitto, mosquitto_sub, or mosquitto_rr — while the Mosquitto broker process itself is not vulnerable. There is no confirmed in-the-wild exploitation (not in CISA KEV), but one public proof of concept exists, and EPSS ranks the flaw in the 99th percentile with roughly a 59% probability of exploitation within 30 days.

What to do: Upgrade all Mosquitto client components (libmosquitto, mosquitto_sub, mosquitto_rr) to a release newer than 2.0.18 (2.0.19 or later), and rebuild or update any application or device firmware that statically links libmosquitto, checking distro repositories for patched backports. Until patched, restrict clients to trusted brokers and enforce TLS with certificate validation so an attacker cannot impersonate the broker. Note that Mosquitto broker hosts are not themselves vulnerable, so prioritize inventorying MQTT client software rather than broker deployments.

Affected
Eclipse Mosquitto (client side: libmosquitto library and the mosquitto_sub / mosquitto_rr clients)1.3.2 through 2.0.18
Estimated exposure
mass≈1M+ installations of libmosquitto / Mosquitto client tools worldwide — Mosquitto's client library and CLI tools ship in the 'mosquitto-clients' packages of all major Linux distributions and are widely embedded in IoT and telemetry tooling, implying an installed base above one million — although only clients…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

In Eclipse Mosquitto, from version 1.3.2 through 2.0.18, if a malicious broker sends a crafted SUBACK packet with no reason codes, a client using libmosquitto may make out of bounds memory access when acting in its on_subscribe callback. This affects the mosquitto_sub and mosquitto_rr clients.

Vendors
eclipse
Products
mosquitto
Weakness
CWE-122, CWE-787
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.