# CVE-2025-55039: Apache Spark, Apache Spark: RPC encryption defaults to unauthenticated AES-CTR mode, enabling man-in-the-middle ciphertext modification attacks

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.20% (percentile 11, 2026-12-02)
- **CWE:** CWE-347, CWE-326
- **Aliases:** GHSA-6p6v-m64v-jx8q, PYSEC-2025-184
- **Published:** 2025-10-15T07:19:25.493Z
- **Modified:** 2026-10-08T12:10:00.217Z

## 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

## 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

- PyPI `pyspark`: affected \< 3.4.4; \>= 3.5.0, \< 3.5.2; fixed 3.4.4, 3.5.2 (osv)
- Maven `org.apache.spark:spark-network-common_2.13`: affected \>= 3.5.0, \< 3.5.2; fixed 3.5.2, 3.4.4 (osv)
- Maven `org.apache.spark:spark-network-common_2.12`: affected \< 3.4.4; fixed 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)

## 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).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.20% chance of exploitation in the next 30 days (as of 2026-12-02).

### 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.

## References

- vendor: <https://lists.apache.org/thread/zrgyy9l85nm2c7vk36vr7bkyorg3w4qq>
- vendor: <https://github.com/advisories/GHSA-6p6v-m64v-jx8q>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-55039>
- patch: <https://github.com/apache/spark/commit/05ba74e5f8043601b7af530429ceaf828d7bb329>
- patch: <https://github.com/apache/spark/commit/405b23b1aef889fad03bf4e3ced6d427dc9a43f4>
- patch: <https://github.com/apache/spark/commit/f0563ef64c7f42df21b16ccaeb4cf1324ea720f9>
- other: <http://www.openwall.com/lists/oss-security/2025/10/14/11>
- other: <https://github.com/apache/spark>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2025-184.yaml>
- other: <https://issues.apache.org/jira/browse/SPARK-47172>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-55039>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2025-184> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6p6v-m64v-jx8q> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-55039> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-55039>
