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

CVE-2026-30922: pyasn1 Python Library DoS Vulnerability

CVE-2026-30922 is a denial of service vulnerability in pyasn1 Python library caused by uncontrolled recursion in ASN.1 decoding. Attackers can crash applications using nested structures. This article covers technical details, affected versions, impact, and mitigation steps.

Published: March 20, 2026

CVE-2026-30922 Overview

CVE-2026-30922 is a Denial of Service (DoS) vulnerability in the pyasn1 library, a generic ASN.1 library for Python. Prior to version 0.6.3, the library is vulnerable to uncontrolled recursion when decoding ASN.1 data with deeply nested structures. An attacker can exploit this flaw by supplying a crafted payload containing thousands of nested SEQUENCE (0x30) or SET (0x31) tags with "Indefinite Length" (0x80) markers, causing the decoder to recursively call itself until the Python interpreter crashes with a RecursionError or exhausts all available memory (OOM), crashing the host application.

Critical Impact

This vulnerability enables remote attackers to crash any Python application using the pyasn1 library for ASN.1 decoding by sending specially crafted payloads with deeply nested structures, resulting in complete service unavailability.

Affected Products

  • pyasn1 versions prior to 0.6.3
  • Applications and services using pyasn1 for ASN.1 decoding
  • Python-based TLS/SSL implementations relying on pyasn1

Discovery Timeline

  • 2026-03-18 - CVE-2026-30922 published to NVD
  • 2026-03-18 - Last updated in NVD database

Technical Details for CVE-2026-30922

Vulnerability Analysis

This vulnerability (CWE-674: Uncontrolled Recursion) exists in the BER decoder component of pyasn1. The core issue lies in the decoder's handling of nested ASN.1 structures without enforcing a maximum recursion depth. When processing ASN.1 data, the decoder recursively parses nested elements such as SEQUENCE and SET containers. Without a depth limit, an attacker can craft malicious ASN.1 payloads with extreme nesting levels that exceed Python's default recursion limit (typically 1000), triggering a RecursionError and application crash.

It's important to note that this vulnerability is distinct from CVE-2026-23490, which addressed integer overflows in OID decoding. The fix for CVE-2026-23490 (MAX_OID_ARC_CONTINUATION_OCTETS) does not mitigate this recursion issue, as they target different attack vectors within the same library.

Root Cause

The root cause is the absence of recursion depth tracking in the BER decoder's parsing logic. When the decoder encounters nested SEQUENCE (0x30) or SET (0x31) tags with "Indefinite Length" (0x80) markers, it processes each nested level through recursive function calls without validating the current depth against a safe threshold. This allows an attacker to trigger stack exhaustion or memory exhaustion through carefully crafted payloads.

Attack Vector

The attack can be executed remotely over a network connection (AV:N) without requiring authentication (PR:N) or user interaction (UI:N). An attacker crafts a malicious ASN.1 payload containing thousands of nested SEQUENCE or SET structures, each marked with indefinite length encoding. When a vulnerable application attempts to decode this payload—such as during TLS certificate parsing, LDAP operations, or SNMP message processing—the decoder enters an uncontrolled recursion loop. The attack results in service unavailability (A:H) without compromising data confidentiality or integrity.

The security patch introduces a MAX_NESTING_DEPTH constant to limit recursion:

python
 # Maximum number of continuation octets (high-bit set) allowed per OID arc.
 # 20 octets allows up to 140-bit integers, supporting UUID-based OIDs
 MAX_OID_ARC_CONTINUATION_OCTETS = 20
+MAX_NESTING_DEPTH = 100

 # Maximum number of bytes in a BER length field (8 bytes = up to 2^64-1)
 MAX_LENGTH_OCTETS = 8

Source: GitHub Commit

Detection Methods for CVE-2026-30922

Indicators of Compromise

  • Application crashes with RecursionError or RuntimeError: maximum recursion depth exceeded in stack traces referencing pyasn1 decoder modules
  • Sudden memory exhaustion (OOM) events in services processing ASN.1 data
  • Abnormally large or malformed ASN.1 payloads in network traffic containing excessive nested SEQUENCE (0x30) or SET (0x31) tags
  • Repeated service restarts or failures in applications handling TLS certificates, LDAP, or SNMP

Detection Strategies

  • Monitor Python application logs for RecursionError exceptions originating from pyasn1.codec.ber.decoder modules
  • Deploy network-level inspection to detect ASN.1 payloads with unusually deep nesting patterns or excessive indefinite length markers
  • Use application performance monitoring (APM) tools to alert on sudden memory spikes or stack depth anomalies during ASN.1 processing
  • Audit installed pyasn1 versions across environments using dependency scanning tools to identify vulnerable deployments

Monitoring Recommendations

  • Configure alerting for service availability degradation in applications known to use pyasn1 for ASN.1 parsing
  • Implement rate limiting on endpoints that accept and decode ASN.1-formatted data
  • Enable detailed logging for ASN.1 decoding operations to capture payload characteristics before crashes occur

How to Mitigate CVE-2026-30922

Immediate Actions Required

  • Upgrade pyasn1 to version 0.6.3 or later immediately across all affected systems
  • Audit all Python applications and dependencies to identify pyasn1 usage, including transitive dependencies
  • Implement input validation to reject excessively large or deeply nested ASN.1 payloads before they reach the decoder
  • Consider temporarily isolating or rate-limiting services that process untrusted ASN.1 data until patching is complete

Patch Information

The vulnerability is fixed in pyasn1 version 0.6.3. The patch introduces a MAX_NESTING_DEPTH constant set to 100, which enforces a hard limit on recursion depth during ASN.1 decoding. This prevents attackers from triggering stack exhaustion through deeply nested structures. For detailed technical information, refer to the GitHub Security Advisory and the patch commit.

Workarounds

  • If immediate patching is not feasible, increase Python's recursion limit cautiously using sys.setrecursionlimit(), though this may delay but not prevent crashes
  • Deploy a reverse proxy or web application firewall (WAF) to filter requests containing suspiciously large ASN.1 payloads
  • Implement application-level pre-parsing validation to check nesting depth before passing data to pyasn1
bash
# Upgrade pyasn1 to patched version
pip install --upgrade pyasn1>=0.6.3

# Verify installed version
pip show pyasn1 | grep Version

# Check for pyasn1 in project dependencies
pip freeze | grep pyasn1

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPyasn1

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.04%

  • 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-674
  • Technical References
  • GitHub Commit History

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-23490: pyasn1 Library 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