{"cve":"CVE-2022-25168","nvd":{"published":"2022-08-04T15:15:08.343","modified":"2026-06-17T04:33:08.390","status":"Modified","description":"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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-78"],"references":["https://lists.apache.org/thread/mxqnb39jfrwgs3j6phwvlrfq4mlox130","https://security.netapp.com/advisory/ntap-20220915-0007/","https://lists.apache.org/thread/mxqnb39jfrwgs3j6phwvlrfq4mlox130","https://security.netapp.com/advisory/ntap-20220915-0007/"],"products":["apache:hadoop"],"source":"nvd","synced_at":"2026-10-19T21:34:18.502168378+00:00"},"epss":{"cve":"CVE-2022-25168","score":0.04587,"percentile":0.91645,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-8wm5-8h9c-47pc","url":"https://osv.dev/vulnerability/GHSA-8wm5-8h9c-47pc","summary":"Apache Hadoop argument injection vulnerability","modified":"2024-02-21T05:29:29.300541Z","packages":[{"ecosystem":"Maven","name":"org.apache.hadoop:hadoop-common","purl":"pkg:maven/org.apache.hadoop/hadoop-common","ranges":[">=2.0.0 <2.10.2"],"fixed":["2.10.2"]},{"ecosystem":"Maven","name":"org.apache.hadoop:hadoop-common","purl":"pkg:maven/org.apache.hadoop/hadoop-common","ranges":[">=3.0.0-alpha <3.2.4"],"fixed":["3.2.4"]},{"ecosystem":"Maven","name":"org.apache.hadoop:hadoop-common","purl":"pkg:maven/org.apache.hadoop/hadoop-common","ranges":[">=3.3.0 <3.3.3"],"fixed":["3.3.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}