Read the docs
TI-2025-39535 Aliases CVE-2025-64076GHSA-9q9c-vjxh-p795

Multiple vulnerabilities exist in cbor2 through version 5.7.0 in the…

Priority HIGH 66CWE-191Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-191 and the CVSS impact.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00489 42nd percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix Fixed cbor2 (PyPI): 5.7.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
—cbor2 (PyPI)before 5.7.15.7.1Patch availableGHSA-9q9c-vjxh-p795
  • — Vendor— Affected all versions Fixed in — No fix listed CNA
  • cbor2 (PyPI) Vendor— Affected before 5.7.1 Fixed in 5.7.1 Patch available GHSA-9q9c-vjxh-p795

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:agronholm:cbor2:*:*:*:*:*:python:*:*up to 5.7.0Vulnerableagronholm
  • cpe:2.3:a:agronholm:cbor2:*:*:*:*:*:python:*:* Versions up to 5.7.0 Vulnerable ·agronholm

Remediation

  • Fix · GHSA-9q9c-vjxh-p795 cbor2 (PyPI) Fixed in 5.7.1 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-64076
  2. 2026-10-03 Alias added: GHSA-9q9c-vjxh-p795

References

  • TI-2026-21200 cbor2 has a Denial of Service via Uncontrolled Recursion in cbor2.loads CVSS 3.0HIGH 7.5
  • TI-2024-17225 CBOR2 decoder has potential buffer overflow CVSS 3.1HIGH 7.5
  • TI-2025-41712 CBORDecoder reuse can leak shareable values across decode calls CVSS 4.0MEDIUM 5.5

Sources