Live threats

All CVEs / Apache

CVE-2022-26612Apache Hadoop

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
3.3%
probability of exploitation in 30 days · percentile 89
Auth required
No
Published
Apr 7, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-59
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Hadoop.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.apache.hadoop:hadoop-common ≥ 3.2.0 < 3.2.3 3.2.3 —
Maven org.apache.hadoop:hadoop-common < 2.10.2 2.10.2 —
Maven org.apache.hadoop:hadoop-common ≥ 3.3.0 < 3.3.3 3.3.3 —

Per OSV / GitHub Advisories (GHSA-gx2c-fvhc-ph4j). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
apachehadoop< 3.2.3
apachehadoop3.3.1
apachehadoop3.3.2

Official sources

References

Links published by the sources. Open them with care.