{"schemaVersion":4,"id":"CVE-2023-32007","aliases":["GHSA-59hw-j9g6-mfg3","BIT-spark-2023-32007","PYSEC-2023-72"],"status":"published","duplicateOf":null,"title":"Apache Spark: Shell command injection via Spark UI","description":"** 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.\n\nNOTE: This vulnerability only affects products that are no longer supported by the maintainer.\n\nUsers are recommended to upgrade to a supported version of Apache Spark, such as version 3.4.0.","dates":{"published":"2023-05-02T08:37:22.118Z","modified":"2025-02-13T16:50:19.521Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Maven","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.75955,"percentile":0.99533,"severity":"critical","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.75955},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.13103,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.13103,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.13103,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.13103,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.13103,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.13103,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.75955,"percentile":0.99533}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.75792,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.13103,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.13103,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.13103,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.13103,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.13103,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.13103,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.75955,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.75955,"percentile":0.99533}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command","description":"The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/77.html"}],"affected":[{"vendor":"apache software foundation","product":"apache spark","name":"Apache Spark","label":"apache spark","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.1.1, < 3.2.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.1.1","startInclusive":true,"end":"3.2.2","endInclusive":false}}],"versionsText":"≥ 3.1.1, < 3.2.2","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_spark"},{"vendor":"apache","product":"spark","name":"Spark","label":"spark","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 3.0.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.0.3","endInclusive":true}},{"text":"≥ 3.1.1, ≤ 3.1.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.1.1","startInclusive":true,"end":"3.1.3","endInclusive":true}},{"text":"≥ 3.2.0, ≤ 3.2.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.2.0","startInclusive":true,"end":"3.2.1","endInclusive":true}}],"versionsText":"≤ 3.0.3 | ≥ 3.1.1, ≤ 3.1.3 | ≥ 3.2.0, ≤ 3.2.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"apache-spark","label":"Apache Spark","category":"server-app"}},"hubHref":"/vendor/apache/spark"},{"vendor":"org.apache.spark","product":"spark-parent_2.12","name":"org.apache.spark:spark-parent_2.12","label":"spark-parent_2.12","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.spark/spark-parent_2.12","purlType":"maven","versions":[{"text":"≥ 3.1.1, < 3.2.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.1.1","startInclusive":true,"end":"3.2.2","endInclusive":false}}],"versionsText":"≥ 3.1.1, < 3.2.2","eol":null,"hubHref":null},{"vendor":"PyPI","product":"pyspark","name":"pyspark","label":"pyspark","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/pyspark","purlType":"pypi","versions":[{"text":"< 3.2.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.2.2","endInclusive":false}},{"text":"≥ 3.1.1, < 3.2.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.1.1","startInclusive":true,"end":"3.2.2","endInclusive":false}}],"versionsText":"< 3.2.2 | ≥ 3.1.1, < 3.2.2","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.cve.org/CVERecord?id=CVE-2022-33891","label":"www.cve.org/CVERecord?id=CVE-2022-33891","hostname":"www.cve.org","tags":["Related","WEB","Third Party Advisory"]},{"url":"https://spark.apache.org/security.html","label":"spark.apache.org/security.html","hostname":"spark.apache.org","tags":["Vendor Advisory","WEB","Advisory"]},{"url":"https://lists.apache.org/thread/poxgnxhhnzz735kr1wos366l5vdbb0nv","label":"lists.apache.org/thread/poxgnxhhnzz735kr1wos366l5vdbb0nv","hostname":"lists.apache.org","tags":["Vendor Advisory","WEB","ARTICLE","Mailing List"]},{"url":"http://www.openwall.com/lists/oss-security/2023/05/02/1","label":"www.openwall.com/lists/oss-security/2023/05/02/1","hostname":"www.openwall.com","tags":["WEB","ARTICLE","Mailing List"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32007","label":"nvd.nist.gov/vuln/detail/CVE-2023-32007","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/spark","label":"github.com/apache/spark","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2023-72.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2023-72.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://www.openwall.com/lists/oss-security/2023/05/02/1","label":"www.openwall.com/lists/oss-security/2023/05/02/1","hostname":"www.openwall.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-59hw-j9g6-mfg3","label":"github.com/advisories/GHSA-59hw-j9g6-mfg3","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-05-02T08:37:22.118Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-02-13T16:50:19.521Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,76,88],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.75955,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2025-02-13T16:50:19.521Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"osv_pypi","date":"2025-02-13T16:50:19.521Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N","version":"4.0"},{"type":"cvss","source":"osv_pypi","date":"2025-02-13T16:50:19.521Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_maven","date":"2025-02-13T16:50:19.521Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N","version":"4.0"},{"type":"cvss","source":"osv_maven","date":"2025-02-13T16:50:19.521Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2025-02-13T16:50:19.521Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2024-10-15T18:07:28.600Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.75955,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T04:02:19.840Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T04:02:20.356Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T04:02:20.556Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T04:00:57.992Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T04:02:18.199Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T04:02:17.270Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T04:09:43.114Z","stale":false,"partial":false}}