A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-31072

CVE-2026-31072: APScheduler RCE Vulnerability

CVE-2026-31072 is a remote code execution vulnerability in APScheduler affecting all versions including 3.10.x and 4.0.0a5. Attackers exploit insecure deserialization to execute arbitrary code. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: May 21, 2026

CVE-2026-31072 Overview

CVE-2026-31072 is an insecure deserialization vulnerability [CWE-502] in the Advanced Python Scheduler (APScheduler) library. The flaw affects the JSONSerializer and CBORSerializer components across all versions, including the 3.10.x branch and the 4.0.0a5 pre-release. The unmarshal_object function dynamically imports arbitrary Python modules and invokes __setstate__ on attacker-controlled classes. Any application that deserializes untrusted JSON or Concise Binary Object Representation (CBOR) input through these serializers can be coerced into executing arbitrary code. Successful exploitation grants attackers the privileges of the host process, often resulting in full system compromise.

Critical Impact

Remote attackers can achieve unauthenticated code execution by submitting a crafted JSON or CBOR payload to any APScheduler-backed endpoint that processes external input.

Affected Products

  • APScheduler 3.10.x (all releases)
  • APScheduler 4.0.0a5
  • Applications embedding the JSONSerializer or CBORSerializer from APScheduler

Discovery Timeline

  • 2026-05-19 - CVE-2026-31072 published to the National Vulnerability Database (NVD)
  • 2026-05-20 - Last updated in NVD database

Technical Details for CVE-2026-31072

Vulnerability Analysis

The vulnerability resides in the unmarshal_object routine used by both the JSONSerializer and CBORSerializer. When deserializing a payload, the function reads a class path string from the input and uses Python's dynamic import machinery to load that class. It then constructs an instance and calls __setstate__ with attacker-supplied state data. This pattern permits instantiation of any class reachable in the running Python environment, including classes with side-effectful constructors or __setstate__ methods. The result is a classic insecure deserialization primitive that bypasses the safety expectations associated with text-based formats like JSON.

Root Cause

The root cause is the implicit trust placed in serialized class identifiers. The serializer treats the type metadata embedded in the payload as authoritative and resolves it through importlib, without an allowlist of safe classes. Because __setstate__ can invoke arbitrary methods on rehydrated objects, the deserialization step effectively becomes a remote method dispatch primitive controlled by the attacker.

Attack Vector

An attacker delivers a crafted JSON or CBOR document to any endpoint that feeds untrusted bytes into JSONSerializer.deserialize or CBORSerializer.deserialize. Common exposure points include job submission APIs, message queue consumers, and persistence layers that round-trip scheduler state. Exploitation requires no authentication or user interaction when the deserializer sits behind a publicly reachable interface. Attackers typically chain the primitive with a Python class that performs command execution during state restoration to obtain a shell. The GitHub Gist proof of concept demonstrates the payload structure, and the APScheduler repository hosts the vulnerable source.

Detection Methods for CVE-2026-31072

Indicators of Compromise

  • Inbound HTTP requests or message payloads containing JSON fields that reference fully qualified Python class paths such as os.system, subprocess.Popen, or builtins.eval.
  • CBOR payloads delivered to scheduler endpoints that include type tags pointing at non-APScheduler modules.
  • Unexpected child processes spawned by the Python interpreter hosting APScheduler, especially shells or network utilities.
  • New scheduled jobs or persisted scheduler state referencing classes outside the application's normal allowlist.

Detection Strategies

  • Inspect application logs for deserialization errors or stack traces originating in apscheduler.serializers.json or apscheduler.serializers.cbor.
  • Apply static analysis to identify code paths that invoke JSONSerializer or CBORSerializer on data sourced from untrusted inputs.
  • Use endpoint telemetry to correlate Python process activity with outbound network connections initiated immediately after job submission events.

Monitoring Recommendations

  • Forward APScheduler and web framework logs to a centralized analytics platform and alert on repeated deserialization exceptions.
  • Monitor process lineage on hosts running APScheduler to flag unexpected execution of shells, interpreters, or living-off-the-land binaries.
  • Track ingress traffic volume and payload entropy on scheduler endpoints to surface anomalous serialized payloads.

How to Mitigate CVE-2026-31072

Immediate Actions Required

  • Audit all application code paths that consume external input through APScheduler serializers and disable those paths until a patched release is deployed.
  • Restrict network access to scheduler endpoints so only authenticated, internal services can submit jobs.
  • Rotate credentials and secrets accessible to any host that may have processed untrusted serialized payloads.
  • Review scheduler persistence stores for unexpected job definitions and remove suspicious entries.

Patch Information

No fixed version is referenced in the published advisory at the time of writing. Track the APScheduler GitHub repository for an upstream release that removes dynamic class resolution from unmarshal_object or introduces a strict allowlist.

Workarounds

  • Replace JSONSerializer and CBORSerializer with a serializer that only accepts primitive types and validates schema before reconstruction.
  • Wrap deserialization calls with an allowlist check that rejects any class path outside a known-safe set of APScheduler job classes.
  • Terminate untrusted input at an application boundary and require signed payloads using HMAC verification before deserialization.
  • Run APScheduler workers under a least-privilege service account inside a sandbox or container with no outbound network access.
bash
# Configuration example: block external traffic to a scheduler service with iptables
iptables -A INPUT -p tcp --dport 8080 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 8080 -j DROP

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAp Scheduler

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Technical References
  • GitHub Gist PoC

  • GitHub APScheduler Repository
  • Latest CVEs
  • CVE-2026-9446: Simple POS Inventory System SQLi Flaw

  • CVE-2026-9531: Totolink CA750-PoE RCE Vulnerability

  • CVE-2026-9482: Edimax EW-7438RPn Buffer Overflow Flaw

  • CVE-2026-9562: Student Management System Auth Bypass Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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