CRITICAL 9.8

CVE-2018-17190

Remote Code Execution in spark-core

Description

In all versions of Apache Spark, its standalone resource manager accepts code to execute on a 'master' host, that then runs that code on 'worker' hosts. The master itself does not, by design, execute user code. A specially-crafted request to the master can, however, cause the master to execute code too. Note that this does not affect standalone clusters with authentication enabled. While the master host typically has less outbound access to other resources than a worker, the execution of code on the master is nevertheless unexpected.

Mitigation

Enable authentication on any Spark standalone cluster that is not otherwise secured from unwanted access, for example by network-level restrictions. Use spark.authenticate and related security properties described at https://spark.apache.org/docs/latest/security.html

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
org.apache.spark » spark-core_2.10
*
-
org.apache.spark » spark-core_2.11
*
-

Blast radius

1affected artifacts
7,141affected versions
2,991dependent artifacts (est.)
207,127dependent versions

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

DepthDependent versions
Direct
104,606
2 hops
49,197
3 hops
37,517
4 hops
11,088
5 hops
4,247
6 hops
472

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.