WaratekVRT Sign in

CVE-2022-31777 Apache Spark

Affected softwareApache Spark
Severity5.4 Medium CVSS 3.1 2 scores
Fixed in3.2.2, 3.3.1
WeaknessCWE-74
Published1 Nov 2022
Updated17 Jun 2026

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 4 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 1.8% chance in 30 days

Waratek protection

No exploit published

Within Waratek scope. In the sources we check, nobody has published exploit code for this CVE or reported it being exploited.

A public code fix exists: apache/spark ad90195.

  • Protection none
  • Action unverified
  • Review automated Upstream data
  • Record active
Decided by Exploit code for this candidate, published in a reviewed catalogue or a GitHub repository with 5 or more stars, or in use per CISA or VulnCheck; not only a CISA verdict, a forecast, or nothing at all
Finding This CVE is not listed in CISA KEV or VulnCheck KEV, CISA Vulnrichment records no active exploitation, no reviewed exploit catalogue carries an entry for it, and no GitHub PoC repository for it has 5 or more stars. Nobody has published exploit code worth tracing, so it is not a candidate for a rule ahead of the ones where somebody has; an upstream fix path does exist, so the remediation half of the candidacy still holds. This is a statement about what has been published, not about whether the defect is reachable or serious.

CVSS

5.4 MEDIUM v3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 5.4 MEDIUM CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N NVD Primary published
CVSS 3.1 5.4 MEDIUM CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N CISA-ADP Secondary

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts Oracle names in its risk matrix
Oracle Critical Patch Update July 2023 ↗ CPU 2023-Q3 Oracle Analytics / Analytics Server (Apache Spark) (6.4.0.0.0)

Oracle components and versions

FamilyComponentVersions, as Oracle lists themRead as
Oracle Analytics Analytics Server (Apache Spark) 6.4.0.0.0 6.4.0.0.0

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.spark:spark-core_2.9.3 0 none unbounded
org.apache.spark:spark-core_2.13 0 3.2.2 unbounded
org.apache.spark:spark-core_2.13 3.3.0 3.3.1 unbounded
org.apache.spark:spark-core_2.12 0 3.2.2 unbounded
org.apache.spark:spark-core_2.12 3.3.0 3.3.1 unbounded
org.apache.spark:spark-core_2.11 0 none unbounded
org.apache.spark:spark-core_2.10 0 none unbounded

Products and versions

6 products, 9 version entries
SourceVendorProductSchemeAffected versions
nvd apache spark generic < 3.2.2 · 3.3.0
osv org.apache.spark spark-core_2.10 generic any version
osv org.apache.spark spark-core_2.11 generic any version
osv org.apache.spark spark-core_2.12 generic < 3.2.2 · ≥ 3.3.0 and < 3.3.1
osv org.apache.spark spark-core_2.13 generic < 3.2.2 · ≥ 3.3.0 and < 3.3.1
osv org.apache.spark spark-core_2.9.3 generic any version

References

URLTags
https://github.com/apache/spark/commit/ad90195de56688ce0898691eb9d04297ab0871ad WEB
https://github.com/apache/spark PACKAGE
https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-42976.yaml WEB
https://lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q WEB
https://web.archive.org/web/20220728105026/https://issues.apache.org/jira/browse/SPARK-39505 WEB
http://www.openwall.com/lists/oss-security/2022/11/01/14 WEB

Timeline

Published2022-11-01By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.