CVE-2020-37280 Details
Description
cbor-sync through 1.0.4 contains a resource exhaustion vulnerability in CBOR.decode that trusts declared array and map lengths without checking remaining input. Remote attackers can supply a tiny crafted CBOR payload declaring huge lengths to drive billions of iterations, exhausting CPU and process memory.
A resource exhaustion vulnerability has been identified in the cbor-sync library, specifically in versions through 1.0.4. This vulnerability arises from the CBOR.decode function, which improperly trusts declared lengths of arrays and maps without verifying the remaining input. As a result, remote attackers can craft small CBOR payloads that declare large lengths, causing the decoder to execute billions of iterations. This behavior exhausts both CPU resources and process memory, leading to a denial-of-service condition. The issue is particularly severe under constrained memory environments, such as containers or serverless platforms, where the Node.js process can abruptly terminate due to out-of-memory errors.
Users are advised to migrate to a maintained CBOR library that validates declared sizes against available data. For those interested in applying the suggested fix, it involves modifying the decoder to check the remaining input before allocating memory based on declared lengths.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 12, 2026CISA-ADP
Assessed Oct 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/PelionIoT/cbor-sync | [email protected] | ProductSource CodeVendor |
| https://github.com/PelionIoT/cbor-sync/issues/6 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/PelionIoT/cbor-sync/pull/4 | [email protected] | Issue TrackingVendor |
| https://www.vulncheck.com/advisories/cbor-sync-through-1.0.4-memory-exhaustion-via-unchecked-cbor-array-lengths | [email protected] | Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-789 | Memory Allocation with Excessive Size Value | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| PelionIoT cbor-sync | <= 1.0.4 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 13, 2026 | CVE Modified | CISA-ADP |
| Oct 12, 2026 | New CVE Received | [email protected] |
Volerion