{"schemaVersion":4,"id":"CVE-2025-55039","aliases":["GHSA-6p6v-m64v-jx8q","PYSEC-2025-184"],"status":"published","duplicateOf":null,"title":"Apache Spark, Apache Spark: RPC encryption defaults to unauthenticated AES-CTR mode, enabling man-in-the-middle ciphertext modification attacks","description":"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.","dates":{"published":"2025-10-15T07:19:25.493Z","modified":"2025-11-04T21:13:00.940Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":10,"impact":4.2,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Maven","score":6.3,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00203,"percentile":0.10866,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":-0.0020000000000000052,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00205},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00222,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00205,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00205,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00205,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00205,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00205,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00205,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00205,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00205,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00205,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00205,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00205,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00205,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00205,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00297,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00297,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00297,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00297,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00297,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00297,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00203,"percentile":0.10866}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00205,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00205,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00205,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00297,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00297,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00297,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00297,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00297,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00297,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00203,"percentile":0.10866}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-326","name":"Inadequate Encryption Strength","description":"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.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/326.html"},{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature","description":"The product does not verify, or incorrectly verifies, the cryptographic signature for data.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/347.html"}],"affected":[{"vendor":"apache software foundation","product":"apache spark","name":"Apache Spark","label":"apache spark","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.5.0, < 3.5.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.5.0","startInclusive":true,"end":"3.5.2","endInclusive":false}},{"text":"< 3.4.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.4.4","endInclusive":false}}],"versionsText":"≥ 3.5.0, < 3.5.2 | < 3.4.4","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_spark"},{"vendor":"apache","product":"spark","name":"Spark","label":"spark","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.4.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.4.4","endInclusive":false}},{"text":"≥ 3.5.0, < 3.5.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.5.0","startInclusive":true,"end":"3.5.2","endInclusive":false}}],"versionsText":"< 3.4.4 | ≥ 3.5.0, < 3.5.2","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"apache-spark","label":"Apache Spark","category":"server-app"}},"hubHref":"/vendor/apache/spark"},{"vendor":"org.apache.spark","product":"spark-network-common_2.12","name":"org.apache.spark:spark-network-common_2.12","label":"spark-network-common_2.12","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.spark/spark-network-common_2.12","purlType":"maven","versions":[{"text":"< 3.4.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.4.4","endInclusive":false}},{"text":"≥ 3.5.0, < 3.5.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.5.0","startInclusive":true,"end":"3.5.2","endInclusive":false}}],"versionsText":"< 3.4.4 | ≥ 3.5.0, < 3.5.2","eol":null,"hubHref":null},{"vendor":"org.apache.spark","product":"spark-network-common_2.13","name":"org.apache.spark:spark-network-common_2.13","label":"spark-network-common_2.13","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.spark/spark-network-common_2.13","purlType":"maven","versions":[{"text":"≥ 3.5.0, < 3.5.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.5.0","startInclusive":true,"end":"3.5.2","endInclusive":false}},{"text":"< 3.4.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.4.4","endInclusive":false}}],"versionsText":"≥ 3.5.0, < 3.5.2 | < 3.4.4","eol":null,"hubHref":null},{"vendor":"PyPI","product":"pyspark","name":"pyspark","label":"pyspark","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/pyspark","purlType":"pypi","versions":[{"text":"< 3.4.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.4.4","endInclusive":false}},{"text":"≥ 3.5.0, < 3.5.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.5.0","startInclusive":true,"end":"3.5.2","endInclusive":false}}],"versionsText":"< 3.4.4 | ≥ 3.5.0, < 3.5.2","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://lists.apache.org/thread/zrgyy9l85nm2c7vk36vr7bkyorg3w4qq","label":"lists.apache.org/thread/zrgyy9l85nm2c7vk36vr7bkyorg3w4qq","hostname":"lists.apache.org","tags":["Vendor Advisory","WEB","Advisory","Mailing List"]},{"url":"http://www.openwall.com/lists/oss-security/2025/10/14/11","label":"www.openwall.com/lists/oss-security/2025/10/14/11","hostname":"www.openwall.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-55039","label":"nvd.nist.gov/vuln/detail/CVE-2025-55039","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/spark/commit/05ba74e5f8043601b7af530429ceaf828d7bb329","label":"github.com/apache/spark/commit/05ba74e5f8043601b7af530429ceaf828d7bb329","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/spark/commit/405b23b1aef889fad03bf4e3ced6d427dc9a43f4","label":"github.com/apache/spark/commit/405b23b1aef889fad03bf4e3ced6d427dc9a43f4","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/spark/commit/f0563ef64c7f42df21b16ccaeb4cf1324ea720f9","label":"github.com/apache/spark/commit/f0563ef64c7f42df21b16ccaeb4cf1324ea720f9","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/spark","label":"github.com/apache/spark","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2025-184.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2025-184.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://issues.apache.org/jira/browse/SPARK-47172","label":"issues.apache.org/jira/browse/SPARK-47172","hostname":"issues.apache.org","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-6p6v-m64v-jx8q","label":"github.com/advisories/GHSA-6p6v-m64v-jx8q","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-10-15T07:19:25.493Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-04T21:13:00.940Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,65],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00203,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2025-11-04T21:13:00.940Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1","headline":true},{"type":"cvss","source":"osv_pypi","date":"2025-11-04T21:13:00.940Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},{"type":"cvss","source":"osv_maven","date":"2025-11-04T21:13:00.940Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.3,"vector":"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","version":"4.0"},{"type":"cvss","source":"nvd","date":"2025-11-04T21:13:00.940Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2025-10-15T19:33:07.860Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00203,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T04:02:19.840Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T04:02:20.356Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T04:02:20.556Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T04:00:57.992Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T04:02:18.199Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T04:02:17.270Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T04:46:18.238Z","stale":false,"partial":false}}