7.5

CVE-2025-64076: agronholm cbor2 Integer Underflow (Wrap or Wraparound)

CVSS: 7.5v3.1HighAnalyzed
AliasesGHSA-9q9c-vjxh-p795PYSEC-2025-238UBUNTU-CVE-2025-64076
Published 18-11-2025Last modified 19-11-2025

Vulnerability summary

CVE-2025-64076 is a high (CVSS 7.5) Integer Underflow (Wrap or Wraparound) vulnerability in agronholm cbor2. EPSS estimates a 0.49% chance of exploitation in the next 30 days, higher than 40.8% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
40/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
0.49%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 2 · Related 2

Timeline

  1. 18-11-2025
    PublishedVulnerability first disclosed.
  2. 19-11-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.49%

Chance of exploitation in the next 30 days

Percentile

41%

Versus all other CVEs

30-day change

+0.03 pp

From 0.46% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.49%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Cbor2

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Agronholm1 product
Debian1 product
  • cbor2All versions (No fix recorded) | < 5.7.1-1
PyPI1 product
  • cbor2< 5.7.1
Ubuntu1 product
  • cbor2All versions (No fix recorded)

4 vendors · 4 products

References

12 links
Show all 12 references