CVE-2022-31777
Medium
Description
A stored cross-site scripting (XSS) vulnerability in Apache Spark 3.2.1 and earlier, and 3.3.0, allows remote attackers to execute arbitrary JavaScript in the web browser of a user, by including a malicious payload into the logs which would be returned in logs rendered in the UI.
SeverityMedium
CVSS5.4
Exploit probability—
Product
Apache Spark
PublishedNov 1, 2022
First seenNov 1, 2022
Weakness typeCWE-74Injection
How to fix
Update
- apache spark3.2.2 or later
- pyspark3.2.2, 3.3.1 or later
- org.apache.spark:spark-core_2.133.2.2, 3.3.1 or later
- org.apache.spark:spark-core_2.123.2.2, 3.3.1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| apache spark | v < 3.2.2, 3.3.0 | 3.2.2 |
| pysparkPyPI | v < 3.2.2, 3.3.0 ≤ v < 3.3.1 | 3.2.2, 3.3.1 |
| org.apache.spark:spark-core_2.9.3Maven | No range specified | — |
| org.apache.spark:spark-core_2.13Maven | v < 3.2.2, 3.3.0 ≤ v < 3.3.1 | 3.2.2, 3.3.1 |
| org.apache.spark:spark-core_2.12Maven | v < 3.2.2, 3.3.0 ≤ v < 3.3.1 | 3.2.2, 3.3.1 |
| org.apache.spark:spark-core_2.11Maven | No range specified | — |
| org.apache.spark:spark-core_2.10Maven | No range specified | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.