# CVE-2020-12885: An infinite loop was discovered in the CoAP library in Arm Mbed OS 5.15.3.

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.23%, higher than 69% of CVEs (2026-12-01)
- Published: 2020-06-18T18:24:53.000Z
- Modified: 2026-06-17T02:52:29.183Z
- Weaknesses: CWE-835
- Assigned by: mitre

## Description

An infinite loop 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_multiple_options() parses CoAP options in a while loop. This loop's exit condition is computed using the previously allocated heap memory required for storing the result of parsing multiple options. If the input heap memory calculation results in zero bytes, the loop exit condition is never met and the loop is not terminated. As a result, the packet parsing function never exits, leading to resource consumption.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- arm mbed_os: 5.15.3

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 7.8 High `AV:N/AC:L/Au:N/C:N/I:N/A:C`

## References

- <https://github.com/ARMmbed/mbed-os/issues/12929> (third-party-advisory)
- <https://github.com/ARMmbed/mbed-coap/pull/116> (third-party-advisory)

## Sources

- CVE List: [CVE-2020-12885](https://www.cve.org/CVERecord?id=CVE-2020-12885), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-12885](https://nvd.nist.gov/vuln/detail/CVE-2020-12885), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-12885 · Whole record: https://cve.day/CVE-2020-12885.json · Rebuilt by cve.day 2026-11-25T22:57:53.037Z
