{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-38296","id":"CVE-2021-38296","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","descriptionLong":"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","published":"2022-03-10T08:20:12.000Z","updated":"2026-10-24T10:30:22.515452964Z","reserved":"2021-08-09T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"apache","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},"metrics":[{"version":"4.0","score":null,"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","rating":"high","source":"GitHub"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":["Apache Software Foundation Apache Spark"],"affectedProducts":[{"vendor":"Apache Software Foundation","product":"Apache Spark","defaultStatus":null,"versions":[{"lessThanOrEqual":"3.1.2","status":"affected","version":"up to and including version 3.1.2","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.apache.spark:spark-core","purl":"pkg:maven/org.apache.spark/spark-core","ranges":["<3.1.3"],"fixed":["3.1.3"],"advisory":"GHSA-9rr6-jpg7-9jg6"},{"ecosystem":"PyPI","name":"pyspark","purl":"pkg:pypi/pyspark","ranges":["<3.1.3"],"fixed":["3.1.3"],"advisory":"GHSA-9rr6-jpg7-9jg6"}],"cwes":["CWE-294"],"aliases":["BIT-spark-2021-38296","GHSA-9rr6-jpg7-9jg6","PYSEC-2022-186"],"references":[{"url":"https://lists.apache.org/thread/70x8fw2gx3g9ty7yk0f2f1dlpqml2smd","tags":["x_refsource_MISC","x_transferred","Mailing List","Vendor Advisory","advisory","web"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38296","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-9rr6-jpg7-9jg6","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-186.yaml","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01845,"epssPercentile":0.79508,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-38296","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38296","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-38296","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-9rr6-jpg7-9jg6","ok":true,"note":"GHSA-9rr6-jpg7-9jg6"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-38296","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}