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-2024-29021

CVE-2024-29021: Judge0 Sandbox Escape RCE Vulnerability

CVE-2024-29021 is a sandbox escape RCE vulnerability in Judge0 that exploits SSRF to execute code as root. This article covers the technical details, affected versions, security impact, and mitigation strategies.

Published: April 8, 2026

CVE-2024-29021 Overview

Judge0 is an open-source online code execution system widely used for programming education, coding challenges, and technical interviews. A critical vulnerability exists in the default configuration of Judge0 that leaves the service vulnerable to a sandbox escape via Server Side Request Forgery (SSRF). This allows an attacker with sufficient access to the Judge0 API to obtain unsandboxed code execution as root on the target machine. The vulnerability has been addressed in version 1.13.1.

Critical Impact

Attackers can leverage SSRF to escape the sandbox environment and achieve root-level code execution on the underlying host system, potentially compromising the entire infrastructure.

Affected Products

  • Judge0 versions prior to 1.13.1
  • Judge0 instances using default configuration settings
  • Deployments with exposed Judge0 API endpoints

Discovery Timeline

  • April 18, 2024 - CVE-2024-29021 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2024-29021

Vulnerability Analysis

This vulnerability is classified as CWE-918 (Server-Side Request Forgery) and represents a significant security risk due to its ability to enable sandbox escape. The Judge0 system is designed to execute untrusted code in an isolated sandbox environment to prevent malicious code from affecting the host system. However, the default configuration fails to adequately restrict internal network requests, creating a pathway for attackers to bypass these security controls.

The vulnerability can be exploited remotely over the network without requiring user interaction. While the attack complexity is high, successful exploitation does not require any privileges on the target system. Due to the changed scope characteristic, a successful attack impacts resources beyond the vulnerable component, allowing attackers to affect the underlying host system rather than just the sandboxed environment.

Root Cause

The root cause of this vulnerability lies in the default configuration of Judge0, which does not properly restrict Server Side Request Forgery attacks. The isolate_job.rb file, specifically the code handling job isolation between lines 203-230, contains the vulnerable functionality. When the system processes code execution requests, it fails to adequately validate and restrict internal network requests, allowing attackers to craft requests that can reach internal services and ultimately escape the sandbox.

Attack Vector

The attack vector involves exploiting the SSRF vulnerability through the Judge0 API. An attacker with access to the API can submit specially crafted code execution requests that trigger internal network requests to services that should not be accessible from the sandbox. By chaining these internal requests, the attacker can escape the sandbox environment and execute arbitrary commands as root on the host system.

The exploitation flow typically involves:

  1. Identifying an accessible Judge0 API endpoint
  2. Crafting malicious code execution requests that exploit the SSRF vulnerability
  3. Leveraging the SSRF to reach internal services or metadata endpoints
  4. Escalating from the sandboxed environment to obtain root access on the host

For detailed technical analysis and proof-of-concept information, refer to the GitHub Security Advisory and the vulnerable code section in isolate_job.rb.

Detection Methods for CVE-2024-29021

Indicators of Compromise

  • Unusual outbound requests from the Judge0 container targeting internal IP ranges (e.g., 127.0.0.1, 169.254.169.254, 10.x.x.x, 172.16.x.x)
  • Unexpected processes running as root on the Judge0 host system
  • Anomalous network traffic patterns from the code execution sandbox to internal services
  • Evidence of code execution attempts accessing cloud metadata endpoints

Detection Strategies

  • Implement network monitoring to detect SSRF patterns targeting internal resources from Judge0 containers
  • Configure alerting for any root-level process creation outside normal Judge0 operations
  • Monitor Judge0 API access logs for suspicious code submission patterns
  • Deploy web application firewalls (WAF) with SSRF detection rules in front of Judge0 API endpoints

Monitoring Recommendations

  • Enable comprehensive logging for all Judge0 API requests and code execution jobs
  • Implement egress filtering and monitor for attempts to bypass network restrictions
  • Set up alerts for any sandbox escape indicators or privilege escalation attempts
  • Regularly audit Judge0 configuration files for deviations from security best practices

How to Mitigate CVE-2024-29021

Immediate Actions Required

  • Upgrade Judge0 to version 1.13.1 or later immediately
  • Review and restrict network access to the Judge0 API to authorized users only
  • Implement network segmentation to isolate Judge0 instances from sensitive internal resources
  • Audit existing deployments for signs of compromise before and after patching

Patch Information

The vulnerability has been fixed in Judge0 version 1.13.1. Organizations running affected versions should upgrade immediately. The fix addresses the SSRF vulnerability by implementing proper request validation and network restrictions in the sandbox environment.

Review the GitHub Security Advisory GHSA-q7vg-26pg-v5hr for complete patch details and upgrade instructions.

Workarounds

  • Restrict Judge0 API access using firewall rules or reverse proxy authentication until patching is possible
  • Configure network-level egress filtering to block sandbox containers from reaching internal IP ranges
  • Implement a network policy that prevents the Judge0 container from accessing metadata services and internal networks
  • Consider temporarily disabling the Judge0 service if it cannot be immediately patched and is exposed to untrusted users
bash
# Example: Network policy to restrict Judge0 container egress (Kubernetes)
# Apply network policies to prevent SSRF to internal resources
kubectl apply -f - <<EOF
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: judge0-egress-restriction
spec:
  podSelector:
    matchLabels:
      app: judge0
  policyTypes:
  - Egress
  egress:
  - to:
    - ipBlock:
        cidr: 0.0.0.0/0
        except:
        - 10.0.0.0/8
        - 172.16.0.0/12
        - 192.168.0.0/16
        - 169.254.169.254/32
EOF

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechJudge0

  • SeverityCRITICAL

  • CVSS Score9.0

  • EPSS Probability1.63%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-918
  • Technical References
  • GitHub Code Snippet

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2024-28185: Judge0 Symlink RCE Vulnerability
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