Loading HuntDB...

GHSA-gx2c-fvhc-ph4j

GitHub Security Advisory

Path traversal in Hadoop

✓ GitHub Reviewed CRITICAL Has CVE

Advisory Details

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

Affected Packages

Maven org.apache.hadoop:hadoop-common
Affected versions: 0 (fixed in 3.2.3)

Related CVEs

Key Information

GHSA ID
GHSA-gx2c-fvhc-ph4j
Published
April 8, 2022 12:00 AM
Last Modified
April 19, 2022 3:09 PM
CVSS Score
9.0 /10
Primary Ecosystem
Maven
Primary Package
org.apache.hadoop:hadoop-common
GitHub Reviewed
✓ Yes

Dataset

Last updated: July 29, 2025 6:37 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.