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-2023-32007

CVE-2023-32007: Apache Spark RCE Vulnerability

CVE-2023-32007 is a remote code execution flaw in Apache Spark that allows attackers to execute arbitrary shell commands through impersonation. This article covers technical details, affected versions, impact, and mitigation.

Published: February 4, 2026

CVE-2023-32007 Overview

CVE-2023-32007 is a command injection vulnerability in Apache Spark affecting unsupported versions. The Apache Spark UI offers the ability to enable ACLs via the configuration option spark.acls.enable. When ACLs are enabled with an authentication filter, a code path in HttpSecurityFilter can allow an attacker to perform impersonation by providing an arbitrary user name. A malicious user can then reach a permission check function that builds a Unix shell command based on their input, resulting in arbitrary shell command execution as the user Spark is currently running as.

This vulnerability was previously disclosed as CVE-2022-33891, but that advisory incorrectly claimed version 3.1.3 would not be affected. This CVE corrects that disclosure for the affected unsupported versions.

Critical Impact

This vulnerability enables arbitrary shell command execution on Apache Spark instances with ACLs enabled, potentially allowing complete system compromise through user impersonation.

Affected Products

  • Apache Spark (unsupported versions including 3.1.3 and earlier)
  • Apache Spark versions prior to 3.4.0 with ACLs enabled
  • Systems running Apache Spark with spark.acls.enable configuration option active

Discovery Timeline

  • 2023-05-02 - CVE CVE-2023-32007 published to NVD
  • 2025-02-13 - Last updated in NVD database

Technical Details for CVE-2023-32007

Vulnerability Analysis

This vulnerability is classified under CWE-77 (Command Injection). The flaw exists in the access control implementation within Apache Spark's UI component. When ACL functionality is enabled through spark.acls.enable, the system is designed to verify user permissions for viewing or modifying applications. However, a weakness in the HttpSecurityFilter component allows attackers to bypass authentication by supplying arbitrary user names.

The attack requires network access and low-privilege authentication to exploit. Once an attacker successfully impersonates a user, they can reach internal permission checking functions that unsafely construct Unix shell commands using attacker-controlled input. This results in command injection, allowing the attacker to execute arbitrary commands with the privileges of the Spark process.

Root Cause

The root cause is improper input validation and sanitization in the HttpSecurityFilter component. When processing user authentication information, the filter fails to properly validate or sanitize user-supplied data before using it in operations that ultimately lead to shell command construction. The permission check function does not adequately escape or validate input before incorporating it into Unix shell commands, creating a classic command injection vulnerability.

Attack Vector

The attack is network-based and requires an authenticated attacker with low privileges. The exploitation flow involves:

  1. The attacker identifies a Spark instance with ACLs enabled via spark.acls.enable
  2. The attacker crafts a malicious request with a specially formed user name
  3. The HttpSecurityFilter accepts the arbitrary user name, enabling impersonation
  4. The attacker navigates to functionality that triggers permission checking
  5. The permission check function constructs a Unix shell command using the malicious input
  6. The injected command executes with the privileges of the Spark process

The vulnerability does not require user interaction and can be exploited remotely. For detailed technical information, refer to the Openwall Security Discussion and the Apache Mailing List Thread.

Detection Methods for CVE-2023-32007

Indicators of Compromise

  • Unusual user names appearing in Spark UI authentication logs containing shell metacharacters (;, |, $(), backticks)
  • Unexpected processes spawned as child processes of the Spark application
  • Anomalous outbound network connections from Spark worker nodes
  • Authentication attempts with crafted user names targeting the Spark UI endpoints

Detection Strategies

  • Monitor Spark UI access logs for requests containing suspicious characters in user name fields
  • Implement network-level monitoring for unusual traffic patterns to and from Spark instances
  • Deploy endpoint detection to identify unexpected command execution from Spark processes
  • Review authentication logs for impersonation attempts or repeated access pattern anomalies

Monitoring Recommendations

  • Enable verbose logging on Apache Spark instances and forward logs to a SIEM platform
  • Configure alerting for any shell command execution spawned by Spark processes
  • Monitor for modifications to Spark configuration files, particularly ACL-related settings
  • Implement file integrity monitoring on critical Spark installation directories

How to Mitigate CVE-2023-32007

Immediate Actions Required

  • Upgrade Apache Spark to version 3.4.0 or later, which is a supported release
  • If immediate upgrade is not possible, consider disabling the Spark UI entirely
  • Restrict network access to Spark UI to trusted IP ranges only
  • Review and audit all Spark instances for ACL configurations using spark.acls.enable
  • Implement network segmentation to isolate Spark clusters from untrusted networks

Patch Information

Users are recommended to upgrade to a supported version of Apache Spark, such as version 3.4.0 or later. The affected versions are no longer supported by the Apache Spark maintainers, making upgrade the primary remediation path. Consult the Apache Spark Security Overview for official security guidance and upgrade instructions.

Workarounds

  • Disable ACLs by setting spark.acls.enable=false if the feature is not required (note: this reduces security in other ways)
  • Place the Spark UI behind a reverse proxy with strong authentication controls
  • Use firewall rules to restrict Spark UI access to only authorized administrators
  • Implement network-level access controls to prevent untrusted users from reaching Spark endpoints
bash
# Configuration example
# Restrict Spark UI binding to localhost only (prevents external access)
spark.ui.bindAddress=127.0.0.1

# If ACLs must remain enabled, ensure proper authentication is configured
spark.authenticate=true
spark.authenticate.secret=<your-secure-secret>

# Limit UI access through configuration
spark.ui.reverseProxy=true
spark.ui.reverseProxyUrl=https://your-secure-proxy.example.com/spark

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechApache Spark

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability92.17%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-77
  • Technical References
  • Openwall Security Discussion

  • Apache Mailing List Thread

  • CVE-2022-33891 Record
  • Vendor Resources
  • Apache Spark Security Overview
  • Related CVEs
  • CVE-2025-54920: Apache Spark RCE Vulnerability

  • CVE-2022-33891: Apache Spark UI ACL Bypass RCE Vulnerability

  • CVE-2021-38296: Apache Spark Information Disclosure Flaw

  • CVE-2020-9480: Apache Spark Auth Bypass 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