CVE-2022-26612

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-26612
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-26612.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-26612
Aliases
Withdrawn
2024-09-03T04:41:15.846281Z
Published
2022-04-07T19:15:08Z
Modified
2024-09-03T04:14:35.379140Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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

References

Affected packages

Git / github.com/apache/hadoop

Affected ranges

Type
GIT
Repo
https://github.com/apache/hadoop
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

Other

YARN-2928-2016-07-10

release-3.*

release-3.2.3-RC0