QID 730573

Date Published: 2022-07-26

QID 730573: Apache Spark Command Injection Vulnerability (Unauthenticated Check)

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:
This QID checks for vulnerable Apache Spark installation by sending a crafted payload to the webserver.

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 730573

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