CVE-2026-54412

Source
https://cve.org/CVERecord?id=CVE-2026-54412
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54412.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-54412
Published
2026-06-14T17:26:36.740Z
Modified
2026-07-08T08:14:06.405194415Z
Severity
  • 7.8 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/AU:Y/V:D CVSS Calculator
Summary
[none]
Details

LiamBindle MQTT-C through version 1.1.6 contains a heap-based out-of-bounds read and integer underflow in the mqttunpackpublishresponse() function in src/mqtt.c that allows a remote unauthenticated attacker controlling an MQTT broker - or able to inject MQTT traffic into an unencrypted session - to crash a subscribed MQTT-C client and potentially disclose adjacent heap memory by sending a single crafted PUBLISH packet. The function validates only that the fixed-header remaininglength is at least 4, then reads the 16-bit topicnamesize field from the broker-controlled packet and advances the parse pointer by that value without verifying that topicnamesize plus the surrounding overhead fits within remaininglength; it subsequently computes applicationmessagesize as remaininglength - topicnamesize - 2 (QoS 0) or - 4 (QoS greater than 0) in unsigned arithmetic, producing an integer underflow that is then passed to memmove(). A PUBLISH packet with topicnamesize = 0xFFFF and remaininglength = 7 advances the parse pointer 65535 bytes past the receive buffer (out-of-bounds read) and causes an applicationmessage_size near 2^32, crashing the process when the resulting memmove() is executed.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54412.json",
    "cwe_ids": [
        "CWE-125",
        "CWE-191"
    ],
    "cna_assigner": "TuranSec"
}
References

Affected packages

Git / github.com/liambindle/mqtt-c

Affected ranges

Type
GIT
Repo
https://github.com/liambindle/mqtt-c
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "DESCRIPTION"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "1.1.6"
        },
        {
            "fixed": "1.1.6"
        }
    ]
}

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.0.3
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
v1.*
v1.0.0
v1.0.1
v1.0.2
v1.0.3
v1.1.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54412.json"