Critical severity · published Apr 7, 2022
CVE-2022-26612
In Apache Hadoop, The unTar function uses unTarUsingJava function on Windows and the built-in tar utility on Unix and other OSes
9.8
CVSS
4.2%
EPSS
No
On KEV
Description
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
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)4.2% · higher than 91% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
HA
Hadoop · Apache
before 3.2.3; 3.3.1; 3.3.2 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-26612
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-26612
Exploit
https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz
Third Party Advisory
https://security.netapp.com/advisory/ntap-20220519-0004/
More from Hadoop
9.8
CVE-2022-25168
Command injection in org.apache.hadoop.fs.FileUtil.unTarUsingTar
9.8
CVE-2021-37404
There is a potential heap buffer overflow in Apache Hadoop libhdfs native code
9.8
CVE-2019-17195
Connect2id Nimbus JOSE+JWT before v7.9 can throw various uncaught exceptions while parsing a JWT, which could result in an application crash (potential information disclosure) or…
9.8
CVE-2017-15718
The YARN NodeManager in Apache Hadoop 2.7.3 and 2.7.4 can leak the password for credential store provider used by the NodeManager to YARN Applications
9.8
CVE-2012-4449
Apache Hadoop before 0.23.4, 1.x before 1.0.4, and 2.x before 2.0.2 generate token passwords using a 20-bit secret when Kerberos security features are enabled, which makes it…
