Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:pypi/pyspark@3.1.2
purl pkg:pypi/pyspark@3.1.2
Next non-vulnerable version 3.4.0
Latest non-vulnerable version 3.4.0
Risk 10.0
Vulnerabilities affecting this package (5)
Vulnerability Summary Fixed by
VCID-1hnx-b71k-mqat
Aliases:
BIT-spark-2023-22946
CVE-2023-22946
GHSA-329j-jfvr-rhr6
PYSEC-2023-44
In Apache Spark versions prior to 3.4.0, applications using spark-submit can specify a 'proxy-user' to run as, limiting privileges. The application can execute code with the privileges of the submitting user, however, by providing malicious configuration-related classes on the classpath. This affects architectures relying on proxy-user, for example those using Apache Livy to manage submitted applications. Update to Apache Spark 3.4.0 or later, and ensure that spark.submit.proxyUser.allowCustomClasspathInClusterMode is set to its default of "false", and is not overridden by submitted applications.
3.3.2
Affected by 1 other vulnerability.
3.4.0
Affected by 0 other vulnerabilities.
VCID-5uaa-p1dd-3yb3
Aliases:
BIT-spark-2023-32007
CVE-2023-32007
GHSA-59hw-j9g6-mfg3
PYSEC-2023-72
** UNSUPPORTED WHEN ASSIGNED ** The Apache Spark UI offers the possibility to enable ACLs via the configuration option spark.acls.enable. With an authentication filter, this checks whether a user has access permissions to view or modify the application. If ACLs are enabled, a code path in HttpSecurityFilter can allow someone to perform impersonation by providing an arbitrary user name. A malicious user might then be able to reach a permission check function that will ultimately build a Unix shell command based on their input, and execute it. This will result in arbitrary shell command execution as the user Spark is currently running as. This issue was disclosed earlier as CVE-2022-33891, but incorrectly claimed version 3.1.3 (which has since gone EOL) would not be affected. NOTE: This vulnerability only affects products that are no longer supported by the maintainer. Users are recommended to upgrade to a supported version of Apache Spark, such as version 3.4.0.
3.2.0
Affected by 4 other vulnerabilities.
3.2.2
Affected by 1 other vulnerability.
VCID-aehs-6sa9-a3es
Aliases:
BIT-spark-2021-38296
CVE-2021-38296
GHSA-9rr6-jpg7-9jg6
PYSEC-2022-186
Apache Spark supports end-to-end encryption of RPC connections via "spark.authenticate" and "spark.network.crypto.enabled". In versions 3.1.2 and earlier, it uses a bespoke mutual authentication protocol that allows for full encryption key recovery. After an initial interactive attack, this would allow someone to decrypt plaintext traffic offline. Note that this does not affect security mechanisms controlled by "spark.authenticate.enableSaslEncryption", "spark.io.encryption.enabled", "spark.ssl", "spark.ui.strictTransportSecurity". Update to Apache Spark 3.1.3 or later
3.1.3
Affected by 4 other vulnerabilities.
VCID-hfnr-s2a7-bkbv
Aliases:
BIT-spark-2022-33891
CVE-2022-33891
GHSA-4x9r-j582-cgr8
PYSEC-2022-236
The Apache Spark UI offers the possibility to enable ACLs via the configuration option spark.acls.enable. With an authentication filter, this checks whether a user has access permissions to view or modify the application. If ACLs are enabled, a code path in HttpSecurityFilter can allow someone to perform impersonation by providing an arbitrary user name. A malicious user might then be able to reach a permission check function that will ultimately build a Unix shell command based on their input, and execute it. This will result in arbitrary shell command execution as the user Spark is currently running as. This affects Apache Spark versions 3.0.3 and earlier, versions 3.1.1 to 3.1.2, and versions 3.2.0 to 3.2.1.
3.1.3
Affected by 4 other vulnerabilities.
3.2.2
Affected by 1 other vulnerability.
VCID-v1xx-eddq-aqcu
Aliases:
BIT-spark-2022-31777
CVE-2022-31777
GHSA-43xg-8wmj-cw8h
PYSEC-2022-42976
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.
3.2.2
Affected by 1 other vulnerability.
3.3.1
Affected by 1 other vulnerability.
Vulnerabilities fixed by this package (1)
Vulnerability Summary Aliases
VCID-uuju-ey95-tyfq DOS vulnerability for Quoted Quality CSV headers ### Impact When Jetty handles a request containing request headers with a large number of “quality” (i.e. q) parameters (such as what are seen on the `Accept`, `Accept-Encoding`, and `Accept-Language` request headers), the server may enter a denial of service (DoS) state due to high CPU usage while sorting the list of values based on their quality values. A single request can easily consume minutes of CPU time before it is even dispatched to the application. The only features within Jetty that can trigger this behavior are: - Default Error Handling - the `Accept` request header with the `QuotedQualityCSV` is used to determine what kind of content to send back to the client (html, text, json, xml, etc) - `StatisticsServlet` - uses the `Accept` request header with the `QuotedQualityCSV` to determine what kind of content to send back to the client (xml, json, text, html, etc) - `HttpServletRequest.getLocale()` - uses the `Accept-Language` request header with the `QuotedQualityCSV` to determine which “preferred” language is returned on this call. - `HttpservletRequest.getLocales()` - is similar to the above, but returns an ordered list of locales based on the quality values on the `Accept-Language` request header. - `DefaultServlet` - uses the `Accept-Encoding` request header with the `QuotedQualityCSV` to determine which kind of pre-compressed content should be sent back for static content (content that is not matched against a url-pattern in your web app) ### Versions `QuotedQualityCSV` was introduced to Jetty 9.3.9.v20160517 and the bug that introduced the vulnerability was in 9.4.6.v20170531. Currently, known vulnerable versions include: - 9.4.6.v20170531 thru to 9.4.36.v20210114 - 10.0.0 - 11.0.0 ### Workarounds Quality ordered values are used infrequently by jetty so they can be avoided by: * Do not use the default error page/handler. * Do not deploy the `StatisticsServlet` exposed to the network * Do not call `getLocale` API * Do not enable precompressed static content in the `DefaultServlet` ### Patches All patches are available for download from the Eclipse Jetty website at [https://www.eclipse.org/jetty/download.php](https://www.eclipse.org/jetty/download.php) - 9.4.37.v20210219 and greater - 10.0.1 and greater - 11.0.1 and greater CVE-2020-27223
GHSA-m394-8rww-3jr7

