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