CVE-2024-10525 Eclipse Mosquito: Heap Buffer Overflow in my_subscribe_callback
A malicious MQTT broker can trigger a heap buffer overflow in libmosquitto clients via crafted SUBACK packets, potentially leading to code execution or crashes.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-10525?
CVE-2024-10525 is a high-severity memory corruption vulnerability in Eclipse Foundation mosquitto, published on 30 Oct 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2024-10525?
It affects 1 product.
Products include Eclipse Mosquitto.
How do I fix CVE-2024-10525?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-10525 being exploited?
There is no known exploitation of CVE-2024-10525 in the wild and no public exploit code.
Other vulnerabilities in Eclipse Foundation mosquitto
Sources
Also known as BELL-CVE-2024-10525, DEBIAN-CVE-2024-10525, GHSA-cm54-mprw-5279, ROOT-OS-ALPINE-318-CVE-2024-10525, ROOT-OS-ALPINE-320-CVE-2024-10525, UBUNTU-CVE-2024-10525.