CVE-2025-55039
Apache Spark, Apache Spark: RPC encryption defaults to unauthenticated AES-CTR mode, enabling man-in-the-middle ciphertext modification attacks
Also known as GHSA-6p6v-m64v-jx8q, PYSEC-2025-184
Mitigation
- Upgrade pyspark to one of 3.4.4, 3.5.2 (or later in the same release line).
- Upgrade org.apache.spark:spark-network-common_2.13 to one of 3.5.2, 3.4.4 (or later in the same release line).
- Upgrade org.apache.spark:spark-network-common_2.12 to one of 3.4.4, 3.5.2 (or later in the same release line).
Who should check
- Projects that depend on PyPI package pyspark (< 3.4.4; >= 3.5.0, < 3.5.2)
- Projects that depend on Maven package org.apache.spark:spark-network-common_2.13 (>= 3.5.0, < 3.5.2)
- Projects that depend on Maven package org.apache.spark:spark-network-common_2.12 (< 3.4.4)
- Anyone running Apache Software Foundation Apache Spark >= 3.5.0, < 3.5.2; < 3.4.4
Vulnerability facts
- Affected
- pyspark < 3.4.4; >= 3.5.0, < 3.5.2; org.apache.spark:spark-network-common_2.13 >= 3.5.0, < 3.5.2; org.apache.spark:spark-network-common_2.12 < 3.4.4
- Fixed in
- 3.4.4, 3.5.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
- CWE
- CWE-347, CWE-326
- Modified
Description
This issue affects Apache Spark versions before 3.4.4, 3.5.2 and 4.0.0. Apache Spark versions before 4.0.0, 3.5.2 and 3.4.4 use an insecure default network encryption cipher for RPC communication between nodes. When spark.network.crypto.enabled is set to true (it is set to false by default), but spark.network.crypto.cipher is not explicitly configured, Spark defaults to AES in CTR mode (AES/CTR/NoPadding), which provides encryption without authentication. This vulnerability allows a man-in-the-middle attacker to modify encrypted RPC traffic undetected by flipping bits in ciphertext, potentially compromising heartbeat messages or application data and affecting the integrity of Spark workflows. To mitigate this issue, users should either configure spark.network.crypto.cipher to AES/GCM/NoPadding to enable authenticated encryption or enable SSL encryption by setting spark.ssl.enabled to true, which provides stronger transport security.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI pyspark | < 3.4.4; >= 3.5.0, < 3.5.2 | 3.4.4, 3.5.2 | osv |
| Maven org.apache.spark:spark-network-common_2.13 | >= 3.5.0, < 3.5.2 | 3.5.2, 3.4.4 | osv |
| Maven org.apache.spark:spark-network-common_2.12 | < 3.4.4 | 3.4.4, 3.5.2 | osv |
| Apache Software Foundation Apache Spark | >= 3.5.0, < 3.5.2; < 3.4.4 | — | cvelist |
| Apache Software Foundation Apache Spark | >= 3.5.0, < 3.5.2; < 3.4.4 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-55039. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-55039.md Affected: pyspark < 3.4.4; >= 3.5.0, < 3.5.2; org.apache.spark:spark-network-common_2.13 >= 3.5.0, < 3.5.2; org.apache.spark:spark-network-common_2.12 < 3.4.4 Fixed in: 3.4.4, 3.5.2 Steps: 1. Search this machine and project for pyspark (PyPI), org.apache.spark:spark-network-common_2.13 (Maven), org.apache.spark:spark-network-common_2.12 (Maven), Apache Software Foundation Apache Spark: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2025-55039 being exploited?
There is no confirmed exploitation: CVE-2025-55039 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-55039?
Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2025-55039?
pyspark < 3.4.4; >= 3.5.0, < 3.5.2; org.apache.spark:spark-network-common_2.13 >= 3.5.0, < 3.5.2; org.apache.spark:spark-network-common_2.12 < 3.4.4.
Is there a fix for CVE-2025-55039?
Yes. Fixed in 3.4.4, 3.5.2. Upgrade pyspark to one of 3.4.4, 3.5.2 (or later in the same release line). Upgrade org.apache.spark:spark-network-common_2.13 to one of 3.5.2, 3.4.4 (or later in the same release line). Upgrade org.apache.spark:spark-network-common_2.12 to one of 3.4.4, 3.5.2 (or later in the same release line).
How do I check if I'm affected by CVE-2025-55039?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.