CVE-2016-10523: Denial of Service in mqtt-packet
5
CVSS Score
Basic Information
CVE ID
GHSA ID
EPSS Score
0.58509%
CWE
Published
2/18/2019
Updated
1/9/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
AV:N/AC:L/Au:N/C:N/I:N/A:P
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
mqtt-packet | npm | < 3.4.6 | 3.4.6 |
mqtt-packet | npm | >= 4.0.0, < 4.0.5 | 4.0.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability manifests in packet parsing logic where invalid inputs trigger unhandled exceptions or buffer overreads. Key vulnerable functions identified through patch analysis:
- parse() - Top-level parsing loop lacked error handling
- _parseConnect() - Missing protocol validation checks
- _parseString() - Insufficient buffer bounds checking
- _parseConnack() - Missing buffer length validation
- _parseNum() - Incorrect buffer space check These functions directly process packet fields and were modified in security patches to add validation checks. During exploitation, malicious packets would flow through these parsing functions before triggering crashes, making them visible in runtime profiles.