Improper Preservation of Permissions Affecting hadoop-common package, versions *


Severity

Recommended
high

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
4.24% (91st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL10-HADOOPCOMMON-12208203
  • published28 Aug 2025
  • disclosed7 Apr 2022

Introduced: 7 Apr 2022

CVE-2022-26612  (opens in a new tab)
CWE-281  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:10 hadoop-common.

NVD Description

Note: Versions mentioned in the description apply only to the upstream hadoop-common package and not the hadoop-common package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

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 Base Scores

version 3.1