CVE-2022-26612 Arbitrary file write in FileUtil#unpackEntries on Windows
- Published
- Updated
- Exploit status
- No public exploit known
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
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Apache Hadoop | < 3.2.3; = 3.3.1; = 3.3.2 | 3.2.3 | Fixed |
| apache hadoop | < 3.2.3; = 3.3.1; = 3.3.2 | 3.2.3 | Fixed |
| org.apache.hadoop/hadoop-common(Maven) | < 2.10.2; = 0.22.0; = 0.23.1; = 0.23.3 +57 more | 2.10.2, 3.2.3, 3.3.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.apache.hadoop/hadoop-common(Maven) | >= 3.2.0, < 3.2.3 | 3.2.3 |
| org.apache.hadoop/hadoop-common(Maven) | = 3.2.0 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 3.2.1 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 3.2.2 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | < 2.10.2 | 2.10.2 |
| org.apache.hadoop/hadoop-common(Maven) | = 0.22.0 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 0.23.1 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 0.23.10 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 0.23.11 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 0.23.3 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 0.23.4 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 0.23.5 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 0.23.6 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 0.23.7 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 0.23.8 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 0.23.9 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.0.0-alpha | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.0.1-alpha | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.0.2-alpha | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.0.3-alpha | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.0.4-alpha | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.0.5-alpha | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.0.6-alpha | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.1.0-beta | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.1.1-beta | No fix listed |
Show 42 more
| Product | Affected versions | Fixed in |
|---|---|---|
| org.apache.hadoop/hadoop-common(Maven) | = 2.10.0 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.10.1 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.2.0 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.3.0 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.4.0 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.4.1 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.5.0 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.5.1 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.5.2 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.6.0 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.6.1 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.6.2 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.6.3 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.6.4 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.6.5 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.7.0 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.7.1 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.7.2 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.7.3 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.7.4 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.7.5 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.7.6 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.7.7 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.8.0 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.8.1 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.8.2 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.8.3 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.8.4 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.8.5 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.9.0 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.9.1 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 2.9.2 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | >= 3.3.0, < 3.3.3 | 3.3.3 |
| org.apache.hadoop/hadoop-common(Maven) | = 3.3.0 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 3.3.1 | No fix listed |
| org.apache.hadoop/hadoop-common(Maven) | = 3.3.2 | No fix listed |
| Apache Hadoop | < 3.2.3 | 3.2.3 |
| Apache Hadoop | = 3.3.1 | No fix listed |
| Apache Hadoop | = 3.3.2 | No fix listed |
| apache hadoop | < 3.2.3 | 3.2.3 |
| apache hadoop | = 3.3.1 | No fix listed |
| apache hadoop | = 3.3.2 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com
- github.com
- github.com
- github.com
- issues.apache.org
- lists.apache.org exploit vendor-advisory
- security.netapp.com third-party-advisory
- github.com