{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-33891","id":"CVE-2022-33891","title":"Apache Spark shell command injection vulnerability via Spark UI","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 reac","descriptionLong":"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.","published":"2022-07-18T00:00:00.000Z","updated":"2026-10-28T02:30:44.527540327Z","reserved":"2022-06-17T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"apache","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"4.0","score":null,"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","source":"GitHub"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H","rating":"high","source":"GitHub"}],"rating":"high","products":["Apache Software Foundation Apache Spark"],"affectedProducts":[{"vendor":"Apache Software Foundation","product":"Apache Spark","defaultStatus":null,"versions":[{"lessThanOrEqual":"3.0.3","status":"affected","version":"3.0.3 and earlier","versionType":"custom"},{"lessThanOrEqual":"3.1.2","status":"affected","version":"3.1.1 to 3.1.2","versionType":"custom"},{"lessThanOrEqual":"3.2.1","status":"affected","version":"3.2.0 to 3.2.1","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.apache.spark:spark-parent_2.12","purl":"pkg:maven/org.apache.spark/spark-parent_2.12","ranges":["<=3.0.3",">=3.1.1 <3.2.2"],"fixed":["3.2.2"],"advisory":"GHSA-4x9r-j582-cgr8"},{"ecosystem":"PyPI","name":"pyspark","purl":"pkg:pypi/pyspark","ranges":["<3.1.3",">=3.2.0 <3.2.2"],"fixed":["3.1.3","3.2.2"],"advisory":"GHSA-4x9r-j582-cgr8"}],"cwes":["CWE-78"],"aliases":["BIT-spark-2022-33891","GHSA-4x9r-j582-cgr8","PYSEC-2022-236"],"references":[{"url":"https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc","tags":["x_transferred","Mailing List","Third Party Advisory","web"]},{"url":"http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html","tags":["x_transferred","Exploit","Third Party Advisory","VDB Entry","web"]},{"url":"http://www.openwall.com/lists/oss-security/2023/05/02/1","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","article","web"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-33891","tags":["government-resource","Third Party Advisory","US Government Resource","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/33xxx/CVE-2022-33891.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-33891","tags":["advisory"]},{"url":"https://github.com/apache/spark","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-236.yaml","tags":["web"]},{"url":"https://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html","tags":["web"]},{"url":"https://www.openwall.com/lists/oss-security/2023/05/02/1","tags":["web"]},{"url":"https://github.com/advisories/GHSA-4x9r-j582-cgr8","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":true,"kevAdded":"2023-03-07","kevDue":"2023-03-28","kevEntry":{"cveID":"CVE-2022-33891","vendorProject":"Apache","product":"Spark","vulnerabilityName":"Apache Spark Command Injection Vulnerability","dateAdded":"2023-03-07","shortDescription":"Apache Spark contains a command injection vulnerability via Spark User Interface (UI) when Access Control Lists (ACLs) are enabled.","requiredAction":"Apply updates per vendor instructions.","dueDate":"2023-03-28","knownRansomwareCampaignUse":"Unknown","notes":"https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc;  https://nvd.nist.gov/vuln/detail/CVE-2022-33891","cwes":["CWE-78"]},"ssvc":{"exploitation":"active","automatable":"no","technicalImpact":"total"},"epss":0.92923,"epssPercentile":0.99835,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-33891","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-33891","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-33891","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4x9r-j582-cgr8","ok":true,"note":"GHSA-4x9r-j582-cgr8"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"added 2023-03-07"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-33891","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["Exploited in the wild (CISA KEV)","EPSS 93% with CVSS 8.8"],"attention":null}