CVE-2026-54412
published high CVSS 4.0 · 7.8MQTT-C Heap Out-of-Bounds Read and Integer Underflow in mqtt_unpack_publish_response()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| LiamBindle | — | MQTT-C0 to < 1.1.7 (affected · semver) · 1.1.7 (unaffected · semver) · Other versions: unknown | Version-specific | Not stated | TuranSec |
Description
LiamBindle MQTT-C versions prior to 1.1.7 contain a heap-based out-of-bounds read and integer underflow in the mqtt_unpack_publish_response() function in src/mqtt.c. A remote unauthenticated attacker controlling an MQTT broker, or capable of injecting MQTT traffic into an unencrypted session, can crash a subscribed MQTT-C client and potentially disclose adjacent heap memory by sending a single crafted PUBLISH packet.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- TuranSec · cna
- Vector string
- 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
- Scenarios
- en: A malicious MQTT broker, or a network attacker capable of injecting a single MQTT PUBLISH packet into an unencrypted session to which the victim client has subscribed, sends a crafted packet with topic_name_size = 0xFFFF and remaining_length = 7 to crash an MQTT-C-based client process and potentially disclose adjacent heap bytes.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.2 | high | TuranSec · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| LiamBindle | MQTT-C | 0 to < 1.1.7 (affected · semver)1.1.7 (unaffected · semver)Default: unknown | TuranSec · cna |
Weaknesses
2- CWE-125 CWE-125 Out-of-bounds Read
- CWE-191 CWE-191 Integer Underflow (Wrap or Wraparound)
References
6- CWE-125: Out-of-bounds Read https://cwe.mitre.org/data/definitions/125.html
- CWE-191: Integer Underflow (Wrap or Wraparound) https://cwe.mitre.org/data/definitions/191.html
- LiamBindle/MQTT-C upstream repository https://github.com/LiamBindle/MQTT-C
- Vulnerable mqtt_unpack_publish_response() in src/mqtt.c (v1.1.6) https://github.com/LiamBindle/MQTT-C/blob/v1.1.6/src/mqtt.c#L1334
- Fix out-of-bounds read and integer underflow in PUBLISH parsing https://github.com/LiamBindle/MQTT-C/pull/208
- MQTT-C v1.1.7 release https://github.com/LiamBindle/MQTT-C/releases/tag/v1.1.7
Provider assertions
2TuranSec · cna
MQTT-C Heap Out-of-Bounds Read and Integer Underflow in mqtt_unpack_publish_response()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3d0b2f6940029b95ba79808f6d2aeb85bd664cf24d6c32daa1c7793347fa637e
- Ingested
- 05 Nov 2026, 12:47:25 UTC
- Source record
- Official CVE record