Impact
MQTT‑C versions up to 1.1.6 contain a heap‑based out‑of‑bounds read and integer underflow in the mqtt_unpack_publish_response() function. An unauthenticated remote attacker who controls an MQTT broker or can inject traffic into an unencrypted session can send a single crafted PUBLISH packet that triggers a crash in the subscribed client and may expose adjacent heap memory. The flaw arises when the function processes the topic_name_size field without checking that it fits within the remaining packet length, leading to a large over‑read and potential information disclosure.
Affected Systems
Vendors: LiamBindle. Product: MQTT‑C. Affected versions: 1.1.6 and earlier.
Risk and Exploitability
CVSS score 7.8 indicates high severity. The EPSS score is approximately 0.4%, indicating a very low probability of exploitation, but the vulnerability can still be trivially exercised by sending a single malformed PUBLISH packet from a compromised or malicious broker, or by injecting traffic into an unencrypted MQTT session. Because the flaw is remote and does not require authentication, any subscriber to the broker could be affected. The vulnerability is not yet listed in CISA’s KEV catalog, but the nature of the bug suggests that exploitation would be straightforward and could be automated by a broker administrator or attacker with network visibility.
OpenCVE Enrichment