CVE-2022-26612: Arbitrary file write in FileUtil#unpackEntries on Windows

Published Apr 7, 2022
·
Updated

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 Software

4 affected components
Apache Hadoop<3.2.3
Apache Hadoop=3.3.1
Apache Hadoop=3.3.2
Microsoft Windows

Event History

Apr 7, 2022
CVE Published
via MITRE·06:20 PM
Data Sourced
via MITRE·06:20 PM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID?

The vulnerability ID is CVE-2022-26612.

2

What is the severity of CVE-2022-26612?

The severity of CVE-2022-26612 is critical with a severity value of 9.8.

3

Which software is affected by CVE-2022-26612?

Apache Hadoop versions up to and including 3.2.3, 3.3.1, and 3.3.2 are affected by CVE-2022-26612.

4

What is the impact of CVE-2022-26612?

CVE-2022-26612 can allow an attacker to create a symlink that points to an external directory, potentially leading to arbitrary file extraction.

5

Are Microsoft Windows systems vulnerable to CVE-2022-26612?

No, Microsoft Windows systems are not vulnerable to CVE-2022-26612.

6

How can I fix CVE-2022-26612?

Update Apache Hadoop to a version that is not vulnerable, such as versions higher than 3.3.2.

7

Where can I find more information about CVE-2022-26612?

You can find more information about CVE-2022-26612 in the references provided: [NetApp Security Advisory](https://security.netapp.com/advisory/ntap-20220519-0004/) and [Apache mailing list thread](https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203