# CVE-2025-54920: Apache Spark: Spark History Server Code Execution Vulnerability

Source: https://junglewise.ai/threats/cve-2025-54920-apache-spark-spark-history-server-code-execution-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-03-16  
License: CC BY 4.0 with a link back

CVE-2025-54920 · Severity: low · CVSS 3.1 · Published 2026-03-16

Apache Spark: Spark History Server Code Execution Vulnerability

Technologies: [org.apache.spark:spark-core_2.10 (Maven)](https://junglewise.ai/threats/technologies/org-apache-spark-spark-core-2-10), [org.apache.spark:spark-core_2.11 (Maven)](https://junglewise.ai/threats/technologies/org-apache-spark-spark-core-2-11), [org.apache.spark:spark-core_2.12 (Maven)](https://junglewise.ai/threats/technologies/org-apache-spark-spark-core-2-12), [org.apache.spark:spark-core_2.13 (Maven)](https://junglewise.ai/threats/technologies/org-apache-spark-spark-core-2-13). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2025-54920 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-54920 being exploited in the wild.

**How severe is CVE-2025-54920?** Low severity, with a CVSS score of 3.1, published 16 March 2026.

**Which products and versions are affected?** org.apache.spark:spark-core_2.10 (Maven) ECOSYSTEM:introduced=0,last_affected=2.2.3; org.apache.spark:spark-core_2.11 (Maven) ECOSYSTEM:introduced=0,last_affected=2.4.8; org.apache.spark:spark-core_2.12 (Maven) ECOSYSTEM:introduced=0,fixed=3.5.7; org.apache.spark:spark-core_2.13 (Maven) ECOSYSTEM:introduced=4.0.0,fixed=4.0.1; and 1 more.

**Is there a fix for CVE-2025-54920?** Yes. org.apache.spark:spark-core_2.12 (Maven): upgrade to 3.5.7 or later; org.apache.spark:spark-core_2.13 (Maven): upgrade to 4.0.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-54920?** Check whether you run org.apache.spark:spark-core_2.10 (Maven), org.apache.spark:spark-core_2.11 (Maven), org.apache.spark:spark-core_2.12 (Maven) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.spark:spark-core_2.12 (Maven): upgrade to 3.5.7 or later

  ```sh
  # set org.apache.spark:spark-core_2.12 to 3.5.7 in your pom.xml or build.gradle
  ```

- org.apache.spark:spark-core_2.13 (Maven): upgrade to 4.0.1 or later

  ```sh
  # set org.apache.spark:spark-core_2.13 to 4.0.1 in your pom.xml or build.gradle
  ```


## Affected products

- org.apache.spark:spark-core_2.10 (Maven) ECOSYSTEM:introduced=0,last_affected=2.2.3
- org.apache.spark:spark-core_2.11 (Maven) ECOSYSTEM:introduced=0,last_affected=2.4.8
- org.apache.spark:spark-core_2.12 (Maven) ECOSYSTEM:introduced=0,fixed=3.5.7
- org.apache.spark:spark-core_2.13 (Maven) ECOSYSTEM:introduced=4.0.0,fixed=4.0.1
- org.apache.spark:spark-core_2.9.3 (Maven) ECOSYSTEM:introduced=0,last_affected=0.8.1-incubating

## Identifiers

- CVE-2025-54920
- GHSA-jwp6-cvj8-fw65

## Related threats

- [Apache Spark History Server XSS in job names](https://junglewise.ai/threats/cve-2026-32773-apache-spark-history-server-xss-in-job-names)
- [Apache Spark privilege escalation via classpath injection](https://junglewise.ai/threats/cve-2023-22946-apache-spark-privilege-escalation-via-classpath-injection)
- [Apache Spark vulnerable to Log Injection](https://junglewise.ai/threats/cve-2022-31777-apache-spark-vulnerable-to-log-injection)
- [Improper Input Validation in Apache Spark](https://junglewise.ai/threats/cve-2018-11804-improper-input-validation-in-apache-spark)
- [PYSEC-2019-114 - Prior to Spark 2.3.3, in certain situations Spark would write user data to local disk unencrypted, even if spark.io.encryption.enabled=true.](https://junglewise.ai/threats/cve-2019-10099-sensitive-data-written-to-disk-unencrypted-in-spark)
