{"id":"CVE-2021-38296","published":"2022-03-10T08:20:12Z","modified":"2024-08-04T01:37:16Z","title":"Apache Spark Key Negotiation Vulnerability","vendor":"Apache","product":"Apache Spark","tier":"tail","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","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01845,"percentile":0.79572,"provenance":"source"},"cwes":[{"id":"CWE-294","name":"Authentication Bypass by Capture-replay"}],"references":[{"url":"https://lists.apache.org/thread/70x8fw2gx3g9ty7yk0f2f1dlpqml2smd","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_refsource_MISC"]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":15.91}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Spark","versions":[">= up to and including version 3.1.2, <= 3.1.2"]}],"affected":[{"ecosystem":"Maven","package":"org.apache.spark:spark-core","vulnerableRanges":["<3.1.3"],"patched":["3.1.3"],"from":["GHSA-9rr6-jpg7-9jg6"],"provenance":"source"},{"ecosystem":"PyPI","package":"pyspark","vulnerableRanges":["<3.1.3"],"patched":["3.1.3"],"from":["GHSA-9rr6-jpg7-9jg6","PYSEC-2022-186"],"provenance":"source"}],"summary":{"text":"Apache Spark's RPC connection encryption, configured through \"spark.authenticate\" and \"spark.network.crypto.enabled\", uses a bespoke mutual authentication protocol in versions 3.1.2 and earlier that allows full encryption key recovery. An attacker who performs an initial interactive attack can then decrypt captured plaintext traffic offline, and the flaw does not affect the encryption mechanisms controlled by \"spark.authenticate.enableSaslEncryption\", \"spark.io.encryption.enabled\", \"spark.ssl\", or \"spark.ui.strictTransportSecurity\".","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:50Z"},"euvd":{"id":"EUVD-2022-0216","exploited":false,"provenance":"source"}}