CVE Vulnerabilities

CVE-2024-3935

Double Free

Published: Oct 30, 2024 | Modified: Nov 03, 2025
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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

The product calls free() twice on the same memory address.

Affected Software

NameVendorStart VersionEnd Version
MosquittoEclipse2.0.0 (including)2.0.19 (excluding)
MosquittoUbuntuesm-apps/jammy*
MosquittoUbuntuesm-apps/noble*
MosquittoUbuntujammy*
MosquittoUbuntunoble*
MosquittoUbuntuoracular*
MosquittoUbuntutrusty/esm*
MosquittoUbuntuupstream*

Potential Mitigations

References