CVE-2025-55039
JSON

6.5medium

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

Severity
6.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.20% (higher than 10% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-6p6v-m64v-jx8qPYSEC-2025-184

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

Product or packageVersionsReported by
org.apache.spark:spark-network-common_2.13from 3.5.0 before 3.5.2, before 3.4.4CVE List
org.apache.spark:spark-network-common_2.12from 3.5.0 before 3.5.2, before 3.4.4CVE List
org.apache.spark:spark-network-common_2.13 (Maven)from 3.5.0 before 3.5.2, before 3.4.4GitHub Advisory Database
org.apache.spark:spark-network-common_2.12 (Maven)before 3.4.4, from 3.5.0 before 3.5.2GitHub Advisory Database
pyspark (PyPI)before 3.4.4, from 3.5.0 before 3.5.2GitHub Advisory Database, PyPA Advisory Database
apache sparkbefore 3.4.4, from 3.5.0 before 3.5.2NVD

All scores

CISA-ADP6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
GitHublow CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
PyPA Advisory Database6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Classification

CWE-326CWE-347

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Este problema afecta a las versiones de Apache Spark anteriores a 3.4.4, 3.5.2 y 4.0.0. Las versiones de Apache Spark anteriores a 4.0.0, 3.5.2 y 3.4.4 utilizan un cifrado de red predeterminado inseguro para la comunicación RPC entre nodos. Cuando spark.network.crypto.enabled se establece en true (está establecido en false por defecto), pero spark.network.crypto.cipher no se configura explícitamente, Spark utiliza por defecto AES en modo CTR (AES/CTR/NoPadding), lo que proporciona cifrado sin autenticación. Esta vulnerabilidad permite a un atacante man-in-the-middle modificar el tráfico RPC cifrado sin ser detectado al voltear bits en el texto cifrado, comprometiendo potencialmente los mensajes de latido o los datos de la aplicación y afectando la integridad de los flujos de trabajo de Spark. Para mitigar este problema, los usuarios deben configurar spark.network.crypto.cipher a AES/GCM/NoPadding para habilitar el cifrado autenticado o habilitar el cifrado SSL estableciendo spark.ssl.enabled en true, lo que proporciona una seguridad de transporte más robusta.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-55039 changed 2025-11-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-6p6v-m64v-jx8q changed 2026-06-08CC-BY-4.0
NVDCVE-2025-55039 changed 2026-10-08Public domain
PyPA Advisory DatabasePYSEC-2025-184 changed 2026-06-10CC-BY-4.0