cve.bz

CVE-2022-26612

9.8 criticalEPSS 4.2%

Critical (9.8) in apache hadoop. EPSS 4.2% chance of exploitation in the next 30 days. Fixed in org.apache.hadoop:hadoop-common 2.10.2, 3.2.3, 3.3.3.

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

Severity

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
EPSS
4.2% chance of exploitation in the next 30 days; higher than 91% of CVEs (scores of 2026-10-31)
CWE
CWE-59
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-gx2c-fvhc-ph4jMavenorg.apache.hadoop:hadoop-common>=3.2.0 <3.2.33.2.3
GHSA-gx2c-fvhc-ph4jMavenorg.apache.hadoop:hadoop-common<2.10.22.10.2
GHSA-gx2c-fvhc-ph4jMavenorg.apache.hadoop:hadoop-common>=3.3.0 <3.3.33.3.3

References

Check your stackJSON