Improper input validation in Arm Mbed-Mqtt
CVE-2019-17210
- CVSS v3
- 7.5 High
- Public exploits
- None known
- EPSS
- 0.010 · 64.0th percentile
- Published
- 2019-11-04
A denial-of-service issue was discovered in the MQTT library in Arm Mbed OS 2017-11-02. The function readMQTTLenString() is called by the function MQTTDeserialize_publish() to get the length and content of the MQTT topic name. In the function readMQTTLenString(), mqttstring->lenstring.len is a part of user input, which can be manipulated. An attacker can simply change it to a larger value to invalidate the if statement so that the statements inside the if statement are skipped, letting the value of mqttstring->lenstring.data default to zero. Later, curn is accessed, which points to mqttstring->lenstring.data. On an Arm Cortex-M chip, the value at address 0x0 is actually the initialization value for the MSP register. It is highly dependent on the actual firmware. Therefore, the behavior of the program is unpredictable from this time on.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- None
C:N - Integrity
- None
I:N - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.010, 64.0th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Arm Mbed-Mqtt — versions 2017-11-02
- Arm Mbed-Os
Weakness classification (CWE)
References
- github.com/ARMmbed/mbed-os/issues/11802 (Third Party Advisory, Issue Tracking)