{"id":"CVE-2022-33891","kind":"vulnerability","aliases":["CVE-2022-33891"],"related":[],"title":"The Apache Spark UI offers the possibility to enable ACLs via the configuration option spark.acls.enable","description":"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.","summary":"Apache Spark has a command injection flaw in its Spark UI when Access Control Lists are enabled. An attacker who can reach the UI can get commands run on the host running Spark.","severity":"high","cvss":8.8,"epss":null,"exploited":true,"exploited_at":"2023-03-07T00:00:00+00:00","products":[{"name":"Apache Spark","fixed":[],"affected":"","ecosystem":"vendor"},{"name":"apache spark","fixed":[],"affected":"<= 3.0.3","ecosystem":"vendor"},{"name":"apache spark","fixed":[],"affected":">= 3.1.1, <= 3.1.2","ecosystem":"vendor"},{"name":"apache spark","fixed":[],"affected":">= 3.2.0, <= 3.2.1","ecosystem":"vendor"}],"ecosystems":["vendor"],"tags":["apache-spark","exploited","package","self-hosted","spark-ui"],"not_affected_if":["acls-disabled"],"how_to_check":null,"fix":"Apply the vendor update per Apache Spark instructions; the fixed version is not stated in the sources.","status":"open","published_at":"2022-07-18T07:15:07+00:00","first_seen_at":"2026-10-23T19:11:52+00:00","triaged_at":"2026-10-23T21:08:34+00:00","updated_at":"2026-10-23T22:29:04+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-10-23T21:08:34Z","model":"claude-haiku-5-5","output":{"fix":"Apply the vendor update per Apache Spark instructions; the fixed version is not stated in the sources.","reach":"network","impact":"high","summary":"Apache Spark has a command injection flaw in its Spark UI when Access Control Lists are enabled. An attacker who can reach the UI can get commands run on the host running Spark.","category":"package","who_cares":["apache-spark","self-hosted","spark-ui"],"confidence":0.6,"needs_auth":"unknown","worst_case":"Attacker runs arbitrary commands on the Spark host.","analyst_note":"Find the fixed Spark version and the exact ACL setting from the Apache security advisory for CVE-2022-33891; CISA KEV lists it as exploited.","how_to_check":"unknown","needs_analyst":true,"not_affected_if":["acls-disabled"],"user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"unknown"},"cost_usd":0.000442,"input_tokens":2777,"output_tokens":329,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'-2022':17A,20A '-33891':18A,21A '3.0.3':177C '3.1.1':181C '3.1.2':183C '3.2.0':186C '3.2.1':188C 'abl':134C 'access':53B,99C 'acl':10A,83C,108C 'affect':173C 'allow':117C 'apach':2A,31B,41B,75C,174C 'apache':22A,24A,26A,28A 'apache-spark':30B 'applic':106C 'arbitrari':125C,160C 'attack':59B 'authent':91C 'base':149C 'build':144C 'check':94C,139C 'code':112C 'command':45B,67B,148C,162C 'configur':13A,86C 'control':54B 'current':169C 'cve':16A,19A 'earlier':179C 'enabl':9A,57B,82C,110C 'execut':154C,163C 'exploit':33B 'filter':92C 'flaw':47B 'function':140C 'get':66B 'host':37B,71B 'httpsecurityfilt':115C 'imperson':121C 'inject':46B 'input':152C 'list':55B 'malici':129C 'might':131C 'modifi':104C 'name':127C 'offer':5A,78C 'option':14A,87C 'packag':34B 'path':113C 'perform':120C 'permiss':100C,138C 'possibl':7A,80C 'provid':123C 'reach':62B,136C 'result':158C 'run':68B,72B,170C 'self':36B 'self-host':35B 'shell':147C,161C 'someon':118C 'spark':3A,23A,25A,27A,29A,32B,39B,42B,50B,73B,76C,167C,175C 'spark-ui':38B 'spark.acls.enable':15A,88C 'ui':4A,40B,51B,64B,77C 'ultim':143C 'unix':146C 'user':97C,126C,130C,166C 'version':176C,180C,185C 'via':11A,84C 'view':102C 'whether':95C","nicknames":[],"mitigations":[],"who_affected":null,"tier":null,"verified":{},"analyst_revisit_at":null,"first_public_at":"2022-07-18T07:15:07+00:00","kev":{"dateAdded":"2023-03-07","dueDate":"2023-03-28","requiredAction":"Apply updates per vendor instructions.","knownRansomwareCampaignUse":"Unknown"},"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cvss_by":"nvd@nist.gov","poc_count":0,"sources":[{"source":"kev","external_id":"CVE-2022-33891","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2022-33891","severity":null,"published_at":"2023-03-07T00:00:00+00:00","modified_at":null,"first_seen_at":"2026-10-23T19:11:52+00:00","fetched_at":"2026-10-25T12:39:23+00:00","note":null},{"source":"nvd","external_id":"CVE-2022-33891","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-33891","severity":null,"published_at":"2022-07-18T07:15:07+00:00","modified_at":"2026-06-17T04:49:25+00:00","first_seen_at":"2026-10-23T22:29:04+00:00","fetched_at":"2026-10-23T22:29:04+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}