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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.spark » spark-core_2.10 | * | - |
| org.apache.spark » spark-core_2.11 | * | - |
Blast radius
63% of the dependent artifacts (1,890) still pull an affected version in their latest release.
| Depth | Dependent 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
- 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.
References
| Advisory | NVD CVE-2018-17190 | nvd.nist.gov |
| Advisory | GitHub advisory GHSA-phg2-9c5g-m4q7 | github.com |
| Web | thread.html/341c3187f15cdb0d353261d2bfecf2324d56cb7db1339bfc7b30f6e5@<dev.spark.apache.org ... | lists.apache.org |
| Web | glsa/201903-21 | security.gentoo.org |
| Web | security-alerts/cpujul2020.html | oracle.com |
| Web | bid/105976 | securityfocus.com |
