PT-2022-2441 · Apache · Apache Hadoop

Jarlob

+1

·

Published

2022-03-07

·

Updated

2023-08-08

·

CVE-2022-26612

CVSS v2.0

10

Critical

VectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions Apache Hadoop versions prior to 3.2.3
Description The issue is related to the unTar function in Apache Hadoop, which uses the unTarUsingJava function on Windows and the built-in tar utility on Unix and other OSes. This can lead to a TAR entry creating a symlink under the expected extraction directory, pointing to an external directory. A subsequent TAR entry may then extract an arbitrary file into the external directory using the symlink name. On Windows, the getCanonicalPath call does not resolve symbolic links, bypassing the targetDirPath check and allowing writing outside the expected base directory.
Recommendations For Apache Hadoop versions prior to 3.2.3, update to Apache Hadoop 3.2.3 to address the issue. As a temporary workaround, consider restricting the use of the unTar function on Windows systems until the update is applied.

Exploit

Fix

Path traversal

Link Following

Weakness Enumeration

Related Identifiers

BDU:2022-02847
CVE-2022-26612
GHSA-GX2C-FVHC-PH4J
OESA-2022-2092

Affected Products

Apache Hadoop