CVE-2024-10525CWE-122

Eclipse Mosquito: Heap Buffer Overflow in my_subscribe_callback

High · published October 30, 2024

Patch now

High probability of exploitation

CVSS calls it high at 7.2. It sits in the 99.1th percentile for exploit probability.

CVSS v4.0
7.2
EPSS
59%
Percentile
99.1
In the wild
Unconfirmed
What it is

⚡ A rogue broker can trigger chaos! A crafted SUBACK packet without reason codes may lead to out-of-bounds memory access in libmosquitto clients like mosquitto_sub and mosquitto_rr. 🔥 Think of it like a waiter at a restaurant delivering an order without checking the items — it could lead to a customer receiving something completely unexpected, causing confusion and potentially chaos in the kitchen! An attacker who manages to send this crafted message can cause serious instability in the client application, which may result in crashes or unexpected behavior. This could disrupt services or lead to data loss, creating a frustrating situation for users and developers alike.

Put simply

Think of it like a waiter at a restaurant delivering an order without checking the items — it could lead to a customer receiving something completely unexpected, causing confusion and potentially chaos in the kitchen! CVE-2024-10525 is a vulnerability in Eclipse Mosquitto (versions 1.3.2 to 2.0.18) where a malformed SUBACK packet lacking reason codes can lead to out-of-bounds memory access in clients using libmosquitto during subscription callbacks. This flaw primarily impacts the mosquitto_sub and mosquitto_rr clients.

What to do

An attacker who manages to send this crafted message can cause serious instability in the client application, which may result in crashes or unexpected behavior. This could disrupt services or lead to data loss, creating a frustrating situation for users and developers alike. To mitigate this vulnerability, upgrade to Eclipse Mosquitto version 2.0.19 or later. Additionally, consider implementing validation checks on incoming packets to prevent such malicious payloads in the future. You've got this! By taking these steps, you'll enhance your security posture and keep your applications running smoothly. 🛡️

The record
Technical detail
CVSS v4.0
7.2 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.59222 · 99.1th percentile
Weakness
CWE-122 · Heap-based Buffer Overflow
Published
2024-10-30T11:41Z
EPSS history
Timeline
  • 30 OCT 11:41Z
    Eclipse Mosquito: Heap Buffer Overflow in my_subscribe_callback
    cvelistv5