Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pyspark
  4. ›
  5. CVE-2021-38296

CVE-2021-38296: Authentication Bypass by Capture-replay in Apache Spark

March 11, 2022 (updated October 25, 2024)

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

References

  • github.com/advisories/GHSA-9rr6-jpg7-9jg6
  • github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-186.yaml
  • lists.apache.org/thread/70x8fw2gx3g9ty7yk0f2f1dlpqml2smd
  • nvd.nist.gov/vuln/detail/CVE-2021-38296
  • www.oracle.com/security-alerts/cpujul2022.html

Code Behaviors & Features

Detect and mitigate CVE-2021-38296 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.1.3

Fixed versions

  • 3.1.3

Solution

Upgrade to version 3.1.3 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-294: Authentication Bypass by Capture-replay

Source file

pypi/pyspark/CVE-2021-38296.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:44 +0000.