WaratekVRT Sign in

CVE-2022-26612 Apache Hadoop

Affected softwareApache Hadoop
Severity9.8 Critical CVSS 3.1 2 scores
Fixed in3.2.3, 2.10.2, 3.3.3
WeaknessPath traversal (CWE-22)
Published7 Apr 2022
Updated17 Jun 2026

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

CWE-59

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 4 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 4.2% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR path-traversal security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-22: Path Traversal.

How to mitigate CVE-2022-26612

Upgrade Apache Hadoop to a release that fixes it: 3.2.3, 2.10.2 or 3.3.3. Until you can, Waratek RASP blocks exploitation with its path traversal rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

9.8 CRITICAL v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 2.0 7.5 none AV:N/AC:L/Au:N/C:P/I:P/A:P NVD Primary

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts Oracle names in its risk matrix
Oracle Critical Patch Update October 2023 ↗ CPU 2023-Q4 Oracle Analytics / Analytics Server (Apache Hadoop) (6.4.0.0.0)
Oracle Critical Patch Update July 2023 ↗ CPU 2023-Q3 Oracle Analytics / Analytics Server (Apache Hive) (6.4.0.0.0, 7.0.0.0.0, 12.2.1.4.0)

Oracle components and versions

FamilyComponentVersions, as Oracle lists themRead as
Oracle Analytics Analytics Server (Apache Hadoop) 6.4.0.0.0 6.4.0.0.0
Oracle Analytics Analytics Server (Apache Hive) 6.4.0.0.0, 7.0.0.0.0, 12.2.1.4.0 6.4.0.0.0 · 7.0.0.0.0 · 12.2.1.4.0

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.hadoop:hadoop-common 3.2.0 3.2.3 unbounded
org.apache.hadoop:hadoop-common 0 2.10.2 unbounded
org.apache.hadoop:hadoop-common 3.3.0 3.3.3 unbounded

Products and versions

2 products, 6 version entries
SourceVendorProductSchemeAffected versions
nvd apache hadoop generic < 3.2.3 · 3.3.1 · 3.3.2
osv org.apache.hadoop hadoop-common generic < 2.10.2 · ≥ 3.2.0 and < 3.2.3 · ≥ 3.3.0 and < 3.3.3

References

URLTags
https://github.com/apache/hadoop PACKAGE
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 WEB
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 WEB
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 WEB
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 WEB
https://issues.apache.org/jira/browse/HADOOP-18317 WEB
https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz WEB
https://security.netapp.com/advisory/ntap-20220519-0004 WEB
https://security.netapp.com/advisory/ntap-20220519-0004/ Third Party Advisory

Timeline

Published2022-04-07By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.