CRITICAL 9.9

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)

ArtifactAffected versionsFixed 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

1affected artifacts
7,041affected versions
2,748dependent artifacts (est.)
199,034dependent versions

54% of the dependent artifacts (1,487) still pull an affected version in their latest release.

DepthDependent 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

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