{"schemaVersion":3,"id":"CVE-2021-38296","aliases":["GHSA-9rr6-jpg7-9jg6","BIT-spark-2021-38296","PYSEC-2022-186"],"status":"published","duplicateOf":null,"title":null,"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.01845,"percentile":0.78729,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00: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":0.78729}],"last30":[{"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":0.78729}]},"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}],"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}],"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}],"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},{"text":"8.0.8.3.0","noFixRecorded":false,"fixedIn":null}],"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}],"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}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T13:16:39.129Z","stale":false,"partial":false}}