---
id: CVE-2025-55039
title: "This issue affects Apache Spark versions before  3.4.4,\_3.5.2 and 4.0.0.\n\n\n\nApache 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.\n\nWhen spark.network.cr…"
summary: "This issue affects Apache Spark versions before  3.4.4,\_3.5.2 and 4.0.0.\n\n\n\nApache 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.\n\nWhen spark.network.cr…"
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'
cwe:
  - CWE-326
  - CWE-347
vendor: apache
product: spark
affected:
  - spark < 3.4.4
  - 'spark >= 3.5.0, < 3.5.2'
patched:
  - spark 3.5.2
published: '2025-10-15'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T12:10:00.217'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-55039'
references:
  - url: 'https://lists.apache.org/thread/zrgyy9l85nm2c7vk36vr7bkyorg3w4qq'
    label: security@apache.org
  - url: 'http://www.openwall.com/lists/oss-security/2025/10/14/11'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00236
epssPercentile: 0.13367
ingestedAt: '2026-10-08T11:31:27.417Z'
---

## Overview

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

- `spark < 3.4.4`
- `spark >= 3.5.0, < 3.5.2`

## Remediation

Upgrade past the affected range:

- `spark 3.5.2`
