All reports
High

mosquitto: heap buffer overflow in my_subscribe_callback

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-10525

Probability of exploitation in the next 30 days: 59.22%

FIRST EPSS · 2026-11-20

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.

A flaw was found in Eclipse Mosquitto. If a malicious broker sends a specially crafted packet, it may trigger a buffer overflow condition in a client using libmosquitto. This issue can lead to an application crash or, in some circumstances, arbitrary code execution.