Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2026-32875

CVE-2026-32875: Ultrajson Buffer Overflow DoS Vulnerability

CVE-2026-32875 is a denial of service flaw in Ultrajson that causes buffer overflow or infinite loop through large indent handling. This article covers the technical details, affected versions, impact, and mitigation.

Published: March 27, 2026

CVE-2026-32875 Overview

CVE-2026-32875 is an Integer Overflow vulnerability affecting UltraJSON (ujson), a high-performance JSON encoder and decoder written in pure C with Python 3.7+ bindings. The vulnerability exists in versions 5.10 through 5.11.0 and can be exploited to cause a denial of service through buffer overflow or infinite loop conditions when processing large indent values.

The flaw occurs when the ujson.dumps(), ujson.dump(), or ujson.encode() functions are called with a maliciously crafted indent parameter. When the product of the indent parameter and the nested depth of the input data exceeds INT32_MAX, an integer overflow occurs during memory reservation calculations for indentation. This can crash the Python interpreter with a segmentation fault or trigger an infinite loop with large negative indent values.

Critical Impact

Attackers can crash Python applications or cause infinite loops by supplying malicious indent parameters to ujson encoding functions, leading to denial of service conditions.

Affected Products

  • UltraJSON (ujson) versions 5.10 through 5.11.0
  • Python applications using vulnerable ujson versions for JSON encoding
  • Services that allow untrusted users to control the indent parameter in ujson calls

Discovery Timeline

  • 2026-03-20 - CVE CVE-2026-32875 published to NVD
  • 2026-03-23 - Last updated in NVD database

Technical Details for CVE-2026-32875

Vulnerability Analysis

This vulnerability is rooted in improper integer handling within UltraJSON's indentation calculation logic. When ujson.dumps() or related encoding functions are invoked, the library calculates the memory needed for indentation based on the indent parameter multiplied by the nesting depth of the JSON structure.

The core issue is that this calculation does not properly validate the bounds of the resulting integer. When the indent value is extremely large (positive), multiplying it by the nesting depth can overflow INT32_MAX, causing undefined behavior that manifests as a segmentation fault and interpreter crash.

For negative indent values, an integer underflow occurs even with minimally nested data (one level deep). While small negative indents may be "accidentally rectified" by subsequent overflows in the calculation path, large negative values result in the library entering an infinite loop as it attempts to process an impossibly large or wrapped-around memory allocation size.

Applications are vulnerable if they expose ujson encoding functions to user-controlled input without properly validating the indent parameter to ensure it remains within reasonable, non-negative bounds.

Root Cause

The root cause is an integer overflow/underflow vulnerability (CWE-190) in UltraJSON's memory allocation calculations for indentation. The library multiplies the user-supplied indent parameter by the nesting depth without checking whether the result exceeds the bounds of a signed 32-bit integer. This leads to incorrect memory reservation, causing either a buffer overflow (segmentation fault) or an infinite loop during encoding operations.

Attack Vector

An attacker can exploit this vulnerability remotely by targeting any network-accessible service that:

  1. Uses ujson.dump(), ujson.dumps(), or ujson.encode() for JSON serialization
  2. Allows users to control the indent parameter (directly or indirectly)
  3. Does not restrict indent values to small, non-negative integers

The attack requires no authentication or user interaction. An attacker simply needs to supply a crafted indent value—either an extremely large positive integer to trigger the overflow and crash, or a large negative integer to cause an infinite loop. When the vulnerable encoding function processes nested JSON data with this malicious indent, the service becomes unresponsive or terminates unexpectedly.

The vulnerability can manifest in two attack scenarios:

  • Crash Attack: Using a large positive indent that, when multiplied by nesting depth, exceeds INT32_MAX, causing a segmentation fault
  • Loop Attack: Using a large negative indent that causes an underflow, trapping the application in an infinite loop

Detection Methods for CVE-2026-32875

Indicators of Compromise

  • Python application crashes with segmentation faults when processing JSON encoding requests
  • Abnormally high CPU usage or unresponsive application threads during JSON serialization operations
  • Log entries showing unexpected termination of Python interpreter processes
  • Service timeouts or hangs specifically associated with JSON encoding operations

Detection Strategies

  • Monitor for segmentation fault signals (SIGSEGV) in Python application logs and system crash reports
  • Implement application-level logging to track indent parameter values passed to ujson encoding functions
  • Set up alerting for CPU spike anomalies in services that heavily utilize JSON serialization
  • Review application code for instances where user input flows to the indent parameter without validation

Monitoring Recommendations

  • Deploy process monitoring to detect Python interpreter crashes and automatic restarts
  • Configure watchdog timers to identify infinite loop conditions in JSON processing threads
  • Implement request timeout mechanisms to prevent runaway encoding operations from consuming resources indefinitely
  • Analyze application performance metrics for sudden degradation patterns associated with JSON serialization endpoints

How to Mitigate CVE-2026-32875

Immediate Actions Required

  • Upgrade UltraJSON to version 5.12.0 or later immediately
  • Audit all application code paths where ujson encoding functions receive user-controlled indent parameters
  • Implement input validation to restrict indent values to small, non-negative integers (e.g., 0-8)
  • Consider temporarily switching to the standard library json module if immediate patching is not feasible

Patch Information

The vulnerability has been fixed in UltraJSON version 5.12.0. The patch addresses the integer overflow/underflow in the indentation memory calculation logic. Organizations should update to this version or later to remediate the vulnerability.

For detailed information about the fix, refer to the GitHub Commit Update and the GitHub Security Advisory.

Workarounds

  • Validate and sanitize all user input before passing to the indent parameter, ensuring only small non-negative integers are accepted
  • Wrap ujson encoding calls in exception handlers and timeout mechanisms to prevent crashes from propagating and infinite loops from consuming resources
  • Replace ujson with Python's standard library json module in code paths exposed to untrusted input
  • Implement rate limiting on endpoints that perform JSON serialization to reduce the impact of potential exploitation attempts
bash
# Upgrade ujson to patched version
pip install --upgrade ujson>=5.12.0

# Verify installed version
pip show ujson | grep Version

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechUltrajson

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.05%

  • 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-190
  • Technical References
  • GitHub Issue Discussion
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-32874: Ultrajson Memory Leak DOS 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