Apache Spark Deserialization of Untrusted Data vulnerability
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.apache.spark:spark-core_2.10 | < 2.1.2 | 2.1.2 |
| Java / Kotlin (Maven) | org.apache.spark:spark-core_2.11 | < 2.1.2 | 2.1.2 |
| Python (PyPI) | pyspark | < 2.1.2 | 2.1.2 |
References
- https://mail-archives.apache.org/mod_mbox/spark-dev/201709.mbox/%3CCAEccTyy-1yYuhdNgkBUg0sr9NeaZSrBKkBePdTNZbxXZNTAR-g%40mail.gmail.com%3E
- http://www.securityfocus.com/bid/100823
- https://nvd.nist.gov/vuln/detail/CVE-2017-12612
- https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2017-147.yaml
- CVSS vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-502- Platform
- Java / Kotlin (Maven), Python (PyPI)
- Package
org.apache.spark:spark-core_2.10, org.apache.spark:spark-core_2.11, pyspark- Disclosed
- 13.09.2017
- Updated
- 11.10.2026 12:18
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2017-147 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-8rhc-48pp-52gr - CC BY 4.0
Vulnerability history: org.apache.spark:spark-core_2.11
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 10
- First → latest
- 09.2017 03.2026
- Without a fix
- 5
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 4
- Medium 5
Disclosures per year
- 2017: 1
- 2018: 4
- 2019: 2
- 2020: 0
- 2021: 0
- 2022: 2
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 1
-
Apache Spark Deserialization of Untrusted Data vulnerability this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.