CVE-2025-64076: cbor2 · n/a
Affects cbor2Source CVE Database V5
Not known to be exploited · CVSS 7.5 High : upgrade to 5.7.1 soon.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 41% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.7.1
CVSS:3.1/AC:L/AV:N/A:H/C:N/I:N/PR:N/S:U/UI:NExploitation evidence
Disclosed: evidence found.
CVE published 18 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Upgrade cbor2 to 5.7.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIcbor2pkg:pypi/cbor2Other threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately upgrade all instances of the cbor2 library to version 5.7.1 or later, which contains the fixes for these vulnerabilities. For environments where immediate upgrade is not feasible, implement strict input validation and filtering to block or sanitize CBOR payloads containing large definite-length text strings with multi-byte UTF-8 characters, especially those near 65536-byte chunk boundaries. Deploy runtime application monitoring to detect abnormal memory usage patterns or frequent CBORDecodeEOF exceptions indicative of exploitation attempts. Network-level protections such as Web Application Firewalls (WAFs) or Intrusion Prevention Systems (IPS) should be configured to detect and block suspicious CBOR traffic patterns. Additionally, isolate systems processing untrusted CBOR data within segmented network zones to limit potential impact. Regularly audit dependencies and maintain an up-to-date software bill of materials (SBOM) to quickly identify and remediate vulnerable library versions. Finally, educate development and security teams about the risks associated with CBOR data processing and the importance of timely patching.
Description
Multiple vulnerabilities exist in cbor2 through version 5.7.0 in the decode_definite_long_string() function of the C extension decoder (source/decoder.c): (1) Integer Underflow Leading to Out-of-Bounds Read (CWE-191, CWE-125): An incorrect variable reference and missing state reset in the chunk processing loop causes buffer_length to not be reset to zero after UTF-8 character consumption. This results in subsequent chunk_length calculations producing negative values (e.g., chunk_length = 65536 - buffer_length), which are passed as signed integers to the read() method, potentially triggering unlimited read operations and resource exhaustion. (2) Memory Leak via Missing Reference Count Release (CWE-401): The main processing loop fails to release Python object references (Py_DECREF) for chunk objects allocated in each iteration. For CBOR strings longer than 65536 bytes, this causes cumulative memory leaks proportional to the payload size, enabling memory exhaustion attacks through repeated processing of large CBOR payloads. Both vulnerabilities can be exploited remotely without authentication by sending specially-crafted CBOR data containing definite-length text strings with multi-byte UTF-8 characters positioned at 65536-byte chunk boundaries. Successful exploitation results in denial of service through process crashes (CBORDecodeEOF exceptions) or memory exhaustion. The vulnerabilities affect all applications using cbor2's C extension to process untrusted CBOR data, including web APIs, IoT data collectors, and message queue processors. Fixed in commit 851473490281f82d82560b2368284ef33cf6e8f9 pushed with released version 5.7.1.