CVE-2021-38296
HIGH7.5EPSS 2.1%Apache Spark Key Negotiation Vulnerability
Published: 3/11/2022Modified: 5/20/2025
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 packages (4)
- Bitnami/sparkfrom 0, < 3.1.3
- Maven/org.apache.spark:spark-corefrom 0, < 3.1.3
- PyPI/pysparkfrom 0, < 3.1.3
- PyPI/pysparkfrom 0, < 3.1.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
References (5)
- ADVISORYhttps://github.com/advisories/GHSA-9rr6-jpg7-9jg6
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-38296
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-186.yaml
- WEBhttps://lists.apache.org/thread/70x8fw2gx3g9ty7yk0f2f1dlpqml2smd
- WEBhttps://www.oracle.com/security-alerts/cpujul2022.html