Deserialization of Untrusted Data in Spark - CVE-2017-12612

 

Deserialization of Untrusted Data in Spark - CVE-2017-12612

Published: September 13, 2017 / Updated: August 8, 2020


Vulnerability identifier: #VU38292
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2017-12612
CWE-ID: CWE-502
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: Per Wendel
Affected software:
Spark

Detailed vulnerability description

The vulnerability allows a local authenticated user to execute arbitrary code.

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.2.0 or later.


How to mitigate CVE-2017-12612

Install update from vendor's website.

Sources