Advisories for Maven/Org.apache.hadoop/Hadoop-Hdfs-Native-Client package

2022

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

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 …