# CVE-2021-38296: Apache Spark Key Negotiation Vulnerability

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.61%, higher than 76% of CVEs (2026-12-01)
- Published: 2022-03-10T08:20:12.000Z
- Modified: 2026-09-08T08:48:19.537Z
- Also known as: GHSA-9rr6-jpg7-9jg6, BIT-SPARK-2021-38296, PYSEC-2022-186
- Weaknesses: CWE-294
- Assigned by: apache

## 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

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Spark: from up to and including version 3.1.2 up to 3.1.2
- org.apache.spark:spark-core (Maven): before 3.1.3
- pyspark (PyPI): before 3.1.3
- apache spark: before 3.1.3
- oracle financial_services_crime_and_compliance_management_studio: 8.0.8.2.0; 8.0.8.3.0
- spark (Bitnami): before 3.1.3

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://lists.apache.org/thread/70x8fw2gx3g9ty7yk0f2f1dlpqml2smd> (advisory, mailing-list, vendor-advisory, web)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (advisory, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-38296> (advisory, web)
- <https://github.com/advisories/GHSA-9rr6-jpg7-9jg6> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-186.yaml> (web)

## Sources

- CVE List: [CVE-2021-38296](https://www.cve.org/CVERecord?id=CVE-2021-38296), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-9rr6-jpg7-9jg6](https://github.com/advisories/GHSA-9rr6-jpg7-9jg6), CC-BY-4.0, modified 2024-10-25
- NVD: [CVE-2021-38296](https://nvd.nist.gov/vuln/detail/CVE-2021-38296), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-186](https://osv.dev/vulnerability/PYSEC-2022-186), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-SPARK-2021-38296](https://osv.dev/vulnerability/BIT-SPARK-2021-38296), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-38296 · Whole record: https://cve.day/CVE-2021-38296.json · Rebuilt by cve.day 2026-11-25T22:58:07.149Z
