{"schemaVersion":3,"id":"CVE-2022-25168","aliases":["CGA-4gc9-rr3p-24cx","GHSA-8wm5-8h9c-47pc","CGA-rjmg-22vw-2v38","CGA-w79q-c4ww-4v4q","CGA-wh9m-p8c6-rwg7"],"status":"published","duplicateOf":null,"title":null,"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).","dates":{"published":"2022-08-04T14:30:17.000Z","modified":"2024-08-03T04:36:05.786Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.04457,"percentile":0.91324,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.2779999999999998,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.04179},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04457,"percentile":0.91324}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04179,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04457,"percentile":0.91324}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"apache software foundation","product":"apache hadoop","name":"Apache Hadoop","label":"apache hadoop","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.0.0 to 2.10.1","noFixRecorded":false,"fixedIn":null},{"text":"3.0.0-alpha to 3.2.3","noFixRecorded":false,"fixedIn":null},{"text":"3.3.0 to 3.3.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.0.0 to 2.10.1 | 3.0.0-alpha to 3.2.3 | 3.3.0 to 3.3.2","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_hadoop"},{"vendor":"apache","product":"hadoop","name":"hadoop","label":"hadoop","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0.0, ≤ 2.10.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0.0, ≤ 3.2.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.3.0, ≤ 3.3.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, ≤ 2.10.1 | ≥ 3.0.0, ≤ 3.2.3 | ≥ 3.3.0, ≤ 3.3.2","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"apache-hadoop","label":"Apache Hadoop","category":"database"}},"hubHref":"/vendor/apache/hadoop"},{"vendor":"chainguard","product":"hadoop-fips-3.3.6","name":"hadoop-fips-3.3.6","label":"hadoop-fips-3.3.6","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/hadoop-fips-3.3.6","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"org.apache.hadoop","product":"hadoop-common","name":"org.apache.hadoop:hadoop-common","label":"hadoop-common","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.hadoop/hadoop-common","purlType":"maven","versions":[{"text":"≥ 2.0.0, < 2.10.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0.0-alpha, < 3.2.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.3.0, < 3.3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, < 2.10.2 | ≥ 3.0.0-alpha, < 3.2.4 | ≥ 3.3.0, < 3.3.3","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://lists.apache.org/thread/mxqnb39jfrwgs3j6phwvlrfq4mlox130","label":"lists.apache.org/thread/mxqnb39jfrwgs3j6phwvlrfq4mlox130","hostname":"lists.apache.org","tags":["X Refsource MISC","WEB","Mailing List","Vendor Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20220915-0007/","label":"security.netapp.com/advisory/ntap-20220915-0007/","hostname":"security.netapp.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25168","label":"nvd.nist.gov/vuln/detail/CVE-2022-25168","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/hadoop/commit/cae749b076f35f0be13a926ee8cfbb7ce4402746","label":"github.com/apache/hadoop/commit/cae749b076f35f0be13a926ee8cfbb7ce4402746","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/hadoop","label":"github.com/apache/hadoop","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://security.netapp.com/advisory/ntap-20220915-0007","label":"security.netapp.com/advisory/ntap-20220915-0007","hostname":"security.netapp.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-08-04T14:30:17.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T04:36:05.786Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T19:33:42.941Z","stale":false,"partial":false}}