Advisory

GHSA-9rr6-jpg7-9jg6

Also known as: BIT-spark-2021-38296, CVE-2021-38296, PYSEC-2022-186

Summary

Authentication Bypass by Capture-replay in Apache Spark

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-03-11 00:02 UTC
Modified
2024-10-25 21:03 UTC

Affected packages and fixes

pyspark

PyPI · All systems

Affected

  • introduced 0, fixed 3.1.3 (ecosystem)

Fixed versions

3.1.3

Fix

  • Fixed version 3.1.3
    pip install --upgrade pyspark==3.1.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences