{"schemaVersion":4,"id":"CVE-2021-38296","aliases":["GHSA-9rr6-jpg7-9jg6","BIT-spark-2021-38296","PYSEC-2022-186"],"status":"published","duplicateOf":null,"title":"Apache Spark Key Negotiation Vulnerability","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","dates":{"published":"2022-03-10T08:20:12.000Z","modified":"2024-08-04T01:37:16.315Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":8.7,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Maven","score":8.7,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01611,"percentile":0.76779,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":-0.23400000000000018,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.01845},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01611,"percentile":0.76779}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.01845,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01611,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01611,"percentile":0.76779}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-294","name":"Authentication Bypass by Capture-replay","description":"A capture-replay flaw exists when the design of the product makes it possible for a malicious user to sniff network traffic and bypass authentication by replaying it to the server in question to the same effect as the original message (or with minor changes).","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/294.html"}],"affected":[{"vendor":"apache software foundation","product":"apache spark","name":"Apache Spark","label":"apache spark","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ up to and including version 3.1.2, ≤ 3.1.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"up to and including version 3.1.2","startInclusive":true,"end":"3.1.2","endInclusive":true}}],"versionsText":"≥ up to and including version 3.1.2, ≤ 3.1.2","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_spark"},{"vendor":"apache","product":"spark","name":"Spark","label":"spark","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.1.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.1.3","endInclusive":false}}],"versionsText":"< 3.1.3","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"apache-spark","label":"Apache Spark","category":"server-app"}},"hubHref":"/vendor/apache/spark"},{"vendor":"org.apache.spark","product":"spark-core","name":"org.apache.spark:spark-core","label":"spark-core","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.spark/spark-core","purlType":"maven","versions":[{"text":"< 3.1.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.1.3","endInclusive":false}}],"versionsText":"< 3.1.3","eol":null,"hubHref":null},{"vendor":"oracle","product":"financial_services_crime_and_compliance_management_studio","name":"financial services crime and compliance management studio","label":"financial_services_crime_and_compliance_management_studio","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"8.0.8.2.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"8.0.8.2.0"}},{"text":"8.0.8.3.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"8.0.8.3.0"}}],"versionsText":"8.0.8.2.0 | 8.0.8.3.0","eol":null,"hubHref":"/vendor/oracle/financial_services_crime_and_compliance_management_studio"},{"vendor":"PyPI","product":"pyspark","name":"pyspark","label":"pyspark","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/pyspark","purlType":"pypi","versions":[{"text":"< 3.1.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.1.3","endInclusive":false}}],"versionsText":"< 3.1.3","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://lists.apache.org/thread/70x8fw2gx3g9ty7yk0f2f1dlpqml2smd","label":"lists.apache.org/thread/70x8fw2gx3g9ty7yk0f2f1dlpqml2smd","hostname":"lists.apache.org","tags":["X Refsource MISC","WEB","Mailing List","Vendor Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","label":"www.oracle.com/security-alerts/cpujul2022.html","hostname":"www.oracle.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38296","label":"nvd.nist.gov/vuln/detail/CVE-2021-38296","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/advisories/GHSA-9rr6-jpg7-9jg6","label":"github.com/advisories/GHSA-9rr6-jpg7-9jg6","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-186.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-186.yaml","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-03-10T08:20:12.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T01:37:16.315Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)","nextStep":"Check applicability and the vendor advisory: no fix release is recorded here","rank":[0,0,0,0,2,75],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.01611,"stale":false,"promoted":null},{"type":"cvss","source":"osv_pypi","date":"2024-08-04T01:37:16.315Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.7,"vector":"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","version":"4.0"},{"type":"cvss","source":"osv_pypi","date":"2024-08-04T01:37:16.315Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"cvss","source":"osv_maven","date":"2024-08-04T01:37:16.315Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.7,"vector":"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","version":"4.0"},{"type":"cvss","source":"osv_maven","date":"2024-08-04T01:37:16.315Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2024-08-04T01:37:16.315Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2024-08-04T01:37:16.315Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","version":"2.0"}],"epss":{"value":0.01611,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T05:02:50.511Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T05:02:51.052Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T05:02:51.313Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T05:00:54.010Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T05:02:48.843Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T05:02:47.884Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T05:26:53.630Z","stale":false,"partial":false}}