Apache Spark Command Injection Vulnerability

Summary

CVECVE-2022-33891
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-07-18 07:15:00 UTC
Updated2023-08-02 17:21:00 UTC
DescriptionThe Apache Spark UI offers the possibility to enable ACLs via the configuration option spark.acls.enable. With an authentication filter, this checks whether a user has access permissions to view or modify the application. If ACLs are enabled, a code path in HttpSecurityFilter can allow someone to perform impersonation by providing an arbitrary user name. A malicious user might then be able to reach a permission check function that will ultimately build a Unix shell command based on their input, and execute it. This will result in arbitrary shell command execution as the user Spark is currently running as. This affects Apache Spark versions 3.0.3 and earlier, versions 3.1.1 to 3.1.2, and versions 3.2.0 to 3.2.1.

Risk And Classification

EPSS: 0.935130000 probability, percentile 0.998280000 (date 2026-04-21)

CISA KEV: Listed on 2023-03-07; due 2023-03-28; ransomware use Unknown

Problem Types: CWE-78

CISA Known Exploited Vulnerability

VendorApache
ProductSpark
NameApache Spark Command Injection Vulnerability
Required ActionApply updates per vendor instructions.
Noteshttps://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc; https://nvd.nist.gov/vuln/detail/CVE-2022-33891

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Apache Spark All All All All
Application Apache Spark All All All All
Application Apache Spark All All All All

References

ReferenceSourceLinkTags
Apache Spark Unauthenticated Command Injection ≈ Packet Storm MISC packetstormsecurity.com
oss-security - CVE-2023-32007: Apache Spark: Shell command injection via Spark UI MLIST www.openwall.com
N/A CONFIRM lists.apache.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
CISA Known Exploited Vulnerabilities catalog CISA www.cisa.gov kev

Legacy QID Mappings

  • 150557 Apache Spark Shell Command Injection Vulnerability (CVE-2022-33891)
  • 376742 Apache Spark Shell Command Injection Vulnerability (CVE-2022-33891)
  • 730573 Apache Spark Command Injection Vulnerability (Unauthenticated Check)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report