Date Actor Action Vulnerability Source VulnerableCode Version
2026-04-16T22:28:47.649881+00:00 GitLab Importer Affected by VCID-5uaa-p1dd-3yb3 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2023-32007.yml 38.4.0
2026-04-16T22:27:03.777504+00:00 GitLab Importer Affected by VCID-1hnx-b71k-mqat https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2023-22946.yml 38.4.0
2026-04-16T22:14:38.589894+00:00 GitLab Importer Affected by VCID-v1xx-eddq-aqcu https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2022-31777.yml 38.4.0
2026-04-16T22:05:53.859973+00:00 GitLab Importer Affected by VCID-hfnr-s2a7-bkbv https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2022-33891.yml 38.4.0
2026-04-16T21:42:10.693456+00:00 GitLab Importer Affected by VCID-aehs-6sa9-a3es https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2021-38296.yml 38.4.0
2026-04-16T02:32:32.000046+00:00 GHSA Importer Affected by VCID-hfnr-s2a7-bkbv https://github.com/advisories/GHSA-4x9r-j582-cgr8 38.4.0
2026-04-16T02:03:15.373694+00:00 GHSA Importer Affected by VCID-aehs-6sa9-a3es https://github.com/advisories/GHSA-9rr6-jpg7-9jg6 38.4.0
2026-04-11T23:47:16.781463+00:00 GitLab Importer Affected by VCID-5uaa-p1dd-3yb3 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2023-32007.yml 38.3.0
2026-04-11T23:45:24.270794+00:00 GitLab Importer Affected by VCID-1hnx-b71k-mqat https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2023-22946.yml 38.3.0
2026-04-11T23:31:38.979791+00:00 GitLab Importer Affected by VCID-v1xx-eddq-aqcu https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2022-31777.yml 38.3.0
2026-04-11T23:21:54.488283+00:00 GitLab Importer Affected by VCID-hfnr-s2a7-bkbv https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2022-33891.yml 38.3.0
2026-04-11T22:57:39.897196+00:00 GitLab Importer Affected by VCID-aehs-6sa9-a3es https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2021-38296.yml 38.3.0
2026-04-11T13:57:59.331979+00:00 GHSA Importer Affected by VCID-hfnr-s2a7-bkbv https://github.com/advisories/GHSA-4x9r-j582-cgr8 38.3.0
2026-04-11T13:30:32.275067+00:00 GHSA Importer Affected by VCID-aehs-6sa9-a3es https://github.com/advisories/GHSA-9rr6-jpg7-9jg6 38.3.0
2026-04-02T23:50:43.067380+00:00 GitLab Importer Affected by VCID-5uaa-p1dd-3yb3 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2023-32007.yml 38.1.0
2026-04-02T23:49:01.866487+00:00 GitLab Importer Affected by VCID-1hnx-b71k-mqat https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2023-22946.yml 38.1.0
2026-04-02T23:37:02.399488+00:00 GitLab Importer Affected by VCID-v1xx-eddq-aqcu https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2022-31777.yml 38.1.0
2026-04-02T23:28:44.638526+00:00 GitLab Importer Affected by VCID-hfnr-s2a7-bkbv https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2022-33891.yml 38.1.0
2026-04-02T23:06:33.124109+00:00 GitLab Importer Affected by VCID-aehs-6sa9-a3es https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2021-38296.yml 38.1.0
2026-04-02T14:44:17.173554+00:00 GHSA Importer Affected by VCID-hfnr-s2a7-bkbv https://github.com/advisories/GHSA-4x9r-j582-cgr8 38.1.0
2026-04-02T14:20:22.824397+00:00 GHSA Importer Affected by VCID-aehs-6sa9-a3es https://github.com/advisories/GHSA-9rr6-jpg7-9jg6 38.1.0
2026-04-02T12:37:59.280866+00:00 GitLab Importer Fixing VCID-uuju-ey95-tyfq https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2020-27223.yml 38.0.0
2026-04-01T18:12:22.602830+00:00 GitLab Importer Affected by VCID-1hnx-b71k-mqat https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2023-22946.yml 38.0.0
2026-04-01T17:59:13.289731+00:00 GitLab Importer Affected by VCID-v1xx-eddq-aqcu https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2022-31777.yml 38.0.0
2026-04-01T17:49:59.708983+00:00 GitLab Importer Affected by VCID-hfnr-s2a7-bkbv https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2022-33891.yml 38.0.0
2026-04-01T17:25:46.719024+00:00 GitLab Importer Affected by VCID-aehs-6sa9-a3es https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pyspark/CVE-2021-38296.yml 38.0.0
2026-04-01T15:14:01.112063+00:00 PyPI Importer Affected by VCID-5uaa-p1dd-3yb3 https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.0.0
2026-04-01T15:13:57.440050+00:00 PyPI Importer Affected by VCID-1hnx-b71k-mqat https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.0.0
2026-04-01T15:13:25.882304+00:00 PyPI Importer Affected by VCID-v1xx-eddq-aqcu https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.0.0
2026-04-01T15:13:00.974658+00:00 PyPI Importer Affected by VCID-hfnr-s2a7-bkbv https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.0.0
2026-04-01T15:12:41.851670+00:00 PyPI Importer Affected by VCID-aehs-6sa9-a3es https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.0.0
2026-04-01T12:48:15.817101+00:00 Pypa Importer Affected by VCID-5uaa-p1dd-3yb3 https://github.com/pypa/advisory-database/blob/main/vulns/pyspark/PYSEC-2023-72.yaml 38.0.0
2026-04-01T12:48:13.684150+00:00 Pypa Importer Affected by VCID-1hnx-b71k-mqat https://github.com/pypa/advisory-database/blob/main/vulns/pyspark/PYSEC-2023-44.yaml 38.0.0
2026-04-01T12:47:54.633266+00:00 Pypa Importer Affected by VCID-v1xx-eddq-aqcu https://github.com/pypa/advisory-database/blob/main/vulns/pyspark/PYSEC-2022-42976.yaml 38.0.0
2026-04-01T12:47:41.472114+00:00 Pypa Importer Affected by VCID-hfnr-s2a7-bkbv https://github.com/pypa/advisory-database/blob/main/vulns/pyspark/PYSEC-2022-236.yaml 38.0.0
2026-04-01T12:47:30.384392+00:00 Pypa Importer Affected by VCID-aehs-6sa9-a3es https://github.com/pypa/advisory-database/blob/main/vulns/pyspark/PYSEC-2022-186.yaml 38.0.0