Live threats

All CVEs / Mbed

CVE-2019-17212Mbed

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
3.1%
probability of exploitation in 30 days · percentile 88
Auth required
No
Published
Nov 5, 2019
Updated
Jun 17, 2026
Category
Operating system · Cross-platform
Weakness (CWE)
CWE-129, CWE-787
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

Buffer overflows were discovered in the CoAP library in Arm Mbed OS 5.14.0. The CoAP parser is responsible for parsing received CoAP packets. The function sn_coap_parser_options_parse() parses CoAP input linearly using a while loop. Once an option is parsed in a loop, the current point (*packet_data_pptr) is increased correspondingly. The pointer is restricted by the size of the received buffer, as well as by the 0xFF delimiter byte. Inside each while loop, the check of the value of *packet_data_pptr is not strictly enforced. More specifically, inside a loop, *packet_data_pptr could be increased and then dereferenced without checking. Moreover, there are many other functions in the format of sn_coap_parser_****() that do not check whether the pointer is within the bounds of the allocated buffer. All of these lead to heap-based or stack-based buffer overflows, depending on how the CoAP packet buffer is allocated.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mbed.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
mbedmbed5.13.2
mbedmbed5.14.0

Official sources

References

Links published by the sources. Open them with care.