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

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-03-10 · Modified: 2024-08-04
- Aliases: GHSA-9rr6-jpg7-9jg6, BIT-spark-2021-38296, PYSEC-2022-186
- Record: https://cvemate.com/vulnerability/CVE-2021-38296 · JSON: https://cvemate.com/vulnerability/CVE-2021-38296/json

## Description

```text
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
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 1.611%, percentile 76.779%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache spark: ≥ up to and including version 3.1.2, ≤ 3.1.2
- apache spark: \< 3.1.3
- org.apache.spark spark-core (Maven): \< 3.1.3
- oracle financial\_services\_crime\_and\_compliance\_management\_studio: 8.0.8.2.0 \| 8.0.8.3.0
- PyPI pyspark (PyPI): \< 3.1.3

## References

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

---

Data as of 2026-12-05T04:02:40.456Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
