CVE-2021-38296
Authentication Bypass by Capture-replay in Apache Spark
Overview
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 controlled by "spark.authenticate.enableSaslEncryption", "spark.io.encryption.enabled", "spark.ssl", "spark.ui.strictTransportSecurity". Update to Apache Spark 3.1.3 or later
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness: CWE-294
Affected packages · 5
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | spark | <3.1.3 | 3.1.3 |
| Maven | org.apache.spark:spark-core | <3.1.3 | 3.1.3 |
| PyPI | pyspark | <3.1.3 | 3.1.3 |
| Seal PyPI | pyspark | >=2.4.8+sp0, <2.4.8+sp999 | 2.4.8+sp999 |
| Seal PyPI | seal-pyspark | >=2.4.8+sp1, <2.4.8+sp999 | 2.4.8+sp999 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- github.com https://github.com/advisories/GHSA-9rr6-jpg7-9jg6
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-186.yaml
- lists.apache.org https://lists.apache.org/thread/70x8fw2gx3g9ty7yk0f2f1dlpqml2smd
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-38296
- www.oracle.com https://www.oracle.com/security-alerts/cpujul2022.html
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.