CVE-2022-26612
publishedArbitrary file write in FileUtil#unpackEntries on Windows
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | Apache Hadoopunspecified to < 3.2.3 (affected · custom) · 3.3.1 (affected) · 3.3.2 (affected) · 3.4 to < All* (unaffected · custom) · Platforms: Windows | Version-specific | Not stated | apache |
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
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache Hadoop | unspecified to < 3.2.3 (affected · custom)3.3.1 (affected)3.3.2 (affected)3.4 to < All* (unaffected · custom) | apache · cna |
Weaknesses
1- unpackEntries during TAR extraction follows symbolic links which allows writing outside expected base directory on Windows
References
2Provider assertions
2apache · cna
Arbitrary file write in FileUtil#unpackEntries on Windows
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- e5e22f360ff87db99acae73c366de40ca19af675611fca01c50f1ee750463e93
- Ingested
- 23 Sep 2026, 07:59:13 UTC
- Source record
- Official CVE record