CVE-2022-26612: vulnerability in Apache Hadoop
Arbitrary file write in FileUtil#unpackEntries on Windows
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
3Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackepss 4.2%
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 products
Apache Software Foundation · Apache HadoopRelated CVEs — Apache Hadoop
In the same product, most dangerous first.
CVE-2018-8009—CVE-2018-8009EPSS 6.7%CVE-2017-3162—CVE-2017-3162EPSS 6.4%CVE-2022-25168—Command injection in org.apache.hadoop.fs.FileUtil.unTarUsingTarEPSS 4.6%CVE-2021-33036—Apache Hadoop Privilege escalation vulnerabilityEPSS 4.0%CVE-2017-3161—CVE-2017-3161EPSS 3.9%CVE-2016-3086—CVE-2016-3086EPSS 3.6%