5.4

CVE-2022-31777: apache software foundation apache spark Injection

CVSS: 5.4v3.1MediumModified
AliasesGHSA-43xg-8wmj-cw8hBIT-spark-2022-31777PYSEC-2022-42976
Published 01-11-2022Last modified 06-05-2025

Vulnerability summary

CVE-2022-31777 is a medium (CVSS 5.4) Injection vulnerability in apache software foundation apache spark. EPSS estimates a 1.62% chance of exploitation in the next 30 days, higher than 75.6% of scored vulnerabilities.

Overall risk
22/100
0100
Low · default modelHow is this calculated?
CVSS score
5.4/10
010
Medium · v3.1 (CVE.org)
EPSS score
1.62%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 01-11-2022
    PublishedVulnerability first disclosed.
  2. 06-05-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

1.62%

Chance of exploitation in the next 30 days

Percentile

76%

Versus all other CVEs

30-day change

+0.03 pp

From 1.58% on 18-09-2026

18-09-202618-10-2026
EPSS score
1.62%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Org.apache.spark5 products
  • spark-core_2.10All versions (No fix recorded)
  • spark-core_2.11All versions (No fix recorded)
  • spark-core_2.12< 3.2.2 | ≥ 3.3.0, < 3.3.1
  • spark-core_2.13< 3.2.2 | ≥ 3.3.0, < 3.3.1
  • spark-core_2.9.3All versions (No fix recorded)
Apache1 product
Apache software foundation1 product
PyPI1 product
  • pyspark< 3.2.2 | ≥ 3.3.0, < 3.3.1

4 vendors · 8 products

References

8 links