CVE-2021-38296 Apache Spark Key Negotiation Vulnerability

High 7.5 Published Updated

Attackers can recover encryption keys to decrypt RPC traffic offline if specific authentication features are enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-38296?

CVE-2021-38296 is a high-severity vulnerability in Apache Spark, published on 10 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Apache Spark supports end-to-end encryption of RPC connections via "spark.authenticate" and "spark.network.crypto.enabled". In versions 3.1.2 and earlier, it uses a bespoke mutual authentication protocol that allows for full encryption key recovery. After an initial interactive attack, this would allow someone to decrypt plaintext traffic offline. Note that this does not affect security mechanisms controlled by "spark.authenticate.enableSaslEncryption", "spark.io.encryption.enabled", "spark.ssl", "spark.ui.strictTransportSecurity". Update to Apache Spark 3.1.3 or later

Weakness: CWE-294

Which versions are affected by CVE-2021-38296?

6 open source packages ship an affected version, including org.apache.spark:spark-core, spark and pyspark. It affects 2 products.

PackageAffectedFixed in
org.apache.spark:spark-core MavenAll versions3.1.3
org.apache.spark:spark-core MavenAll versions3.1.3
spark BitnamiAll versions3.1.3
pyspark PyPIAll versions3.1.3
pyspark PyPIAll versions3.1.3
pyspark PyPIAll versions3.1.3

Products include Apache Spark, Oracle Financial Services Crime and Compliance Management Studio.

How do I fix CVE-2021-38296?

Upgrade org.apache.spark:spark-core to 3.1.3 or later.

Is CVE-2021-38296 being exploited?

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

Sources

Also known as BIT-spark-2021-38296, GHSA-9rr6-jpg7-9jg6, OESA-2022-1591, PYSEC-2022-186.

Is CVE-2021-38296 in your software?

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

Check your SBOMs for free