{"schemaVersion":3,"id":"CVE-2022-26612","aliases":["CGA-4fq3-3fpj-654h","CGA-58wf-7jmh-4gfm","CGA-6g58-37jh-6jr6","CGA-jwgx-4cwf-qrpp","GHSA-gx2c-fvhc-ph4j"],"status":"published","duplicateOf":null,"title":null,"description":"In Apache Hadoop, The unTar function uses unTarUsingJava function on Windows and the built-in tar utility on Unix and other OSes. As a result, a TAR entry may create a symlink under the expected extraction directory which points to an external directory. A subsequent TAR entry may extract an arbitrary file into the external directory using the symlink name. This however would be caught by the same targetDirPath check on Unix because of the getCanonicalPath call. However on Windows, getCanonicalPath doesn't resolve symbolic links, which bypasses the check. unpackEntries during TAR extraction follows symbolic links which allows writing outside expected base directory on Windows. This was addressed in Apache Hadoop 3.2.3","dates":{"published":"2022-04-07T18:20:12.000Z","modified":"2024-08-03T05:11:43.529Z","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},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.04241,"percentile":0.90934,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.04241},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.04241,"percentile":0.90934}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04241,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.04241,"percentile":0.90934}]},"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":[{"id":"REF_4F6FB9FB4D5B84AB","name":"Exploit Reference (lists.apache.org)","source":"reference","url":"https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access ('Link Following')","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.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":"≥ unspecified, < 3.2.3","noFixRecorded":false,"fixedIn":null},{"text":"3.3.1","noFixRecorded":false,"fixedIn":null},{"text":"3.3.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, < 3.2.3 | 3.3.1 | 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":"< 3.2.3","noFixRecorded":false,"fixedIn":null},{"text":"3.3.1","noFixRecorded":false,"fixedIn":null},{"text":"3.3.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.2.3 | 3.3.1 | 3.3.2","eol":{"isEol":false,"eolDate":null,"matchMethod":"cpe","cycle":{"name":"3.3","label":"3.3","eolFrom":null,"isLts":false,"isMaintained":true,"latestVersion":"3.3.6"},"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":"≥ 3.2.0, < 3.2.3","noFixRecorded":false,"fixedIn":null},{"text":"< 2.10.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.3.0, < 3.3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.2.0, < 3.2.3 | < 2.10.2 | ≥ 3.3.0, < 3.3.3","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz","label":"lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz","hostname":"lists.apache.org","tags":["X Refsource MISC","WEB","Exploit","Vendor Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20220519-0004/","label":"security.netapp.com/advisory/ntap-20220519-0004/","hostname":"security.netapp.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-26612","label":"nvd.nist.gov/vuln/detail/CVE-2022-26612","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/hadoop","label":"github.com/apache/hadoop","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/apache/hadoop/commits/rel/release-2.10.2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java","label":"github.com/apache/…","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/hadoop/commits/rel/release-3.2.3/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java","label":"github.com/apache/…","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/hadoop/commits/rel/release-3.3.3/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java","label":"github.com/apache/…","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/hadoop/commits/rel/release-3.4.0/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java","label":"github.com/apache/…","hostname":"github.com","tags":["WEB"]},{"url":"https://issues.apache.org/jira/browse/HADOOP-18317","label":"issues.apache.org/jira/browse/HADOOP-18317","hostname":"issues.apache.org","tags":["WEB"]},{"url":"https://security.netapp.com/advisory/ntap-20220519-0004","label":"security.netapp.com/advisory/ntap-20220519-0004","hostname":"security.netapp.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-04-07T18:20:12.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T05:11:43.529Z","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-20T17:04:32.773Z","stale":false,"partial":false}}