CVE-2017-12612 Apache Spark Deserialization of Untrusted Data vulnerability

High 7.8 Published Updated

An attacker with local access can execute arbitrary code via unsafe deserialization in the Apache Spark launcher API socket.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2017-12612?

CVE-2017-12612 is a high-severity unsafe deserialization vulnerability in n/a, published on 13 Sep 2017. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-502

Which versions are affected by CVE-2017-12612?

7 open source packages ship an affected version, including pyspark, org.apache.spark:spark-core_2.10 and org.apache.spark:spark-core_2.11. It affects 1 product.

PackageAffectedFixed in
pyspark PyPIAll versions2.1.2
pyspark PyPIAll versions2.1.2
pyspark PyPIAll versions2.1.2
org.apache.spark:spark-core_2.10 MavenAll versions2.1.2
org.apache.spark:spark-core_2.10 MavenAll versions2.1.2
org.apache.spark:spark-core_2.11 MavenAll versions2.1.2
1 more packages
org.apache.spark:spark-core_2.11 MavenAll versions2.1.2

Products include Apache Spark.

How do I fix CVE-2017-12612?

Upgrade pyspark to 2.1.2 or later.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2017-12612 being exploited?

There is no known exploitation of CVE-2017-12612 in the wild and no public exploit code.

Sources

Also known as GHSA-8rhc-48pp-52gr, PYSEC-2017-147.

Is CVE-2017-12612 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free