CVE-2023-22946: Apache Spark proxy-user privilege escalation from malicious configuration class
In Apache Spark versions prior to 3.4.0, applications using spark-submit can specify a 'proxy-user' to run as, limiting privileges. The application can execute code with the privileges of the submitting user, however, by providing malicious configuration-related classes on the classpath. This affects architectures relying on proxy-user, for example those using Apache Livy to manage submitted applications.
Update to Apache Spark 3.4.0 or later, and ensure that spark.submit.proxyUser.allowCustomClasspathInClusterMode is set to its default of "false", and is not overridden by submitted applications.
Other sources
In Apache Spark versions prior to versions 3.4.0 and 3.3.3, applications using spark-submit can specify a proxy-user to run as, limiting privileges. The application can execute code with the privileges of the submitting user, however, by providing malicious configuration-related classes on the classpath. This affects architectures relying on proxy-user, for example those using Apache Livy to manage submitted applications.
Update to Apache Spark 3.4.0, 3.3.3, or later, and ensure that spark.submit.proxyUser.allowCustomClasspathInClusterMode is set to its default of "false", and is not overridden by submitted applications.
— GitHub
Affected Software
Event History
Frequently Asked Questions
What is the vulnerability ID?
The vulnerability ID is CVE-2023-22946.
What is the severity of CVE-2023-22946?
CVE-2023-22946 has a severity rating of 9.9 (critical).
What is the affected software?
The affected software includes Apache Spark versions prior to 3.4.0 and versions 3.3.3, specifically the `org.apache.spark:spark-core_2.13` package.
What is the remedy for CVE-2023-22946?
To fix CVE-2023-22946, update to Apache Spark version 3.4.0 or version 3.3.3.
Where can I find more information about CVE-2023-22946?
You can find more information about CVE-2023-22946 on the NIST National Vulnerability Database (NVD) website.