Double Free in Eclipse Mosquitto 2.0.0-2.0.18 via topic remapping on bridge
CVE-2024-3935 Published on October 30, 2024
Eclipse Mosquito: Double free vulnerability
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 Type
What is a Double-free Vulnerability?
The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations. When a program calls free() twice with the same argument, the program's memory management data structures become corrupted. This corruption can cause the program to crash or, in some circumstances, cause two later calls to malloc() to return the same pointer. If malloc() returns the same value twice and the program later gives the attacker control over the data that is written into this doubly-allocated memory, the program becomes vulnerable to a buffer overflow attack.
CVE-2024-3935 has been classified to as a Double-free vulnerability or weakness.
Products Associated with CVE-2024-3935
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2024-3935 are published in these products:
Affected Versions
Eclipse Foundation mosquitto:- Version 2.0.0, <= 2.0.18 is affected.
- Version 2.0.0 and below 2.0.18 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.