The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-64076

CVE-2025-64076: Agronholm Cbor2 DOS Vulnerability

CVE-2025-64076 is a denial of service vulnerability in Agronholm Cbor2 caused by integer underflow and memory leaks. Attackers can exploit it remotely to crash processes or exhaust memory. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: April 22, 2026

CVE-2025-64076 Overview

Multiple vulnerabilities exist in the cbor2 Python library through version 5.7.0, specifically within the decode_definite_long_string() function of the C extension decoder (source/decoder.c). These vulnerabilities include an Integer Underflow Leading to Out-of-Bounds Read (CWE-191, CWE-125) and a Memory Leak via Missing Reference Count Release (CWE-401). The flaws stem from an incorrect variable reference and missing state reset in the chunk processing loop, causing buffer_length to not be reset to zero after UTF-8 character consumption. This results in subsequent chunk_length calculations producing negative values, which can trigger unlimited read operations and resource exhaustion. Additionally, the main processing loop fails to release Python object references for chunk objects, causing cumulative memory leaks when processing CBOR strings longer than 65536 bytes.

Critical Impact

Remote attackers can exploit these vulnerabilities without authentication by sending specially-crafted CBOR data, leading to denial of service through process crashes or memory exhaustion in web APIs, IoT data collectors, and message queue processors.

Affected Products

  • agronholm cbor2 versions through 5.7.0
  • Applications using cbor2's C extension to process untrusted CBOR data
  • Web APIs, IoT data collectors, and message queue processors utilizing cbor2

Discovery Timeline

  • 2025-11-18 - CVE CVE-2025-64076 published to NVD
  • 2025-12-31 - Last updated in NVD database

Technical Details for CVE-2025-64076

Vulnerability Analysis

The vulnerabilities reside in the decode_definite_long_string() function within cbor2's C extension decoder. The root issue involves an incorrect variable reference where buffer_size is used instead of buffer_length in chunk length calculations. When processing definite-length text strings containing multi-byte UTF-8 characters positioned at 65536-byte chunk boundaries, the buffer_length variable is not properly reset to zero after UTF-8 character consumption.

This creates a scenario where subsequent chunk_length calculations produce negative values (e.g., chunk_length = 65536 - buffer_length). Since these values are passed as signed integers to the read() method, this can trigger unlimited read operations, leading to resource exhaustion and CBORDecodeEOF exceptions.

The second vulnerability involves improper memory management where the main processing loop fails to call Py_DECREF on chunk objects allocated during each iteration. For CBOR strings exceeding 65536 bytes, this causes cumulative memory leaks proportional to payload size, enabling memory exhaustion attacks through repeated processing of large CBOR payloads.

Root Cause

The root cause is a variable naming error in the C extension decoder where buffer_size was incorrectly referenced instead of buffer_length during chunk length calculations. This incorrect reference, combined with missing state reset logic and missing Python reference count decrements, creates exploitable conditions for both denial of service and memory exhaustion attacks.

Attack Vector

The 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. The attack requires network access to any application using cbor2's C extension to process untrusted CBOR data. Successful exploitation results in denial of service through either process crashes triggered by CBORDecodeEOF exceptions or memory exhaustion from cumulative memory leaks.

c
// Security patch from source/decoder.c
// Source: https://github.com/agronholm/cbor2/commit/851473490281f82d82560b2368284ef33cf6e8f9

     char *buffer = NULL;
     while (left) {
         // Read up to 65536 bytes of data from the stream
-        Py_ssize_t chunk_length = 65536 - buffer_size;
+        Py_ssize_t chunk_length = 65536 - buffer_length;
         if (left < chunk_length)
             chunk_length = left;

The fix corrects the variable reference from buffer_size to buffer_length, ensuring proper chunk length calculations and preventing negative values from being passed to the read operation.

Detection Methods for CVE-2025-64076

Indicators of Compromise

  • Unexpected CBORDecodeEOF exceptions in application logs when processing CBOR data
  • Abnormal memory growth in processes handling CBOR payloads exceeding 65536 bytes
  • Process crashes during CBOR decoding operations involving multi-byte UTF-8 characters
  • Elevated memory consumption patterns during CBOR data processing

Detection Strategies

  • Monitor application logs for CBORDecodeEOF exceptions that may indicate exploitation attempts
  • Implement memory usage monitoring for services processing CBOR data to detect memory leak patterns
  • Deploy network traffic analysis to identify unusually large CBOR payloads targeting vulnerable endpoints
  • Use dependency scanning tools to identify cbor2 versions prior to 5.7.1 in your environment

Monitoring Recommendations

  • Establish baseline memory consumption metrics for CBOR processing services and alert on anomalies
  • Configure application performance monitoring to track CBOR decoding operation times and failure rates
  • Implement payload size limits for incoming CBOR data at the application layer
  • Enable verbose logging for CBOR processing operations during security assessment periods

How to Mitigate CVE-2025-64076

Immediate Actions Required

  • Upgrade cbor2 to version 5.7.1 or later immediately
  • Audit all applications and services using cbor2 for processing untrusted CBOR data
  • Implement input validation and size limits for CBOR payloads as a defense-in-depth measure
  • Review and update dependency management configurations to prevent use of vulnerable versions

Patch Information

The vulnerability is fixed in cbor2 version 5.7.1, released in commit 851473490281f82d82560b2368284ef33cf6e8f9. The fix corrects the variable reference from buffer_size to buffer_length in the decode_definite_long_string() function. For detailed information, see the GitHub Pull Request and the GitHub Commit.

Workarounds

  • Disable the C extension decoder and use the pure Python decoder if upgrading is not immediately possible
  • Implement strict payload size validation before CBOR processing to limit exposure
  • Deploy web application firewalls or input filters to reject oversized CBOR payloads
  • Isolate services processing untrusted CBOR data in sandboxed environments with resource limits
bash
# Upgrade cbor2 to the patched version
pip install --upgrade cbor2>=5.7.1

# Verify installed version
pip show cbor2 | grep Version

# For environments using requirements.txt, update the dependency
echo "cbor2>=5.7.1" >> requirements.txt
pip install -r requirements.txt

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechCbor2

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.23%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-191
  • Technical References
  • GitHub Issue Discussion
  • Vendor Resources
  • GitHub Commit Details

  • GitHub Pull Request Overview
  • Latest CVEs
  • CVE-2025-52479: HTTP.jl & URIs.jl CRLF Injection Flaw

  • CVE-2026-31740: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31743: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31744: Linux Kernel NULL Pointer Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English