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—
ProductApache 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

ProductAffected versionsFixed in
apache sparkv < 3.2.2, 3.3.03.2.2
pysparkPyPIv < 3.2.2, 3.3.0 ≤ v < 3.3.13.2.2, 3.3.1
org.apache.spark:spark-core_2.9.3MavenNo range specified—
org.apache.spark:spark-core_2.13Mavenv < 3.2.2, 3.3.0 ≤ v < 3.3.13.2.2, 3.3.1
org.apache.spark:spark-core_2.12Mavenv < 3.2.2, 3.3.0 ≤ v < 3.3.13.2.2, 3.3.1
org.apache.spark:spark-core_2.11MavenNo range specified—
org.apache.spark:spark-core_2.10MavenNo 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.