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

Published Oct 14, 2025
·
Updated

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 Software

9 affected componentsFixes available
Apache Spark<3.4.4
Apache Spark
Apache Spark<4.0.0
maven/org.apache.spark:spark-network-common_2.12>=3.5.0<3.5.2
3.5.2
maven/org.apache.spark:spark-network-common_2.12<3.4.4
3.4.4
maven/org.apache.spark:spark-network-common_2.13<3.4.4
3.4.4
maven/org.apache.spark:spark-network-common_2.13>=3.5.0<3.5.2
3.5.2
Apache Spark<3.4.4
Apache Spark>=3.5.0<3.5.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.apache.spark:spark-network-common_2.12 to a version that resolves this vulnerability.

    Fixed in 3.5.2
  2. Upgrade

    Upgrade maven/org.apache.spark:spark-network-common_2.12 to a version that resolves this vulnerability.

    Fixed in 3.4.4
  3. Upgrade

    Upgrade maven/org.apache.spark:spark-network-common_2.13 to a version that resolves this vulnerability.

    Fixed in 3.4.4
  4. Upgrade

    Upgrade maven/org.apache.spark:spark-network-common_2.13 to a version that resolves this vulnerability.

    Fixed in 3.5.2
  5. Upgrade

    Upgrade Apache Spark to a version that resolves this vulnerability.

    Fixed in 3.4.4
  6. Configuration

    Configure spark.network.crypto.cipher to AES/GCM/NoPadding to enable authenticated encryption.

    Apache Spark RPC encryption spark.network.crypto.cipher = AES/GCM/NoPadding
  7. Configuration

    Set spark.ssl.enabled to true to enable SSL encryption for stronger transport security.

    Apache Spark SSL encryption spark.ssl.enabled = true

Event History

Oct 15, 2025
CVE Published
via MITRE·07:19 AM
Data Sourced
via MITRE·07:19 AM
DescriptionWeakness
Data Sourced
via NVD·08:15 AM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·09:30 AM
Data Sourced
via GitHub·09:30 AM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-55039?

CVE-2025-55039 has a high severity due to the use of an insecure default network encryption cipher in affected Apache Spark versions.

2

How do I fix CVE-2025-55039?

To fix CVE-2025-55039, upgrade Apache Spark to version 4.0.0, 3.5.2, or 3.4.4 or later.

3

Which versions of Apache Spark are affected by CVE-2025-55039?

CVE-2025-55039 affects Apache Spark versions before 3.4.4, 3.5.2, and 4.0.0.

4

What is the impact of CVE-2025-55039?

The impact of CVE-2025-55039 includes potential exposure to insecure RPC communications between Spark nodes.

5

Is spark.network.crypto.enabled enabled by default in Apache Spark prior to version 4.0.0?

No, spark.network.crypto.enabled is set to false by default in versions of Apache Spark prior to 4.0.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203