Out-of-bounds Read Affecting armmbed/mbed-os package, versions [0,]


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.56% (66th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-ARMMBEDMBEDOS-2368796
  • published26 Jan 2022
  • disclosed18 Jun 2020
  • creditUnknown

Introduced: 18 Jun 2020

CVE-2020-12886  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

There is no fixed version for armmbed/mbed-os.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read. A buffer over-read was discovered in the CoAP library in Arm Mbed OS 5.15.3. The CoAP parser is responsible for parsing received CoAP packets. The function sn_coap_parser_options_parse() parses the CoAP packet header starting from the message token. The length of the token in the received message is provided in the first byte parsed by the sn_coap_parser_options_parse() function. The length encoded in the message is not validated against the actual input buffer length before accessing the token. As a result, memory access outside of the intended boundary of the buffer may occur.

CVSS Base Scores

version 3.1