cve.bz

CVE-2022-26612 apache hadoop: Link Following

9.8 criticalExploit referenceEPSS 4.2%Fix available

Critical (9.8) in apache hadoop. EPSS 4.2% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.hadoop:hadoop-common 2.10.2, 3.2.3, 3.3.3.

On this page
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

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
4.2% (unchanged from 4.2% a week ago; 4.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 91st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-26612 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-26612?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-26612?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-26612 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Hadoopbefore 3.2.3
Apache Software Foundation Apache Hadoop3.3.1
Apache Software Foundation Apache Hadoop3.3.2

Fixed in

ProductFixed in
Apache Software Foundation Apache Hadoop3.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-gx2c-fvhc-ph4jMavenorg.apache.hadoop:hadoop-common>=3.2.0 <3.2.33.2.3
GHSA-gx2c-fvhc-ph4jMavenorg.apache.hadoop:hadoop-common<2.10.22.10.2
GHSA-gx2c-fvhc-ph4jMavenorg.apache.hadoop:hadoop-common>=3.3.0 <3.3.33.3.3

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
A-MQ Clients 2hadoopNot affected
Logging Subsystem for Red Hat OpenShifthadoopAffected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/volsync-mover-rclone-rhel8Not affected
Red Hat AMQ Broker 7hadoopNot affected
Red Hat Data Grid 8hadoopNot affected
Red Hat Fuse 7hadoopNot affected
Red Hat Integration Camel K 1hadoopWill not fix
Red Hat Integration Camel Quarkus 1hadoopWill not fix
Red Hat Integration Data Virtualisation OperatorhadoopOut of support scope
Red Hat JBoss Data Grid 7hadoopOut of support scope
Red Hat JBoss Data Virtualization 6hadoopOut of support scope
Red Hat JBoss Enterprise Application Platform 7hadoop-coreNot affected
Red Hat JBoss Enterprise Application Platform Expansion PackhadoopNot affected
Red Hat JBoss Fuse 6hadoopOut of support scope
Red Hat JBoss Fuse Service Works 6hadoopOut of support scope
Red Hat JBoss Operations Network 3hadoopOut of support scope
Red Hat OpenShift Container Platform 4openshift4/ose-metering-hadoopAffected
streams for Apache KafkahadoopNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-26612.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON