VYPR
Critical severityNVD Advisory· Published Apr 7, 2022· Updated Aug 3, 2024

Arbitrary file write in FileUtil#unpackEntries on Windows

CVE-2022-26612

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

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
org.apache.hadoop:hadoop-commonMaven
>= 3.2.0, < 3.2.33.2.3
org.apache.hadoop:hadoop-commonMaven
< 2.10.22.10.2
org.apache.hadoop:hadoop-commonMaven
>= 3.3.0, < 3.3.33.3.3

Affected products

2

Patches

Vulnerability mechanics

References

10

News mentions

0

No linked articles in our index yet.