CVE-2022-26612

Arbitrary file write in FileUtil#unpackEntries on Windows

published April 7, 2022

CVSS
—
EPSS
4%
Percentile
91.0
In the wild
Unconfirmed
What it is

⚠️ A sneaky path traversal lurks in Apache Hadoop's tar extraction on Windows! An innocent TAR entry might just create a symlink that lets attackers extract files outside the intended directory. 😱 Think of it like a hotel guest being handed a master key that opens any room, even those that should be out of bounds. In this scenario, the unTar function is that guest, and the symlink is the key allowing access to restricted areas. An attacker could exploit this to extract sensitive files into locations they shouldn't access, potentially leading to data leaks or system compromise. While it's not actively being exploited, the risk remains significant due to the workaround on Windows systems, allowing unauthorized file access. ⚠️

Put simply

Think of it like a hotel guest being handed a master key that opens any room, even those that should be out of bounds. In this scenario, the unTar function is that guest, and the symlink is the key allowing access to restricted areas. This vulnerability occurs because the unTar function on Windows fails to properly resolve symbolic links during extraction, allowing malicious TAR entries to manipulate file locations outside of the intended directory. This issue is specific to Windows and was not caught by the intended security checks present in Unix systems.

What to do

An attacker could exploit this to extract sensitive files into locations they shouldn't access, potentially leading to data leaks or system compromise. While it's not actively being exploited, the risk remains significant due to the workaround on Windows systems, allowing unauthorized file access. ⚠️ Upgrade to Apache Hadoop version 3.2.3 or higher to resolve this vulnerability. Additionally, review your environment for any potentially dangerous TAR files that could be unpacked without supervision. Regularly audit your file permissions to enhance security. 🛡️ You've got this! Stay vigilant, and by following these steps, you'll keep your system secure and sound. 😄

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.04241 · 91.0th percentile
Published
2022-04-07T18:20Z
EPSS history
Timeline
  • 07 APR 18:20Z
    Arbitrary file write in FileUtil#unpackEntries on Windows
    cvelistv5