CVE-2021-38296
Authentication Bypass by Capture-replay in Apache Spark
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
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.spark » spark-core | < 3.1.3 | 3.1.3 |
Blast radius
53% of the dependent artifacts (1,289) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 96,880 |
| 2 hops | 42,841 |
| 3 hops | 35,090 |
| 4 hops | 10,060 |
| 5 hops | 4,141 |
| 6 hops | 435 |
Most used dependents
- org.apache.spark » spark-sql3,174 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.camel.springboot » camel-core-starter558 usages
- org.apache.spark » spark-catalyst502 usages
- org.apache.hive » hive-metastore480 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.apache.hive » hive-jdbc404 usages
- org.apache.hive » hive-common305 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.apache.hive » hive-service301 usages
- org.apache.hive » hive-serde206 usages
- org.apache.camel.quarkus » camel-quarkus-package-maven-plugin152 usages
Computed from the dependency graph of build 20261124.0621 (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-2021-38296 | nvd.nist.gov |
| Advisory | GitHub advisory GHSA-9rr6-jpg7-9jg6 | github.com |
| Web | pypa/advisory-database PYSEC-2022-186.yaml | github.com |
| Web | thread/70x8fw2gx3g9ty7yk0f2f1dlpqml2smd | lists.apache.org |
| Web | security-alerts/cpujul2022.html | oracle.com |
