QID 150557

Date Published: 2022-08-08

QID 150557: Apache Spark Shell Command Injection Vulnerability (CVE-2022-33891)

Apache Spark is a multi-language engine for executing data engineering, data science, and machine learning on single-node machines or clusters.

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. This will result in arbitrary shell command execution as the user Spark is currently running as.

Affected Versions:
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.

QID Detection Logic (Unauthenticated) :
The QID sends a HTTP GET request with specially crafted payload, where vulnerable servers will make a DNS query that will trigger Qualys periscope detection mechanism.

Successful exploitation of this vulnerability could allow a remote attacker to execute arbitrary code on the target system.

  • CVSS V3 rated as Critical - 8.8 severity.
  • CVSS V2 rated as Critical - 10 severity.
  • Solution
    Customers are advised to upgrade to Apache Spark 3.1.3 or 3.0.4 or 3.3.0 or 3.2.2.For further information please refer to Apache Spark Security Advisory.

    CVEs related to QID 150557

    Software Advisories
    Advisory ID Software Component Link
    Apache Spark URL Logo lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc
    © 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