CVE-2022-25168
criticalpriority · track · 41EPSS 0.046 · 92 %ileDEEURUUSEPSS · scored 2026-10-27
Apache Hadoop's FileUtil.unTar(File, File) API does not escape the input file name before being passed to the shell. An attacker can inject arbitrary commands. This is only used in Hadoop 3.3 InMemoryAliasMap.completeBootstrapTransfer, which is only ever run by a local user. It has been used in Hadoop 2.x for yarn localization, which does enable remote code execution. It is used in Apache Spark, from the SQL command ADD ARCHIVE. As the ADD ARCHIVE command adds new binaries to the classpath, being able to execute shell scripts does not confer new permissions to the caller. SPARK-38305. "Check existence of file before untarring/zipping", which is included in 3.3.0, 3.1.4, 3.2.2, prevents shell commands being executed, regardless of which version of the hadoop libraries are in use. Users should upgrade to Apache Hadoop 2.10.2, 3.2.4, 3.3.3 or upper (including HADOOP-18136).
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (16)
Products and version ranges known to be affected.
- Maven org.apache.hadoop:hadoop-common3.0.0-alpha → 3.2.4osvUSpkg:maven/org.apache.hadoop/hadoop-common
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2022-2343IBM Spectrum Scale: Schwachstelle ermöglicht Ausführen von beliebigem Programmcode mit den Rechten des DienstesDeutsch2022-12-15csaf · cert_bundDE
Ein lokaler Angreifer kann eine Schwachstelle in IBM Spectrum Scale ausnutzen, um beliebigen Programmcode mit den Rechten des Dienstes auszuführen.
- WID-SEC-W-2024-0794Dell ECS: Mehrere SchwachstellenDeutsch2024-04-04csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in Dell ECS ausnutzen, um seine Privilegien zu erweitern, beliebigen Programmcode mit Administratorrechten auszuführen, Informationen offenzulegen, Dateien zu manipulieren, einen Cross-Site-Scripting-Angriff durchzuführen, Sicherheitsvorkehrungen zu umgehen oder einen Denial of Service Zustand herbeizuführen.
- GHSA-8wm5-8h9c-47pcApache Hadoop argument injection vulnerability2022-08-05ghsa · osvUS
Apache Hadoop's `FileUtil.unTar(File, File)` API does not escape the input file name before being passed to the shell. An attacker can inject arbitrary commands. This is only used in Hadoop 3.3 InMemoryAliasMap.completeBootstrapTransfer, which is only ever run by a local user. It has been used in Hadoop 2.x for yarn localization, which does enable remote code execution. It is used in Apache Spark, from the SQL command ADD ARCHIVE. As the ADD ARCHIVE command adds new binaries to the classpath, being able to execute shell scripts does not confer new permissions to the caller. SPARK-38305. "Check existence of file before untarring/zipping", which is included in 3.3.0, 3.1.4, 3.2.2, prevents shell commands being executed, regardless of which version of the hadoop libraries are in use. Users should upgrade to Apache Hadoop 2.10.2, 3.2.4, 3.3.3 or upper (including HADOOP-18136).
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2022-25168/cnnvd
- https://lists.apache.org/thread/mxqnb39jfrwgs3j6phwvlrfq4mlox130cnnvd
- https://security.netapp.com/advisory/ntap-20220915-0007/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.3325cnnvd
- https://lists.apache.org/thread/mxqnb39jfrwgs3j6phwvlrfq4mlox130enisa_euvd
- https://security.netapp.com/advisory/ntap-20220915-0007/enisa_euvd
- https://lists.apache.org/thread/mxqnb39jfrwgs3j6phwvlrfq4mlox130Mailing ListVendor Advisorynvd
- https://security.netapp.com/advisory/ntap-20220915-0007/Third Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan