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
    • 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-67221

CVE-2025-67221: orjson Recursion Limit Vulnerability

CVE-2025-67221 is a recursion limit vulnerability in orjson through version 3.11.4 where the dumps function fails to limit recursion for deeply nested JSON documents. This post covers technical details, affected versions, and mitigation.

Published: January 23, 2026

CVE-2025-67221 Overview

CVE-2025-67221 is a Resource Exhaustion vulnerability affecting the orjson Python library through version 3.11.4. The orjson.dumps function fails to implement proper recursion limits when processing deeply nested JSON documents, allowing attackers to cause a Denial of Service condition by providing specially crafted input that triggers excessive stack consumption.

Critical Impact

Applications using orjson to serialize untrusted JSON data may be vulnerable to stack exhaustion attacks, potentially causing service crashes and system unavailability.

Affected Products

  • orjson versions through 3.11.4
  • Python applications using affected orjson versions for JSON serialization
  • Web services and APIs processing user-supplied nested JSON structures

Discovery Timeline

  • 2026-01-22 - CVE CVE-2025-67221 published to NVD
  • 2026-01-22 - Last updated in NVD database

Technical Details for CVE-2025-67221

Vulnerability Analysis

This vulnerability is classified under CWE-770 (Allocation of Resources Without Limits or Throttling). The orjson library, written in Rust with Python bindings, is designed for high-performance JSON serialization and deserialization. However, the orjson.dumps function lacks adequate safeguards against processing deeply nested JSON structures.

When an attacker provides a JSON document with excessive nesting depth, the serialization process consumes stack memory proportional to the nesting level. Without recursion limits, this can exhaust available stack space, leading to a stack overflow and subsequent process termination. The vulnerability is exploitable over the network without authentication, making it particularly dangerous for public-facing web services.

Root Cause

The root cause lies in the absence of recursion depth validation in the orjson.dumps function. When processing nested objects or arrays, each level of nesting adds a new frame to the call stack. Without a configured maximum depth limit, malicious input with thousands of nested levels can rapidly consume stack memory, triggering a stack overflow condition.

Attack Vector

An attacker can exploit this vulnerability by sending a maliciously crafted JSON document with deeply nested structures to any application endpoint that processes JSON using orjson. The attack requires no authentication and can be executed remotely over the network. Common attack scenarios include:

  • Submitting nested JSON payloads to REST API endpoints
  • Providing crafted input to web services that serialize user data
  • Exploiting message queue consumers that process JSON messages

The vulnerability mechanism involves creating JSON objects or arrays nested to extreme depths (potentially thousands of levels). When orjson.dumps attempts to serialize such structures, the recursive processing exhausts available stack space. For detailed technical analysis, refer to the GitHub Orjson Vulnerability Report.

Detection Methods for CVE-2025-67221

Indicators of Compromise

  • Sudden application crashes with stack overflow errors in orjson-related code paths
  • Unexpected process terminations in services processing JSON data
  • Error logs showing recursion depth exceeded or stack exhaustion messages
  • Memory allocation failures preceding service unavailability

Detection Strategies

  • Monitor application logs for stack overflow or recursion-related error messages
  • Implement input validation to check JSON nesting depth before processing
  • Deploy application performance monitoring to detect unusual memory consumption patterns
  • Use SentinelOne Singularity to detect anomalous process behavior and crash patterns

Monitoring Recommendations

  • Set up alerting for service restarts and crash events in JSON processing components
  • Monitor stack memory usage in applications using orjson
  • Track request patterns for unusually large or deeply nested JSON payloads
  • Implement logging at API gateways to capture and analyze suspicious JSON structures

How to Mitigate CVE-2025-67221

Immediate Actions Required

  • Audit all applications using orjson to identify vulnerable deployments
  • Implement input validation to reject JSON documents exceeding a safe nesting depth
  • Consider deploying a web application firewall (WAF) rule to limit JSON nesting depth
  • Monitor for updates from the orjson maintainers and apply patches when available

Patch Information

At the time of publication, users should monitor the GitHub Repository for Orjson for security updates and patched releases. Organizations should subscribe to security advisories and apply updates promptly once available.

Workarounds

  • Implement a pre-processing validation layer that checks JSON nesting depth before passing data to orjson
  • Set process-level stack size limits to prevent complete system resource exhaustion
  • Consider using alternative JSON libraries with built-in recursion limits for untrusted input
  • Deploy rate limiting on endpoints processing JSON to reduce attack surface
bash
# Example: Implementing JSON depth validation before orjson processing
# Add this validation layer to reject deeply nested JSON documents
python -c "
import json

def validate_json_depth(obj, max_depth=50, current_depth=0):
    if current_depth > max_depth:
        raise ValueError('JSON nesting depth exceeds maximum allowed')
    if isinstance(obj, dict):
        for value in obj.values():
            validate_json_depth(value, max_depth, current_depth + 1)
    elif isinstance(obj, list):
        for item in obj:
            validate_json_depth(item, max_depth, current_depth + 1)
    return True
"

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechOrjson

  • SeverityHIGH

  • CVSS Score7.5

  • 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-770
  • Technical References
  • GitHub Repository for Orjson

  • GitHub Orjson Vulnerability Report
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE 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