CVE-2024-3935 Eclipse Mosquito: Double free vulnerability
A remote attacker can crash the MQTT broker by sending a crafted packet when bridge topic remapping is enabled.
- 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-3935?
CVE-2024-3935 is a medium-severity use after free 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 Mosquito, versions from 2.0.0 through 2.0.18, if a Mosquitto broker is configured to create an outgoing bridge connection, and that bridge connection has an incoming topic configured that makes use of topic remapping, then if the remote connection sends a crafted PUBLISH packet to the broker a double free will occur with a subsequent crash of the broker.
Weakness: CWE-415
Which versions are affected by CVE-2024-3935?
It affects 1 product.
Linux distribution packages (1)
mosquitto openSUSE:Tumbleweed | All versions | 2.0.21-2.1 |
Products include Eclipse Mosquitto.
How do I fix CVE-2024-3935?
Upgrade to a fixed version.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-3935 being exploited?
There is no known exploitation of CVE-2024-3935 in the wild and no public exploit code.
Other vulnerabilities in Eclipse Foundation mosquitto
Sources
Also known as DEBIAN-CVE-2024-3935, GHSA-r5mw-c5jc-r788, ROOT-OS-ALPINE-318-CVE-2024-3935, ROOT-OS-ALPINE-319-CVE-2024-3935, ROOT-OS-ALPINE-320-CVE-2024-3935, UBUNTU-CVE-2024-3935 and 1 more.