CVE-2024-8376 is a memory-safety flaw in the Eclipse Mosquitto MQTT broker: specific sequences of CONNECT, DISCONNECT, SUBSCRIBE, UNSUBSCRIBE and PUBLISH packets cause a memory leak, a crash or a heap use-after-free. NVD scores it 7.5 for Mosquitto up to 2.0.18a, version 2.0.19 fixes it, and CERT@VDE lists ADS-TEC IRF industrial firewalls.
Vulnerability summary
CVSS base score
7.5
High severity
EPSS score (FIRST)
0.7%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2024-8376 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| Eclipse Mosquitto broker | cpe:2.3:a:eclipse:mosquitto:*:*:*:*:*:*:*:* | up to 2.0.18a (NVD CPE: before 2.0.19); fixed in 2.0.19 (2 October 2024) |
| ADS-TEC IRF1000 industrial firewalls (DVG-IRF1401, DVG-IRF1421) | — | firmware before 2.1.0; fixed in 2.1.0 (CERT@VDE VDE-2025-033) |
| ADS-TEC IRF2000 industrial firewalls (DVG-IRF2100, DVG-IRF2200, DVG-IRF2220, DVG-IRF2601, DVG-IRF2621) | — | firmware before 6.1.0; fixed in 6.1.0 (CERT@VDE VDE-2025-033) |
| ADS-TEC IRF3000 industrial firewalls (DVG-IRF3401, DVG-IRF3421, DVG-IRF3801, DVG-IRF3821) | — | firmware before 2.1.0; fixed in 2.1.0 (CERT@VDE VDE-2025-033) |
What does this mean for affected devices?
NVD's description of CVE-2024-8376 says that "in Eclipse Mosquitto up to version 2.0.18a, an attacker can achieve memory leaking, segmentation fault or heap-use-after-free by sending specific sequences of 'CONNECT', 'DISCONNECT', 'SUBSCRIBE', 'UNSUBSCRIBE' and 'PUBLISH' packets". NVD scores it 7.5 (high), vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, and maps it to CWE-401; Eclipse, the assigning CNA, gives a CVSS v4.0 score of 7.2 (NVD).
The fix is commit 1914b3e, "Use separate trees for shared/normal subs". The 2.0.19 release notes describe it as "Fix mismatched subscribe/unsubscribe with normal/shared topics": the bug sits where ordinary and shared subscriptions to the same topic are added and removed. The same release fixed the client-side CVE-2024-10525 and the bridge double free CVE-2024-3935.
CERT@VDE advisory VDE-2025-033, published 14 April 2025, lists this CVE for ADS-TEC IRF1000 and IRF3000 firewalls before firmware 2.1.0 and IRF2000 firewalls before 6.1.0, eleven DVG-IRF models in total. ADS-TEC rescores it to 5.9 (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H) because "attacks on the product must be carried out via the MQTT server", and recommends connecting only to trusted, TLS-secured brokers until the update is installed.
For a broker on a gateway, the exposure is any client that can open an MQTT session. Requiring client certificates and allow_anonymous false, as our MQTT protocol security guide recommends, limits who can send the packet sequence; it does not remove the bug. The Sparkplug B security guide lists the same Mosquitto records for OT brokers.
Debian fixed it in bookworm 2.0.11-1.2+deb12u2 and left bullseye unfixed as a "minor issue, too intrusive to backport" (Debian Security Tracker).
CVE-2024-8376 is not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13), and FIRST EPSS gives it 0.0075, the 56th percentile, in the 2026-11-16 dataset (CISA KEV, FIRST EPSS).
To fix it, update ADS-TEC IRF devices to firmware 2.1.0 (IRF1000, IRF3000) or 6.1.0 (IRF2000), and ship Mosquitto 2.0.19 or later in your own images. Our memory corruption fix guide covers use-after-free bugs as a class.
Evidence
- Memory leak, segfault or heap use-after-free from crafted CONNECT/DISCONNECT/SUBSCRIBE/UNSUBSCRIBE/PUBLISH sequences in Mosquitto up to 2.0.18a; NVD CVSS 3.1 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H), CWE-401; Eclipse CVSS 4.0 7.2. — NVD
- Mosquitto 2.0.19 (2 October 2024) fixes mismatched subscribe/unsubscribe with normal/shared topics (commit 1914b3e). — Eclipse Mosquitto
- ADS-TEC IRF1000/IRF3000 before 2.1.0 and IRF2000 before 6.1.0 affected; product-context score 5.9. — CERT@VDE VDE-2025-033
- Debian fixed bookworm 2.0.11-1.2+deb12u2; bullseye ignored as a minor issue, too intrusive to backport. — Debian Security Tracker
- Not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). — CISA KEV
- EPSS 0.00749 (56th percentile), dataset 2026-11-16, read 2026-11-17. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Which Mosquitto versions are affected by CVE-2024-8376?
Mosquitto up to 2.0.18a. Version 2.0.19, released 2 October 2024, fixes it (per NVD and the Mosquitto 2.0.19 release notes).
Which devices are affected by CVE-2024-8376?
CERT@VDE VDE-2025-033 lists ADS-TEC IRF1000 and IRF3000 firewalls before firmware 2.1.0 and IRF2000 firewalls before 6.1.0. The fix is to install those firmware versions (per CERT@VDE).
Does broker authentication stop CVE-2024-8376?
It narrows it. The packets have to come from a client that can open a session, so client certificates and disabled anonymous access limit who can send them. Only Mosquitto 2.0.19 or later removes the bug (per NVD and the Mosquitto 2.0.19 release notes).
Is CVE-2024-8376 in the CISA KEV catalog?
No, not as of 2026-11-17 (catalog version 2026.11.13). FIRST EPSS gives it 0.0075, the 56th percentile, in the 2026-11-16 dataset (per CISA KEV and FIRST EPSS).
Questions about this page?