Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.hadoop/hadoop-common
  4. ›
  5. CVE-2022-26612

CVE-2022-26612: Path traversal in Hadoop

April 7, 2022 (updated August 8, 2023)

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 does not 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

  • github.com/advisories/GHSA-gx2c-fvhc-ph4j
  • lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz
  • nvd.nist.gov/vuln/detail/CVE-2022-26612

Code Behaviors & Features

Detect and mitigate CVE-2022-26612 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.2.3, all versions starting from 3.3.1 up to 3.3.2

Fixed versions

  • 3.2.3
  • 3.3.3

Solution

Upgrade to versions 3.2.3, 3.3.3 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

maven/org.apache.hadoop/hadoop-common/CVE-2022-26612.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:54 +0000.