{"cve":"CVE-2022-26612","nvd":{"published":"2022-04-07T19:15:08.917","modified":"2026-06-17T04:35:32.083","status":"Modified","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","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-59"],"references":["https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz","https://security.netapp.com/advisory/ntap-20220519-0004/","https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz","https://security.netapp.com/advisory/ntap-20220519-0004/"],"products":["apache:hadoop"],"source":"nvd","synced_at":"2026-10-19T21:29:06.454770966+00:00"},"epss":{"cve":"CVE-2022-26612","score":0.04241,"percentile":0.91034,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-gx2c-fvhc-ph4j","url":"https://osv.dev/vulnerability/GHSA-gx2c-fvhc-ph4j","summary":"Path traversal in Hadoop","modified":"2025-10-01T14:55:55.727257Z","packages":[{"ecosystem":"Maven","name":"org.apache.hadoop:hadoop-common","purl":"pkg:maven/org.apache.hadoop/hadoop-common","ranges":[">=3.2.0 <3.2.3"],"fixed":["3.2.3"]},{"ecosystem":"Maven","name":"org.apache.hadoop:hadoop-common","purl":"pkg:maven/org.apache.hadoop/hadoop-common","ranges":["<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.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."]}