Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Maven🐍 PyPI

GHSA-43xg-8wmj-cw8h

MEDIUM

Apache Spark vulnerable to Log Injection

Also known asBIT-spark-2022-31777CVE-2022-31777PYSEC-2022-42976
Published
Nov 1, 2022
Updated
Dec 18, 2025
Affected
9 pkgs
Patched
6 / 9
Exploits
None indexed

EPSS Exploitation Probability

via FIRST.org ↗
1.5%probability of exploitation in next 30 days
Lower Risk70th percentile+1.30%
0.00%0.66%1.32%1.97%0.1%1.5%Dec 25Apr 26Jun 26

EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.

Blast Radius

9 pkgs affected
org.apache.spark:spark-core_2.9.3org.apache.spark:spark-core_2.13org.apache.spark:spark-core_2.13org.apache.spark:spark-core_2.12org.apache.spark:spark-core_2.12org.apache.spark:spark-core_2.11org.apache.spark:spark-core_2.10🐍pyspark+1 more

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

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.

Affected Packages

9 total 6 fixed
EcosystemPackageVulnerable rangeFix
Mavenorg.apache.spark:spark-core_2.9.3all versionsNo fix
Mavenorg.apache.spark:spark-core_2.13all versions3.2.2
Mavenorg.apache.spark:spark-core_2.133.3.0&&< 3.3.13.3.1
Mavenorg.apache.spark:spark-core_2.12all versions3.2.2
Mavenorg.apache.spark:spark-core_2.123.3.0&&< 3.3.13.3.1
Mavenorg.apache.spark:spark-core_2.11all versionsNo fix

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.spark:spark-core_2.9.3. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    No patched version of org.apache.spark:spark-core_2.9.3 has shipped for GHSA-43xg-8wmj-cw8h yet. Where your build allows, override or pin the dependency away from the vulnerable range, and apply any maintainer-recommended mitigation.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether GHSA-43xg-8wmj-cw8h is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to GHSA-43xg-8wmj-cw8h. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is GHSA-43xg-8wmj-cw8h in your dependencies?

O3 detects GHSA-43xg-8wmj-cw8h across Maven, PyPI dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.