Vulnerabilities

Vulnerability · CVE-2022-33891

Apache Spark Command Injection Vulnerability

Published Jul 18, 2022 · catalog updated Jun 16, 2026 · Apache Spark

Patch now

CVE-2022-33891 is in the CISA known-exploited catalog, due Mar 28, 2023. Confirm Apache Spark against the vendor advisory and apply that fix. The CVSS score does not change the priority.

Severity
High8.8
Known exploitation
CISA KEV and VulnCheck KEV
EPSS
93.24%
Remediation
Remediation guidance
Affected products
cpe apache/spark · stated Spark · vendor Apache Spark

The 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.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • cpe apache/sparkversion unspecified
  • stated Spark<= 3.0.3
  • vendor Apache Sparkversion unspecified

How to fix CVE-2022-33891

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

CVE-2022-33891 is in the CISA known-exploited catalog, due Mar 28, 2023. Confirm Apache Spark against the vendor advisory and apply that fix. The CVSS score does not change the priority.

Which versions are affected?

Compare what you have installed with Spark <= 3.0.3. Apply updates per vendor instructions.

What should an analyst verify?

CWE-78: OS Command Injection. EPSS 93.24%. The CISA KEV listing is the exploitation evidence. A public exploit reference is linked in Sources. That is not the same as confirmed exploitation. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

No public source repository is identified for this product.

Timeline

Detection, updates, and resolution for this record.

  1. Jul 18, 2022 · Catalog

    Detected

    The 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 reac

  2. Mar 7, 2023 · CISA KEV

    Known exploited

    Apply updates per vendor instructions.

  3. Mar 28, 2023 · CISA KEV

    Remediation due

    Apply updates per vendor instructions.

  4. Jun 16, 2026 · Catalog

    Updated

    The 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 reac

Sources

  • CISA KEVConfirmed exploitationCVE-2022-33891

    Apache Spark contains a command injection vulnerability via Spark User Interface (UI) when Access Control Lists (ACLs) are enabled.

    cisa.gov
  • CVE.orgVulnerability recordCVE-2022-33891

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2022-33891

    30-day exploitation probability 93.2%

    first.org
  • Metasploit ModulesPublic exploit moduleexploit_linux/http/apache_spark_rce_cve_2022_33891

    Public module reference (excellent). Module source is not copied into this catalog.

    rapid7.com
  • NIST NVDVulnerability recordCVE-2022-33891

    The 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

    nvd.nist.gov
  • Packet Storm SecurityCited referencehttp://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html

    Packet Storm link already published on the finding.

    packetstormsecurity.com
  • VulnCheck KEVConfirmed exploitationCVE-2022-33891

    Apache Spark contains a command injection vulnerability via Spark User Interface (UI) when Access Control Lists (ACLs) are enabled.

    vulncheck.com

References

Freshness

Last verified in this catalog Oct 17, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.