Apache Spark vulnerable to Log Injection
Date: 2022-11
Affected: maven/org.apache.spark:spark-core_2.10, maven/org.apache.spark:spark-core_2.11, maven/org.apache.spark:spark-core_2.12
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2022-31777
CWE: CWE-74
CVSS: 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)

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.


Mitigations:

Architectural layers (MAESTRO):