CVE-2023-22946
Apache Spark vulnerable to Improper Privilege Management
Description
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.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.spark » spark-core_2.12 | < 3.3.3 | 3.3.3 |
| org.apache.spark » spark-core_2.13 | < 3.3.3 | 3.3.3 |
Blast radius
54% of the dependent artifacts (1,487) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 100,396 |
| 2 hops | 46,006 |
| 3 hops | 36,884 |
| 4 hops | 11,047 |
| 5 hops | 4,232 |
| 6 hops | 469 |
Most used dependents
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-mllib831 usages
- org.apache.hive » hive-exec699 usages
- org.apache.spark » spark-streaming670 usages
- org.apache.spark » spark-hive633 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- org.apache.spark » spark-catalyst502 usages
- org.apache.hive » hive-metastore480 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.apache.hive » hive-jdbc404 usages
- org.apache.hive » hive-common305 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.apache.hive » hive-service301 usages
- org.apache.hive » hive-serde206 usages
- org.apache.spark » spark-avro163 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects PyPI (1 package) . See all on OSV
References
| Advisory | NVD CVE-2023-22946 | nvd.nist.gov |
| Package | apache/spark | github.com |
| Web | apache/spark pull request #39474 | github.com |
| Web | apache/spark pull request #41428 | github.com |
| Web | apache/spark commit 909da96 | github.com |
| Web | degant/spark commit bfba577 | github.com |
| Web | pypa/advisory-database PYSEC-2023-44.yaml | github.com |
| Web | jira/browse/SPARK-41958 | issues.apache.org |
| Web | thread/yllfl25xh5tbotjmg93zrq4bzwhqc0gv | lists.apache.org |
