{"api_version":"1","generated_at":"2026-04-23T00:41:41+00:00","cve":"CVE-2022-33891","urls":{"html":"https://cve.report/CVE-2022-33891","api":"https://cve.report/api/cve/CVE-2022-33891.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-33891","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-33891"},"summary":{"title":"Apache Spark Command Injection Vulnerability","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.","state":"PUBLIC","assigner":"security@apache.org","published_at":"2022-07-18 07:15:00","updated_at":"2023-08-02 17:21:00"},"problem_types":["CWE-78"],"metrics":[],"references":[{"url":"http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html","name":"http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html","refsource":"MISC","tags":[],"title":"Apache Spark Unauthenticated Command Injection ≈ Packet Storm","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"http://www.openwall.com/lists/oss-security/2023/05/02/1","name":"[oss-security] 20230502 CVE-2023-32007: Apache Spark: Shell command injection via Spark UI","refsource":"MLIST","tags":[],"title":"oss-security - CVE-2023-32007: Apache Spark: Shell command injection via Spark UI","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc","name":"N/A","refsource":"CONFIRM","tags":[],"title":"","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-33891","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-33891","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"33891","vulnerable":"1","versionEndIncluding":"3.0.3","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"apache","cpe5":"spark","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"33891","vulnerable":"1","versionEndIncluding":"3.1.2","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"apache","cpe5":"spark","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"33891","vulnerable":"1","versionEndIncluding":"3.2.1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"apache","cpe5":"spark","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":{"cve_year":"2022","cve_id":"33891","cve":"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","catalogVersion":"2026.04.22","updated_at":"2026-04-22 20:03:10"},"epss":{"cve_year":"2022","cve_id":"33891","cve":"CVE-2022-33891","epss":"0.935130000","percentile":"0.998280000","score_date":"2026-04-22","updated_at":"2026-04-23 00:03:16"},"legacy_qids":[{"cve":"CVE-2022-33891","qid":"150557","title":"Apache Spark Shell Command Injection Vulnerability (CVE-2022-33891)"},{"cve":"CVE-2022-33891","qid":"376742","title":"Apache Spark Shell Command Injection Vulnerability (CVE-2022-33891)"},{"cve":"CVE-2022-33891","qid":"730573","title":"Apache Spark Command Injection Vulnerability (Unauthenticated Check)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-33891","ASSIGNER":"security@apache.org","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","cweId":"CWE-78"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"Apache Software Foundation","product":{"product_data":[{"product_name":"Apache Spark","version":{"version_data":[{"version_affected":"<=","version_name":"3.0.3 and earlier","version_value":"3.0.3"},{"version_affected":"<=","version_name":"3.1.1 to 3.1.2","version_value":"3.1.2"},{"version_affected":"<=","version_name":"3.2.0 to 3.2.1","version_value":"3.2.1"}]}}]}}]}},"references":{"reference_data":[{"url":"https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc","refsource":"MISC","name":"https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc"},{"url":"http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html","refsource":"MISC","name":"http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html"},{"url":"http://www.openwall.com/lists/oss-security/2023/05/02/1","refsource":"MISC","name":"http://www.openwall.com/lists/oss-security/2023/05/02/1"}]},"generator":{"engine":"Vulnogram 0.0.9"},"source":{"defect":["SPARK-38992"],"discovery":"UNKNOWN"},"work_around":[{"lang":"en","value":"Upgrade to supported Apache Spark maintenance release 3.1.3, 3.2.2, or 3.3.0 or later"}],"credits":[{"lang":"en","value":" Kostya Kortchinsky (Databricks)"}]},"nvd":{"publishedDate":"2022-07-18 07:15:00","lastModifiedDate":"2023-08-02 17:21:00","problem_types":["CWE-78"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*","versionEndIncluding":"3.0.3","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2.0","versionEndIncluding":"3.2.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1.1","versionEndIncluding":"3.1.2","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}