[MAVEN:GHSA-GX2C-FVHC-PH4J] Path traversal in Hadoop

Severity Critical
Affected Packages 1
Fixed Packages 1
CVEs 1

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

Package Affected Version
pkg:maven/org.apache.hadoop/hadoop-common < 3.2.3
Package Fixed Version
pkg:maven/org.apache.hadoop/hadoop-common = 3.2.3
ID
MAVEN:GHSA-GX2C-FVHC-PH4J
Severity
critical
URL
https://github.com/advisories/GHSA-gx2c-fvhc-ph4j
Published
2022-04-08T00:00:21
(2 years ago)
Modified
2023-01-27T05:01:23
(20 months ago)
Rights
Maven Security Team
Type Package URL Namespace Name / Product Version Distribution / Platform Arch Patch / Fix
Affected pkg:maven/org.apache.hadoop/hadoop-common org.apache.hadoop hadoop-common < 3.2.3
Fixed pkg:maven/org.apache.hadoop/hadoop-common org.apache.hadoop hadoop-common = 3.2.3
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories Exploits PoC Pubblication Date Modification Date
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories PoC Pubblication Date Modification Date
Loading...