Skip to content
Heist/ feed
Back to feed
High

Apache Spark: Shell command injection via Spark UI

Type: advisorySources: OSV

** 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-32007
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 10:56 UTC · Revision 1

Source evidence

Apache Spark: Shell command injection via Spark UI

core-osv · Original source

Published 2 May 2023, 08:37 UTC

** 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.

osv:CVE-2023-32007
Complete source record
{
  "id": "483053a82d02eadb89a67d5baa9a6c105b762068a7092ea4c586729a0c1b2d2c",
  "url": "https://osv.dev/vulnerability/CVE-2023-32007",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Apache Spark: Shell command injection via Spark UI",
    "summary": "** 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.",
    "evidence": "osv:CVE-2023-32007",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-32007",
      "aliases": [
        "BIT-spark-2023-32007",
        "CVE-2023-32007",
        "GHSA-59hw-j9g6-mfg3",
        "PYSEC-2023-72"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/apache/spark",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "65ac1e75dc468f53fc778cd2ce1ba3f21067aab8"
                },
                {
                  "introduced": "1d550c4e90275ab418b9161925049239227f3dc9"
                },
                {
                  "last_affected": "d1f8a503a26bcfb4e466d9accc5fa241a7933667"
                },
                {
                  "introduced": "5d45a415f3a29898d92380380cfd82bfc7f579ea"
                },
                {
                  "last_affected": "4f25b3f71238a00508a356591553f2dfa89f8290"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "3.0.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.1.1"
                      },
                      {
                        "last_affected": "3.1.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.2.0"
                      },
                      {
                        "last_affected": "3.2.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.1.3-rc4",
            "v3.1.3",
            "v3.1.3-rc3",
            "v3.2.1-rc2",
            "v3.2.1",
            "v3.1.3-rc2",
            "v3.1.3-rc1",
            "v3.2.1-rc1",
            "v3.2.0-rc7",
            "v3.2.0",
            "v3.0.3-rc1",
            "v3.0.3",
            "v3.1.2-rc1",
            "v3.1.2",
            "v3.1.1-rc3",
            "v3.1.1",
            "v3.0.2-rc1",
            "v3.0.2",
            "v3.0.1-rc3",
            "v3.0.1",
            "v3.0.1-rc1",
            "v3.0.0-rc3",
            "v3.0.0",
            "v3.0.0-rc2",
            "v3.0.0-rc1",
            "v3.0.0-preview-rc2",
            "v3.0.0-preview",
            "v3.0.0-preview-rc1",
            "v0.7.0",
            "v0.6.0",
            "0.3-scala-2.8",
            "alpha-0.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-32007.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.472161309Z",
      "provider": "osv",
      "references": [
        "https://www.cve.org/CVERecord?id=CVE-2022-33891",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/32xxx/CVE-2023-32007.json",
        "https://lists.apache.org/thread/poxgnxhhnzz735kr1wos366l5vdbb0nv",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-32007",
        "https://spark.apache.org/security.html"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-77"
        ],
        "cna_assigner": "apache",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.1.1"
                  },
                  {
                    "fixed": "3.2.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/32xxx/CVE-2023-32007.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-32007",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519047,
  "published_at": "2023-05-02T08:37:22.118+00:00"
}