CVE-2021-38296: Apache Spark Key Negotiation Vulnerability
Vulnerability summary
CVE-2021-38296 is a high (CVSS 7.5) Authentication Bypass by Capture-replay vulnerability in apache software foundation apache spark. EPSS estimates a 1.61% chance of exploitation in the next 30 days, higher than 76.7% of scored vulnerabilities.
Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 10-03-2022PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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
CVSS metrics
6 scores · 3 sources · 3 versions- OSV · MavenEcosystem advisory · calculated8.7HighCVSS: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 · PypiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · MavenEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
1.61%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
Decrease -0.23 pp
From 1.85% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Apache1 product
- spark< 3.1.3
Apache software foundation1 product
- apache spark≥ up to and including version 3.1.2, ≤ 3.1.2
Oracle1 product
- financial_services_crime_and_compliance_management_studio8.0.8.2.0 | 8.0.8.3.0
Org.apache.spark1 product
- spark-core< 3.1.3
PyPI1 product
- pyspark< 3.1.3
5 vendors · 5 products
References
5 links- lists.apache.org/thread/70x8fw2gx3g9ty7yk0f2f1dlpqml2smdX Refsource MISCWEBMailing ListVendor Advisory