{"id":"CVE-2021-38296","aliases":["CVE-2021-38296","GHSA-9rr6-jpg7-9jg6","BIT-SPARK-2021-38296","PYSEC-2022-186"],"related":[],"kind":"vulnerability","state":"published","title":"Apache Spark Key Negotiation Vulnerability","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","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","source":"cvelist"},{"lang":"es","text":"Apache Spark soporta el cifrado de extremo a extremo de las conexiones RPC por medio de \"spark.authenticate\" y \"spark.network.crypto.enabled\". En versiones 3.1.2 y anteriores, usa un protocolo de autenticación mutua a medida que permite la recuperación total de la clave de cifrado. Después de un ataque interactivo inicial, esto permitiría a alguien descifrar el tráfico de texto plano fuera de línea. Tenga en cuenta que esto no afecta a los mecanismos de seguridad controlados por \"spark.authenticate.enableSaslEncryption\", \"spark.io.encryption.enabled\", \"spark.ssl\", \"spark.ui.strictTransportSecurity\". Actualice a Apache Spark versión 3.1.3 o posterior","source":"nvd"}],"published":"2022-03-10T08:20:12.000Z","modified":"2026-09-08T08:48:19.537Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-294"],"affected":[{"ranges":[{"type":"custom","introduced":"up to and including version 3.1.2","lastAffected":"3.1.2","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Spark","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.1.3"}],"ecosystem":"Maven","package":"org.apache.spark:spark-core","purl":"pkg:maven/org.apache.spark/spark-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.1.3"}],"ecosystem":"PyPI","package":"pyspark","purl":"pkg:pypi/pyspark","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.1.3"}],"vendor":"apache","product":"spark","cpe":"cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0.8.2.0"},{"status":"affected","version":"8.0.8.3.0"}],"vendor":"oracle","product":"financial_services_crime_and_compliance_management_studio","cpe":"cpe:2.3:a:oracle:financial_services_crime_and_compliance_management_studio:8.0.8.2.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.1.3"}],"ecosystem":"PyPI","package":"pyspark","purl":"pkg:pypi/pyspark","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.1.3"}],"ecosystem":"Bitnami","package":"spark","purl":"pkg:bitnami/spark","source":"bitnami"}],"references":[{"url":"https://lists.apache.org/thread/70x8fw2gx3g9ty7yk0f2f1dlpqml2smd","tags":["advisory","mailing-list","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["advisory","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38296","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/advisories/GHSA-9rr6-jpg7-9jg6","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-186.yaml","tags":["web"],"sources":["ghsa"]}],"credits":["Steve Weis (Databricks)"],"assigner":"apache","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-38296","url":"https://www.cve.org/CVERecord?id=CVE-2021-38296","licence":"CVE Terms of Use","modified":"2024-08-04T01:37:16.315Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9rr6-jpg7-9jg6","url":"https://github.com/advisories/GHSA-9rr6-jpg7-9jg6","licence":"CC-BY-4.0","modified":"2024-10-25T21:03:01.673Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-38296","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38296","licence":"Public domain","modified":"2026-06-17T04:01:49.240Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-186","url":"https://osv.dev/vulnerability/PYSEC-2022-186","licence":"CC-BY-4.0","modified":"2023-12-06T01:01:25.567Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-SPARK-2021-38296","url":"https://osv.dev/vulnerability/BIT-SPARK-2021-38296","licence":"Apache-2.0","modified":"2026-09-08T08:48:19.537Z"}],"updatedAt":"2026-11-25T22:58:07.149Z","epss":{"score":0.01611,"percentile":0.76653,"date":"2026-12-01T12:00:22.000Z"}}