CVE-2025-55039: Spark network common 2.13 Apache Spark Has Inadequate Encryption Vulnerability

LOW
Advisory Identifier: GHSA-6p6v-m64v-jx8q
CWE-326
Published
Advisory Summary

CVE-2025-55039 is a LOW apache spark has inadequate encryption vulnerability (CWE-326: Inadequate Encryption Strength) affecting Spark network common 2.13 libraries in the Maven ecosystem. The issue involves apache spark has inadequate encryption strength. Remediation is available by upgrading affected packages to version 3.5.2, 3.4.4.

CVE-2025-55039 at a Glance

CVE Identifier CVE-2025-55039
GHSA Identifier GHSA-6p6v-m64v-jx8q
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-326: Inadequate Encryption Strength
Affected Product Spark network common 2.13
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2025-55039

To remediate this vulnerability, upgrade all affected Spark network common 2.13 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.spark:spark-network-common_2.13 fixed: 3.5.2
<dependency>
    <groupId>org.apache.spark</groupId>
    <artifactId>spark-network-common_2.13</artifactId>
    <version>3.5.2</version>
</dependency>
org.apache.spark:spark-network-common_2.13 fixed: 3.4.4
<dependency>
    <groupId>org.apache.spark</groupId>
    <artifactId>spark-network-common_2.13</artifactId>
    <version>3.4.4</version>
</dependency>
org.apache.spark:spark-network-common_2.12 fixed: 3.4.4
<dependency>
    <groupId>org.apache.spark</groupId>
    <artifactId>spark-network-common_2.12</artifactId>
    <version>3.4.4</version>
</dependency>
org.apache.spark:spark-network-common_2.12 fixed: 3.5.2
<dependency>
    <groupId>org.apache.spark</groupId>
    <artifactId>spark-network-common_2.12</artifactId>
    <version>3.5.2</version>
</dependency>
pyspark fixed: 3.4.4
pip install pyspark>=3.4.4
pyspark fixed: 3.5.2
pip install pyspark>=3.5.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.spark

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-55039, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.spark

Analyze the terminal output to locate any version of Spark network common 2.13 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.5.2), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.spark command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-326: Inadequate Encryption Strength, where the product stores or transmits sensitive data using an encryption scheme that is theoretically sound, but is not strong enough for the level of protection required. In Spark network common 2.13, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2025-55039 Affected Spark network common 2.13 Versions

6 component(s)
Fixed Versions:
3.5.23.4.4
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.spark:spark-network-common_2.13
Maven
≥ 3.5.0
< 3.5.2
3.5.2
org.apache.spark:spark-network-common_2.13
Maven
< 3.4.4
3.4.4
org.apache.spark:spark-network-common_2.12
Maven
< 3.4.4
3.4.4
org.apache.spark:spark-network-common_2.12
Maven
≥ 3.5.0
< 3.5.2
3.5.2
pyspark
PyPI
< 3.4.4
3.4.4
pyspark
PyPI
≥ 3.5.0
< 3.5.2
3.5.2

References

Frequently Asked Questions

What is CVE-2025-55039?
CVE-2025-55039 is a security vulnerability in Spark network common 2.13 involving Apache Spark has Inadequate Encryption Strength under CWE-326: Inadequate Encryption Strength.
Which Spark network common 2.13 versions are affected?
Affected versions include releases prior to 3.5.2, 3.4.4 across affected packages: org.apache.spark:spark-network-common_2.13, org.apache.spark:spark-network-common_2.12, pyspark.
What version fixes CVE-2025-55039?
Upgrading to 3.5.2, 3.4.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spark-network-common_2.13 affected?
Yes, org.apache.spark:spark-network-common_2.13 is affected in releases prior to 3.5.2, 3.4.4. Upgrade your dependency to 3.5.2, 3.4.4 or later.
Is spark-network-common_2.12 affected?
Yes, org.apache.spark:spark-network-common_2.12 is affected in releases prior to 3.4.4, 3.5.2. Upgrade your dependency to 3.4.4, 3.5.2 or later.
What CWE is associated with CVE-2025-55039?
CVE-2025-55039 is classified under CWE-326: Inadequate Encryption Strength (The product stores or transmits sensitive data using an encryption scheme that is theoretically sound, but is not strong enough for the level of protection required.).
How can I check Maven dependencies for CVE-2025-55039?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.spark'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6p6v-m64v-jx8q",
  "modified" : "2026-06-08T19:46:17Z",
  "published" : "2025-10-15T09:30:17Z",
  "aliases" : [ "CVE-2025-55039" ],
  "summary" : "Apache Spark has Inadequate Encryption Strength",
  "details" : "This issue affects Apache Spark versions before  3.4.4, 3.5.2 and 4.0.0.\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.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.\n\nThis 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.\n\nTo 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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS: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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.spark:spark-network-common_2.13"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.5.0"
      }, {
        "fixed" : "3.5.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.spark:spark-network-common_2.13"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.4.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.spark:spark-network-common_2.12"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.4.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.spark:spark-network-common_2.12"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.5.0"
      }, {
        "fixed" : "3.5.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pyspark"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.4.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pyspark"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.5.0"
      }, {
        "fixed" : "3.5.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-55039"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/spark/commit/05ba74e5f8043601b7af530429ceaf828d7bb329"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/spark/commit/405b23b1aef889fad03bf4e3ced6d427dc9a43f4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/spark/commit/f0563ef64c7f42df21b16ccaeb4cf1324ea720f9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/spark"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2025-184.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/SPARK-47172"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/zrgyy9l85nm2c7vk36vr7bkyorg3w4qq"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/10/14/11"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-326" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-15T18:58:35Z",
    "nvd_published_at" : "2025-10-15T08:15:38Z"
  }
}