Loading...
Skip to main content

CVE-2022-26612 — Path traversal in org.apache.hadoop:hadoop-common...

CRITICAL

Path traversal in Hadoop

Published April 8, 2022Updated October 1, 2025Source: osv

Summary

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 2.10.2, 3.2.3, 3.3.3, and 3.4.0.

Advisory Timeline

  • First published April 8, 2022 (1649 days ago).
  • Last revised October 1, 2025 — 1273 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.apache.hadoop:hadoop-common to 2.10.2 or later
<!-- Update pom.xml dependency version to 2.10.2 for org.apache.hadoop:hadoop-common -->
Maven
Update org.apache.hadoop:hadoop-common to 3.2.3 or later
<!-- Update pom.xml dependency version to 3.2.3 for org.apache.hadoop:hadoop-common -->
Maven
Update org.apache.hadoop:hadoop-common to 3.3.3 or later
<!-- Update pom.xml dependency version to 3.3.3 for org.apache.hadoop:hadoop-common -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: maven (1).

PackageEcosystemAffectedFixed In
org.apache.hadoop:hadoop-common
maven
0.22.0, 0.23.1, 0.23.10, 0.23.11 (+48 more)2.10.2
org.apache.hadoop:hadoop-common
maven
3.2.0, 3.2.1, 3.2.23.2.3
org.apache.hadoop:hadoop-common
maven
3.3.0, 3.3.1, 3.3.23.3.3

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Frequently Asked Questions

What is CVE-2022-26612?
Path traversal in Hadoop This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2022-26612?
CVE-2022-26612 affects org.apache.hadoop:hadoop-common. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-26612 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-gx2c-fvhc-ph4j

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies