CVE-2022-26612 json
Arbitrary file write in FileUtil#unpackEntries on Windows
published 2022-04-07 4 y ago modified 2026-06-17 4 mo ago also GHSA-gx2c-fvhc-ph4j , EUVD-2022-1748
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.2%
- EPSS 4.2% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
Summary
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
Patch / fix
- maven org.apache.hadoop:hadoop-common 2.10.2, 3.2.3, 3.3.3
- Apache Software Foundation Apache Hadoop 3.2.3
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-26612 updated cvss 9.8
hadoop: Arbitrary file write in FileUtil#unpackEntries on Windows
-
Red Hat Logging Subsystem for Red Hat OpenShift hadoop-commonaffected: no fix available
-
Red Hat Integration Camel K 1 hadoop hadoop Red Hat Integration Camel Quarkus 1 hadoop hadoopaffected: no fix planned “Will not fix”
-
Red Hat Integration Data Virtualisation Operator hadoop hadoop Red Hat JBoss Data Grid 7 hadoop hadoop Red Hat JBoss Data Virtualization 6 hadoop hadoop Red Hat JBoss Fuse 6 hadoop hadoop Red Hat JBoss Fuse Service Works 6 hadoop hadoop Red Hat JBoss Operations Network 3 hadoop hadoopaffected: no fix planned “Out of support scope”
-
Red Hat OpenShift Container Platform 4 openshift4/ose-metering-hadoopaffected: no fix available
-
Red Hat A-MQ Clients 2 hadoop hadoop Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/volsync-mover-rclone-rhel8 Red Hat AMQ Broker 7 hadoop hadoop Red Hat Data Grid 8 hadoop hadoop Red Hat Fuse 7 hadoop hadoop Red Hat JBoss Enterprise Application Platform 7 hadoop-corenot affected: vulnerable code not present
+2 more productsfewer
Red Hat JBoss Enterprise Application Platform Expansion Pack hadoop hadoop Red Hat streams for Apache Kafka hadoop hadoop
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
4.24% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- lists.apache.org https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.hadoop:hadoop-common | >=3.2.0, <3.2.3 <2.10.2 >=3.3.0, <3.3.3 |
3.2.3 2.10.2 3.3.3 |
Affected products
- Apache Software Foundation Apache Hadoop
Classification
References
-
lists.apache.org
/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz
web, exploit, vendor-advisory
-
security.netapp.com
/advisory/ntap-20220519-0004/
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-26612
advisory
-
github.com
/apache/hadoop
package
-
github.com
/apache/hadoop/commits/rel/release-2.10.2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/
web
-
github.com
/apache/hadoop/commits/rel/release-3.2.3/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/f
web
-
github.com
/apache/hadoop/commits/rel/release-3.3.3/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/f
web
-
github.com
/apache/hadoop/commits/rel/release-3.4.0/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/f
web
-
issues.apache.org
/jira/browse/HADOOP-18317
web
-
security.netapp.com
/advisory/ntap-20220519-0004
web
Sources
- CVE List CVE-2022-26612
- GitHub Advisory GHSA-gx2c-fvhc-ph4j
- NVD CVE-2022-26612
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.