CVE-2025-55039: Spark network common 2.13 Apache Spark Has Inadequate Encryption Vulnerability
LOWCVE-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
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.
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-network-common_2.13</artifactId>
<version>3.5.2</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-network-common_2.13</artifactId>
<version>3.4.4</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-network-common_2.12</artifactId>
<version>3.4.4</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-network-common_2.12</artifactId>
<version>3.5.2</version>
</dependency>
pip install pyspark>=3.4.4
pip install pyspark>=3.5.2
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
CVE-2025-55039 Affected Spark network common 2.13 Versions
6 component(s)| 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?
Which Spark network common 2.13 versions are affected?
What version fixes CVE-2025-55039?
Is spark-network-common_2.13 affected?
Is spark-network-common_2.12 affected?
What CWE is associated with CVE-2025-55039?
How can I check Maven dependencies for CVE-2025-55039?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}