Home / Agronholm / Cbor2 / CVE-2025-64076
CVE-2025-64076: is it exploited, and which versions of Agronholm Cbor2 are affected and fixed?
CVE-2025-64076 is an integer underflow vulnerability in Agronholm Cbor2. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:08 UTC). Affected: cbor2 before 5.7.1 (GitHub advisory GHSA-9q9c-vjxh-p795). Fixed in 5.7.1 (GitHub advisory GHSA-9q9c-vjxh-p795). Severity: High (7.5, CVSS 3.1, from mitre).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:08 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:15 UTC.
What is CVE-2025-64076?
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.
From the CVE record by mitre, last updated November 19, 2025, 13:55 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | cbor2 | < 5.7.1 | 5.7.1 | GHSA-9q9c-vjxh-p795 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 1, 2026. Summary: cbor2 C extension decoder flaws can cause denial of service.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| agronholm | cbor2 | through 5.7.0 | application |
NVD analysis (status Analyzed), last modified November 5, 2026, 14:10 UTC.
How severe is CVE-2025-64076?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AC:L/AV:N/A:H/C:N/I:N/PR:N/S:U/UI:N | mitre |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-64076 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, November 19, 2025)
- EPSS
- 0.49% probability of exploitation activity in the next 30 days, percentile 43.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-191 Integer Underflow (Wrap or Wraparound)
Where are the vendor advisories and references?
- https://github.com/agronholm/cbor2/issues/264
- https://github.com/agronholm/cbor2/pull/265
- https://github.com/agronholm/cbor2/commit/851473490281f82d82560b2368284ef33cf6e8f9
When was it published, and where is the official record?
- Reserved
- October 27, 2025
- Published
- November 18, 2025, 00:00 UTC
- CVE record updated
- November 19, 2025, 13:55 UTC by mitre
- NVD
- Analyzed, last modified November 5, 2026, 14:10 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:15 UTC; KEV December 3, 2026, 12:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Cbor2?
- Mar 23, 2026CVE-2026-26209 agronholm cbor2: uncontrolled recursion
- Dec 31, 2025CVE-2025-68131 agronholm cbor2: improper Removal of Sensitive Information Before Storage or Transfer
- Feb 19, 2024CVE-2024-26134 agronholm cbor2: buffer overflow
Questions about CVE-2025-64076
Is CVE-2025-64076 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:08 UTC. FIRST's EPSS gives it a 0.49% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Agronholm Cbor2 are affected by CVE-2025-64076?
cbor2 before 5.7.1, per the GitHub advisory GHSA-9q9c-vjxh-p795. The tables above give every range the sources list.
Which version fixes CVE-2025-64076?
5.7.1, per the GitHub advisory GHSA-9q9c-vjxh-p795. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-64076?
High (7.5, CVSS 3.1, from mitre). The severity table above shows each score with its source.
Where is the official record of CVE-2025-64076?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.