CVE-2022-26612
CRITICAL 9.8CVSS 3.1Path traversal in Hadoop
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
- Published
- 7 Apr 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@apache.org
- NVD status
- Modified
- Weakness
- CWE-22CWE-59
- Also known as
- GHSA-gx2c-fvhc-ph4j
- Sources
- NVDJSONOSV GHSA-gx2c-fvhc-ph4jJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | hadoopcpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:* |
< 3.2.3 | 3.2.3 |
| NVD | apache | hadoopcpe:2.3:a:apache:hadoop:3.3.1:-:*:*:*:*:*:* |
= 3.3.1 | |
| NVD | apache | hadoopcpe:2.3:a:apache:hadoop:3.3.2:-:*:*:*:*:*:* |
= 3.3.2 | |
| OSV | Maven | org.apache.hadoop:hadoop-common | >= 3.2.0, < 3.2.3 | 3.2.3 |
| OSV | Maven | org.apache.hadoop:hadoop-common | < 2.10.2 | 2.10.2 |
| OSV | Maven | org.apache.hadoop:hadoop-common | >= 3.3.0, < 3.3.3 | 3.3.3 |
References
- https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz · Exploit, Vendor Advisory, WEB
- https://security.netapp.com/advisory/ntap-20220519-0004/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-26612 · ADVISORY
- https://github.com/apache/hadoop · PACKAGE
- 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 · WEB
- 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 · WEB
- 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 · WEB
- 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 · WEB
- https://issues.apache.org/jira/browse/HADOOP-18317 · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 7 Apr 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 8 Apr 2022)