QID 376742

Date Published: 2022-07-25

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

Apache Spark is a unified analytics engine for big data processing, with built-in modules for streaming, SQL, machine learning and graph processing.

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

Affected Versions:
Apache Spark 3.0.3 and earlier
Apache Spark 3.1.1 and 3.1.2
Apache Spark 3.2.0 and 3.2.1
QID Detection Logic:
It checks for vulnerable version of Apache Spark by invoking spark-shell --version command.

This vulnerability results in arbitrary shell command execution

  • 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 376742

    Software Advisories
    Advisory ID Software Component Link
    Apache Spark URL Logo lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc