{"id":"CVE-2025-55039","published":"2025-10-15T07:19:25Z","modified":"2025-11-04T21:13:00Z","title":"Apache Spark, Apache Spark: RPC encryption defaults to unauthenticated AES-CTR mode, enabling man-in-the-middle…","vendor":"Apache","product":"Apache Spark","tier":"tail","description":{"text":"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.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\n\nTo mitigate this issue, users should either configure spark.network.crypto.cipher to AES/GCM/NoPadding to enable authenticated encryption or\n\nenable SSL encryption by setting spark.ssl.enabled to true, which provides stronger transport security.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00203,"percentile":0.10516,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"},{"id":"CWE-326","name":"Inadequate Encryption Strength"}],"references":[{"url":"https://lists.apache.org/thread/zrgyy9l85nm2c7vk36vr7bkyorg3w4qq","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2025/10/14/11","tags":[]}],"priority":{"score":6.7,"factors":[{"name":"EPSS percentile","points":2.1},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Spark","versions":[">= 3.5.0, < 3.5.2","< 3.4.4"]},{"vendor":"Apache Software Foundation","product":"Apache Spark","versions":[">= 3.5.0, < 3.5.2","< 3.4.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-15T19:33:07.860034Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.spark:spark-network-common_2.13","vulnerableRanges":[">=3.5.0, <3.5.2","<3.4.4"],"patched":["3.5.2","3.4.4"],"from":["GHSA-6p6v-m64v-jx8q"],"provenance":"source"},{"ecosystem":"Maven","package":"org.apache.spark:spark-network-common_2.12","vulnerableRanges":["<3.4.4",">=3.5.0, <3.5.2"],"patched":["3.4.4","3.5.2"],"from":["GHSA-6p6v-m64v-jx8q"],"provenance":"source"},{"ecosystem":"PyPI","package":"pyspark","vulnerableRanges":["<3.4.4",">=3.5.0, <3.5.2"],"patched":["3.4.4","3.5.2"],"from":["GHSA-6p6v-m64v-jx8q","PYSEC-2025-184"],"provenance":"source"}],"summary":{"text":"Apache Spark's RPC encryption, enabled via spark.network.crypto.enabled (which is off by default), uses AES in CTR mode without authentication when spark.network.crypto.cipher is not explicitly set, affecting versions before 3.4.4, 3.5.2 and 4.0.0. A man-in-the-middle attacker positioned on the network path between Spark nodes can flip bits in the ciphertext to modify RPC traffic, such as heartbeat messages or application data, without detection, and no authentication or user interaction is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:15:42Z"},"euvd":{"id":"EUVD-2025-34531","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-32007","published":"2023-05-02","fixed":"3.2.2","kev":false},{"cve":"CVE-2022-31777","published":"2022-11-01","fixed":"3.3.1","kev":false},{"cve":"CVE-2023-22946","published":"2023-04-17","fixed":"3.4.0","kev":false},{"cve":"CVE-2025-55039","published":"2025-10-15","fixed":"3.5.2","kev":false},{"cve":"CVE-2026-32773","published":"2026-09-02","fixed":"3.5.8","kev":false,"link":{"from":"CVE-2025-55039","to":"CVE-2026-32773","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pyspark","fromFixed":"3.5.2","toFixed":"3.5.8","daysApart":322}]}}],"package":"PyPI:pyspark"}}