CVE-2020-12887 in Arm Mbed-Coap and 1 more product
Memory leaks were discovered in the CoAP library in Arm Mbed OS 5.15.3 when using the Arm mbed-coap library 5.1.5. The CoAP parser is responsible for parsing received CoAP packets. The function sn_coap_parser_options_parse() parses the CoAP option number field of all options present in the input packet. Each option ...
Affects 2 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Arm | Mbed-Coap | 5.1.5 |
Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Arm Mbed Os
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
Memory leaks were discovered in the CoAP library in Arm Mbed OS 5.15.3 when using the Arm mbed-coap library 5.1.5. The CoAP parser is responsible for parsing received CoAP packets. The function sn_coap_parser_options_parse() parses the CoAP option number field of all options present in the input packet. Each option number is calculated as a sum of the previous option number and a delta of the current option. The delta and the previous option number are expressed as unsigned 16-bit integers. Due to lack of overflow detection, it is possible to craft a packet that wraps the option number around and results in the same option number being processed again in a single packet. Certain options allocate memory by calling a memory allocation function. In the cases of COAP_OPTION_URI_QUERY, COAP_OPTION_URI_PATH, COAP_OPTION_LOCATION_QUERY, and COAP_OPTION_ETAG, there is no check on whether memory has already been allocated, which in conjunction with the option number integer overflow may lead to multiple assignments of allocated memory to a single pointer. This has been demonstrated to lead to memory leak by buffer orphaning. As a result, the memory is never freed.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2020-12887 |
|---|---|
| BreachSpider ID | BS-2020-GLOBAL-144795-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2020-06-18 |
| Last modified | 2024-11-21 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-190: Integer Overflow or Wraparound
Arithmetic operation exceeds the maximum integer value, wrapping around and often leading to undersized allocations.
CWE-401: Memory Leak
Software does not release allocated memory after use, causing progressive consumption until failure.
Related attack patterns (CAPEC)
CAPEC-92 Forced Integer Overflow via CWE-190
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Memory leaks were identified in the CoAP library of Arm Mbed OS 5.15.3 when using the Arm mbed-coap library 5.1.5. The issue occurs in the sn_coap_parser_options_parse() function, which can lead to resource exhaustion over time.
An attacker could exploit this vulnerability by sending specially crafted CoAP packets to the affected system, causing memory leaks. This could potentially lead to a denial of service condition.
Questions
What is CVE-2020-12887?
Memory leaks were identified in the CoAP library of Arm Mbed OS 5.15.3 when using the Arm mbed-coap library 5.1.5. The issue occurs in the sn_coap_parser_options_parse() function, which can lead to resource exhaustion over time.
What is the CVSS score for CVE-2020-12887?
CVE-2020-12887 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 1.7%.
Is CVE-2020-12887 actively exploited?
No confirmed active exploitation of CVE-2020-12887 as of 2026-05-30.
How do I remediate CVE-2020-12887?
Priority: MEDIUM.
What systems are affected by CVE-2020-12887?
CVE-2020-12887 affects Arm Mbed-Coap.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Arm","product":"Mbed-Coap","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.