{"schemaVersion":4,"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":"Command injection in org.apache.hadoop.fs.FileUtil.unTarUsingTar","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.04828,"percentile":0.92226,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.24100000000000024,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.04587},"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":null},{"date":"2026-10-20T00:00:00.000Z","score":0.04457,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.04714,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.04714,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.04828,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.04828,"percentile":0.92226}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.04587,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.04714,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.04714,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.04828,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.04828,"percentile":0.92226}]},"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","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 before 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,"bounds":{"kind":"range","start":"2.0.0 to 2.10.1","startInclusive":true,"end":"2.0.0 to 2.10.1","endInclusive":true}},{"text":"3.0.0-alpha to 3.2.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.0.0-alpha to 3.2.3","startInclusive":true,"end":"3.0.0-alpha to 3.2.3","endInclusive":true}},{"text":"3.3.0 to 3.3.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.3.0 to 3.3.2","startInclusive":true,"end":"3.3.0 to 3.3.2","endInclusive":true}}],"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,"bounds":{"kind":"range","start":"2.0.0","startInclusive":true,"end":"2.10.1","endInclusive":true}},{"text":"≥ 3.0.0, ≤ 3.2.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.0.0","startInclusive":true,"end":"3.2.3","endInclusive":true}},{"text":"≥ 3.3.0, ≤ 3.3.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.3.0","startInclusive":true,"end":"3.3.2","endInclusive":true}}],"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,"bounds":{"kind":"all"}}],"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,"bounds":{"kind":"range","start":"2.0.0","startInclusive":true,"end":"2.10.2","endInclusive":false}},{"text":"≥ 3.0.0-alpha, < 3.2.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.0.0-alpha","startInclusive":true,"end":"3.2.4","endInclusive":false}},{"text":"≥ 3.3.0, < 3.3.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.3.0","startInclusive":true,"end":"3.3.3","endInclusive":false}}],"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}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 5% (FIRST, 04-12-2026)","nextStep":"Check applicability and the vendor advisory: no fix release is recorded here","rank":[0,0,0,0,5,98],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.04828,"stale":false,"promoted":null},{"type":"cvss","source":"osv_chainguard","date":"2024-08-03T04:36:05.786Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_maven","date":"2024-08-03T04:36:05.786Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2024-08-03T04:36:05.786Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1","headline":true}],"epss":{"value":0.04828,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T06:02:28.822Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T06:02:29.295Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T06:02:29.506Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T06:00:56.363Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T06:02:27.202Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T06:02:26.240Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T06:43:44.079Z","stale":false,"partial":false}}