CVE-2022-26612: Arbitrary file write in FileUtil#unpackEntries on Windows
Vulnerability summary
CVE-2022-26612 is a critical (CVSS 9.8) vulnerability in apache software foundation apache hadoop. EPSS estimates a 4.24% chance of exploitation in the next 30 days, higher than 91.3% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?Timeline
- 07-04-2022PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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 metrics
4 scores · 3 sources · 2 versions- OSV · ChainguardEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · MavenEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
4.24%
Chance of exploitation in the next 30 days
Percentile
91%
Versus all other CVEs
30-day change
No change 0.00 pp
From 4.24% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (lists.apache.org)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Apache1 product
- hadoop< 3.2.3 | 3.3.1 | 3.3.2
Apache software foundation1 product
- apache hadoop≥ unspecified, < 3.2.3 | 3.3.1 | 3.3.2
Chainguard1 product
- hadoop-fips-3.3.6All versions (No fix recorded)
Org.apache.hadoop1 product
- hadoop-common≥ 3.2.0, < 3.2.3 | < 2.10.2 | ≥ 3.3.0, < 3.3.3
4 vendors · 4 products
References
10 links- github.com/apache/hadoopPACKAGE