Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.spark/spark-core
  4. ›
  5. CVE-2022-31777

CVE-2022-31777: Apache Spark vulnerable to Log Injection

November 1, 2022 (updated October 15, 2024)

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.

References

  • github.com/advisories/GHSA-43xg-8wmj-cw8h
  • github.com/apache/spark
  • github.com/apache/spark/commit/ad90195de56688ce0898691eb9d04297ab0871ad
  • github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-42976.yaml
  • lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q
  • nvd.nist.gov/vuln/detail/CVE-2022-31777
  • web.archive.org/web/20220728105026/https://issues.apache.org/jira/browse/SPARK-39505

Code Behaviors & Features

Detect and mitigate CVE-2022-31777 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.2.2, all versions starting from 3.3.0 before 3.3.1, version 3.3.0

Fixed versions

  • 3.2.2
  • 3.3.1

Solution

Upgrade to versions 3.2.2, 3.3.1 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

maven/org.apache.spark/spark-core/CVE-2022-31777.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:53 +0000.