{"id":"CVE-2022-33891","aliases":["CVE-2022-33891","GHSA-4x9r-j582-cgr8","BIT-SPARK-2022-33891","PYSEC-2022-236"],"related":[],"kind":"vulnerability","state":"published","title":"Apache Spark shell command injection vulnerability via Spark UI","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nA previous version of this advisory incorrectly stated that version 3.1.3 was not vulnerable. Per [GHSA-59hw-j9g6-mfg3](https://github.com/advisories/GHSA-59hw-j9g6-mfg3), version 3.1.3 is vulnerable and vulnerable version ranges in this advisory have been changed to reflect the correct information.","format":"markdown","source":"ghsa"},{"lang":"es","text":"La interfaz de usuario de Apache Spark ofrece la posibilidad de habilitar ACLs por medio de la opción de configuración spark.acls.enable. Con un filtro de autenticación, es comprobado si un usuario presenta permisos de acceso para ver o modificar la aplicación. Si las ACLs están habilitadas, una ruta de código en HttpSecurityFilter puede permitir que alguien lleve a cabo una suplantación de identidad proporcionando un nombre de usuario arbitrario. Un usuario malicioso podría entonces ser capaz de llegar a una función de comprobación de permisos que finalmente construirá un comando de shell Unix basado en su entrada, y lo ejecutará. Esto resultará en la ejecución de un comando shell arbitrario como el usuario con el que Spark se está ejecutando actualmente. Esto afecta a las versiones de Apache Spark 3.0.3 y anteriores, a las versiones 3.1.1 a 3.1.2 y a las versiones 3.2.0 a 3.2.1","source":"nvd"},{"lang":"en","text":"Apache Spark contains a command injection vulnerability via Spark User Interface (UI) when Access Control Lists (ACLs) are enabled.","source":"kev"}],"published":"2022-07-18T00:00:00.000Z","modified":"2026-09-08T08:48:19.497Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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/E:A","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"custom","introduced":"3.0.3 and earlier","lastAffected":"3.0.3","status":"affected"},{"type":"custom","introduced":"3.1.1 to 3.1.2","lastAffected":"3.1.2","status":"affected"},{"type":"custom","introduced":"3.2.0 to 3.2.1","lastAffected":"3.2.1","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Spark","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"3.0.3"}],"ecosystem":"Maven","package":"org.apache.spark:spark-parent_2.12","purl":"pkg:maven/org.apache.spark/spark-parent_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.1.1","status":"affected","fixed":"3.2.2"}],"ecosystem":"Maven","package":"org.apache.spark:spark-parent_2.12","purl":"pkg:maven/org.apache.spark/spark-parent_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.1.3"}],"ecosystem":"PyPI","package":"pyspark","purl":"pkg:pypi/pyspark","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.2.0","status":"affected","fixed":"3.2.2"}],"ecosystem":"PyPI","package":"pyspark","purl":"pkg:pypi/pyspark","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"3.0.3"},{"status":"affected","introduced":"3.1.1","lastAffected":"3.1.2"},{"status":"affected","introduced":"3.2.0","lastAffected":"3.2.1"}],"vendor":"apache","product":"spark","cpe":"cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.1.3"},{"type":"ecosystem","introduced":"3.2.0","status":"affected","fixed":"3.2.2"}],"ecosystem":"PyPI","package":"pyspark","purl":"pkg:pypi/pyspark","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.0.4"},{"type":"semver","introduced":"3.1.1","status":"affected","fixed":"3.1.3"},{"type":"semver","introduced":"3.2.0","status":"affected","fixed":"3.2.2"}],"ecosystem":"Bitnami","package":"spark","purl":"pkg:bitnami/spark","source":"bitnami"},{"ranges":[],"vendor":"Apache","product":"Spark","source":"kev"}],"references":[{"url":"https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc","tags":["advisory","kev","mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami","kev"]},{"url":"http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html","tags":["advisory","exploit","third-party-advisory","vdb-entry","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2023/05/02/1","tags":["advisory","mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-33891","tags":["advisory","government-resource","third-party-advisory","us-government-resource","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-33891","tags":["advisory","kev","web"],"sources":["ghsa","bitnami","kev"]},{"url":"https://github.com/apache/spark","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-236.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html","tags":["web"],"sources":["ghsa"]},{"url":"https://www.openwall.com/lists/oss-security/2023/05/02/1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-4x9r-j582-cgr8","tags":["advisory"],"sources":["pysec"]}],"credits":["Kostya Kortchinsky (Databricks)"],"assigner":"apache","kev":{"dateAdded":"2023-03-07","dueDate":"2023-03-28","name":"Apache Spark Command Injection Vulnerability","requiredAction":"Apply updates per vendor instructions.","ransomware":false,"notes":"https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc;  https://nvd.nist.gov/vuln/detail/CVE-2022-33891"},"ssvc":{"scorer":"CISA-ADP","exploitation":"active","automatable":"no","technicalImpact":"total","date":"2025-02-04T14:13:50.936Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-33891","url":"https://www.cve.org/CVERecord?id=CVE-2022-33891","licence":"CVE Terms of Use","modified":"2025-10-21T23:15:38.160Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4x9r-j582-cgr8","url":"https://github.com/advisories/GHSA-4x9r-j582-cgr8","licence":"CC-BY-4.0","modified":"2026-06-09T13:15:17.419Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-33891","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-33891","licence":"Public domain","modified":"2026-06-17T04:49:25.943Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-236","url":"https://osv.dev/vulnerability/PYSEC-2022-236","licence":"CC-BY-4.0","modified":"2026-06-08T10:15:10.715Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-SPARK-2022-33891","url":"https://osv.dev/vulnerability/BIT-SPARK-2022-33891","licence":"Apache-2.0","modified":"2026-09-08T08:48:19.497Z"},{"source":"kev","name":"CISA KEV","id":"CVE-2022-33891","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2022-33891","licence":"CC0-1.0","modified":"2023-03-07T00:00:00.000Z"}],"updatedAt":"2026-11-25T22:58:13.004Z","epss":{"score":0.92923,"percentile":0.99831,"date":"2026-12-01T12:00:22.000Z"}}