CVE-2017-12612
Apache Spark Deserialization of Untrusted Data vulnerability
Description
In Apache Spark 1.6.0 until 2.1.1, the launcher API performs unsafe deserialization of data received by its socket. This makes applications launched programmatically using the launcher API potentially vulnerable to arbitrary code execution by an attacker with access to any user account on the local machine. It does not affect apps run by spark-submit or spark-shell. The attacker would be able to execute code as the user that ran the Spark application. Users are encouraged to update to version 2.1.2, 2.2.0 or later.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.spark » spark-core_2.10 | < 2.1.2 | 2.1.2 |
| org.apache.spark » spark-core_2.11 | < 2.1.2 | 2.1.2 |
Blast radius
59% of the dependent artifacts (584) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 45,551 |
| 2 hops | 23,838 |
| 3 hops | 29,338 |
| 4 hops | 8,109 |
| 5 hops | 3,022 |
| 6 hops | 28 |
Most used dependents
- org.apache.spark » spark-sql3,176 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.spark » spark-catalyst503 usages
- org.apache.hive » hive-metastore480 usages
- org.apache.hive » hive-jdbc404 usages
- org.apache.hive » hive-common305 usages
- org.apache.hive » hive-service301 usages
- org.apache.hive » hive-serde206 usages
- org.apache.spark » spark-graphx143 usages
- org.apache.spark » spark-yarn130 usages
- com.holdenkarau » spark-testing-base126 usages
- org.apache.spark » spark-repl110 usages
Computed from the dependency graph of build 20261125.0317 (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-2017-12612 | nvd.nist.gov |
| Web | pypa/advisory-database PYSEC-2017-147.yaml | github.com |
| Web | mod_mbox/spark-dev/201709.mbox/<CAEccTyy-1yYuhdNgkBUg0sr9NeaZSrBKkBePdTNZbxXZNTAR-g@mail.g ... | mail-archives.apache.org |
