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
    • 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-2022-33891

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

CVE-2022-33891 is a remote code execution vulnerability in Apache Spark UI that allows attackers to bypass ACL checks and execute arbitrary shell commands. This article covers technical details, affected versions, and mitigation.

Published: February 18, 2026

CVE-2022-33891 Overview

CVE-2022-33891 is a command injection vulnerability in the Apache Spark UI that allows authenticated attackers to execute arbitrary shell commands on affected systems. The vulnerability exists in the HttpSecurityFilter code path when ACLs are enabled via the spark.acls.enable configuration option. When an authentication filter is active, a malicious user can perform impersonation by providing an arbitrary user name, which is then used to construct a Unix shell command without proper sanitization. This results in arbitrary shell command execution under the context of the Spark service account.

Critical Impact

This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild. Successful exploitation allows attackers to execute arbitrary commands as the Spark user, potentially leading to complete system compromise, data exfiltration, and lateral movement within enterprise environments.

Affected Products

  • Apache Spark versions 3.0.3 and earlier
  • Apache Spark versions 3.1.1 to 3.1.2
  • Apache Spark versions 3.2.0 to 3.2.1

Discovery Timeline

  • 2022-07-18 - CVE-2022-33891 published to NVD
  • 2025-10-23 - Last updated in NVD database

Technical Details for CVE-2022-33891

Vulnerability Analysis

This vulnerability represents a classic command injection flaw (CWE-78) within Apache Spark's security filtering mechanism. The root cause lies in the improper handling of user-supplied input during the access control verification process. When ACLs are enabled in Apache Spark, the HttpSecurityFilter component processes authentication requests to determine whether users have appropriate permissions to view or modify applications.

The vulnerability is exploitable over the network and requires low-privileged access to initiate the attack. The exploitation does not require user interaction, making it suitable for automated attacks. Successful exploitation can result in complete compromise of confidentiality, integrity, and availability of the affected system.

Root Cause

The vulnerability stems from insufficient input validation in the HttpSecurityFilter component. When processing authentication requests with ACLs enabled, the filter allows attackers to specify an arbitrary username through the doAs parameter. This user-controlled input is subsequently passed to a permission check function that constructs a Unix shell command without proper sanitization or escaping. The unsanitized input is then executed via shell command invocation, allowing command injection through specially crafted payloads.

Attack Vector

Exploitation requires network access to the Apache Spark UI with ACLs enabled. An attacker can craft a malicious HTTP request containing shell metacharacters in the doAs parameter. When the server processes this request through the vulnerable code path, the injected commands are executed with the privileges of the Spark service account.

The attack flow involves:

  1. Identifying a vulnerable Apache Spark instance with ACLs enabled
  2. Crafting an HTTP request to the Spark UI with a malicious doAs parameter containing shell commands
  3. The HttpSecurityFilter processes the request and passes the unsanitized input to the permission check function
  4. The permission check function constructs and executes a shell command incorporating the attacker-controlled input
  5. Arbitrary commands execute as the Spark user

For detailed exploitation techniques, refer to the Packet Storm Security Exploit documentation.

Detection Methods for CVE-2022-33891

Indicators of Compromise

  • HTTP requests to Spark UI endpoints containing the doAs parameter with shell metacharacters (;, |, &, $(), backticks)
  • Unusual child processes spawned by the Spark service account
  • Unexpected outbound network connections from Spark nodes
  • Anomalous command execution patterns in system logs associated with the Spark user

Detection Strategies

  • Monitor HTTP access logs for requests containing suspicious doAs parameter values with shell escape characters
  • Implement Web Application Firewall (WAF) rules to detect and block command injection patterns in URL parameters
  • Deploy endpoint detection and response (EDR) solutions to monitor for anomalous process creation by Spark processes
  • Analyze network traffic for unusual patterns originating from Spark UI ports (default 4040, 8080, 18080)

Monitoring Recommendations

  • Enable verbose logging for Apache Spark's HttpSecurityFilter component
  • Configure SIEM rules to alert on command injection indicators in web server logs
  • Monitor system audit logs for shell command execution by the Spark service account
  • Implement file integrity monitoring on critical Spark configuration files

How to Mitigate CVE-2022-33891

Immediate Actions Required

  • Upgrade Apache Spark to version 3.1.3, 3.2.2, or 3.3.0 or later immediately
  • If ACLs are not required, disable them by setting spark.acls.enable=false
  • Restrict network access to Spark UI to trusted networks and administrators only
  • Review system logs for evidence of prior exploitation attempts

Patch Information

Apache has released security patches addressing this vulnerability in Spark versions 3.1.3, 3.2.2, and 3.3.0. Organizations should upgrade to the latest patched version appropriate for their deployment. For additional details, refer to the Apache Mailing List Thread and the CISA Known Exploited Vulnerability catalog entry.

Workarounds

  • Disable ACLs by setting spark.acls.enable=false in Spark configuration if access control is not strictly required
  • Place the Spark UI behind a reverse proxy with strict input validation and WAF protection
  • Implement network segmentation to limit access to Spark UI endpoints to authorized personnel only
  • Use firewall rules to restrict access to Spark ports (4040, 8080, 18080) from untrusted networks
bash
# Configuration example - Disable ACLs in spark-defaults.conf
spark.acls.enable=false

# Alternative: Restrict Spark UI binding to localhost only
spark.ui.reverseProxy=true
spark.ui.reverseProxyUrl=https://your-secure-proxy.example.com

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 Probability93.51%

  • 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
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-78
  • Technical References
  • Packet Storm Security Exploit

  • Openwall OSS-Security Discussion

  • Apache Mailing List Thread

  • CISA Known Exploited Vulnerability
  • Related CVEs
  • CVE-2025-54920: Apache Spark RCE Vulnerability

  • CVE-2023-32007: Apache Spark 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