CVE-2022-33891
Apache Spark Command Injection Vulnerability
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
7Exploited in Wild
YesDecision
Descriptions
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.
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
Apache Spark contains a command injection vulnerability via Spark User Interface (UI) when Access Control Lists (ACLs) are enabled.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2022-06-17 CVE Reserved
- 2022-07-18 CVE Published
- 2022-07-21 First Exploit
- 2023-03-07 Exploited in Wild
- 2023-03-28 KEV Due Date
- 2024-08-03 CVE Updated
- 2024-11-18 EPSS Updated
CWE
- CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
CAPEC
References (10)
URL | Date | SRC |
---|---|---|
https://github.com/west-wind/CVE-2022-33891 | 2022-07-21 | |
https://github.com/AmoloHT/CVE-2022-33891 | 2022-08-01 | |
https://github.com/Vulnmachines/Apache-spark-CVE-2022-33891 | 2022-08-30 | |
https://github.com/IMHarman/CVE-2022-33891 | 2023-09-15 | |
https://github.com/DrLinuxOfficial/CVE-2022-33891 | 2022-08-13 | |
https://github.com/K3ysTr0K3R/CVE-2022-33891-EXPLOIT | 2024-02-22 | |
http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html | 2024-08-03 |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Apache Search vendor "Apache" | Spark Search vendor "Apache" for product "Spark" | <= 3.0.3 Search vendor "Apache" for product "Spark" and version " <= 3.0.3" | - |
Affected
| ||||||
Apache Search vendor "Apache" | Spark Search vendor "Apache" for product "Spark" | >= 3.1.1 <= 3.1.2 Search vendor "Apache" for product "Spark" and version " >= 3.1.1 <= 3.1.2" | - |
Affected
| ||||||
Apache Search vendor "Apache" | Spark Search vendor "Apache" for product "Spark" | >= 3.2.0 <= 3.2.1 Search vendor "Apache" for product "Spark" and version " >= 3.2.0 <= 3.2.1" | - |
Affected
|