# CVE-2022-26612: Arbitrary file write in FileUtil\#unpackEntries on Windows

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-04-07 · Modified: 2024-08-03
- Aliases: CGA-4fq3-3fpj-654h, CGA-58wf-7jmh-4gfm, CGA-6g58-37jh-6jr6, CGA-jwgx-4cwf-qrpp, GHSA-gx2c-fvhc-ph4j
- Record: https://cvemate.com/vulnerability/CVE-2022-26612 · JSON: https://cvemate.com/vulnerability/CVE-2022-26612/json

## Description

```text
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
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 4.241%, percentile 91.308%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- apache software foundation apache hadoop: ≥ unspecified, \< 3.2.3 \| 3.3.1 \| 3.3.2
- apache hadoop: \< 3.2.3 \| 3.3.1 \| 3.3.2
- chainguard hadoop-fips-3.3.6 (Chainguard): All versions (No fix recorded)
- org.apache.hadoop hadoop-common (Maven): ≥ 3.2.0, \< 3.2.3 \| \< 2.10.2 \| ≥ 3.3.0, \< 3.3.3

## References

- <https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz>
- <https://security.netapp.com/advisory/ntap-20220519-0004/>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-26612>
- <https://github.com/apache/hadoop>
- <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>
- <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>
- <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>
- <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>
- <https://issues.apache.org/jira/browse/HADOOP-18317>
- <https://security.netapp.com/advisory/ntap-20220519-0004>

---

Data as of 2026-12-05T04:23:28.489Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
