Read the docs
TI-2022-08881 Aliases CVE-2022-25168GHSA-8wm5-8h9c-47pc

Command injection in org.apache.hadoop.fs.FileUtil.unTarUsingTar

Priority MEDIUM 49CWE-78Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 8 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-78.

Summary

Apache Hadoop's FileUtil.unTar(File, File) API does not escape the input file name before being passed to the shell. An attacker can inject arbitrary commands. This is only used in Hadoop 3.3 InMemoryAliasMap.completeBootstrapTransfer, which is only ever run by a local user. It has been used in Hadoop 2.x for yarn localization, which does enable remote code execution. It is used in Apache Spark, from the SQL command ADD ARCHIVE. As the ADD ARCHIVE command adds new binaries to the classpath, being able to execute shell scripts does not confer new permissions to the caller. SPARK-38305. "Check existence of file before untarring/zipping", which is included in 3.3.0, 3.1.4, 3.2.2, prevents shell commands being executed, regardless of which version of the hadoop libraries are in use. Users should upgrade to Apache Hadoop 2.10.2, 3.2.4, 3.3.3 or upper (including HADOOP-18136).

Why it matters now

EPSS 0.04587 91st percentileScored 2026-11-07
Fix Partial org.apache.hadoop:hadoop-common (Maven): 2.10.2, 3.2.4, 3.3.3Red Hat: 8 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
ApacheApache Hadoop2.0.0 to 2.10.1; 3.0.0-alpha to 3.2.3; 3.3.0 to 3.3.2—No fix listedCNA
—org.apache.hadoop:hadoop-common (Maven)2.0.0 to before 2.10.22.10.2Patch availableGHSA-8wm5-8h9c-47pc
—org.apache.hadoop:hadoop-common (Maven)3.0.0-alpha to before 3.2.43.2.4Patch availableGHSA-8wm5-8h9c-47pc
—org.apache.hadoop:hadoop-common (Maven)3.3.0 to before 3.3.33.3.3Patch availableGHSA-8wm5-8h9c-47pc
  • Apache Hadoop VendorApache Affected 2.0.0 to 2.10.1; 3.0.0-alpha to 3.2.3; 3.3.0 to 3.3.2 Fixed in — No fix listed CNA
  • org.apache.hadoop:hadoop-common (Maven) Vendor— Affected 2.0.0 to before 2.10.2 Fixed in 2.10.2 Patch available GHSA-8wm5-8h9c-47pc
  • org.apache.hadoop:hadoop-common (Maven) Vendor— Affected 3.0.0-alpha to before 3.2.4 Fixed in 3.2.4 Patch available GHSA-8wm5-8h9c-47pc
  • org.apache.hadoop:hadoop-common (Maven) Vendor— Affected 3.3.0 to before 3.3.3 Fixed in 3.3.3 Patch available GHSA-8wm5-8h9c-47pc

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:*2.0.0 – 2.10.1; 3.0.0 – 3.2.3; 3.3.0 – 3.3.2VulnerableApache
  • cpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:* Versions 2.0.0 – 2.10.1; 3.0.0 – 3.2.3; 3.3.0 – 3.3.2 Vulnerable ·Apache

Remediation

  • Fix · GHSA-8wm5-8h9c-47pc org.apache.hadoop:hadoop-common (Maven) Fixed in 2.10.2 Advisory →
  • Fix · GHSA-8wm5-8h9c-47pc org.apache.hadoop:hadoop-common (Maven) Fixed in 3.2.4 Advisory →
  • Fix · GHSA-8wm5-8h9c-47pc org.apache.hadoop:hadoop-common (Maven) Fixed in 3.3.3 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Integration Camel K 1AffectedNo fix yet: Fix deferred
Red Hat Integration Data Virtualisation OperatorAffectedNo fix planned: Out of support scope
Red Hat JBoss Data Grid 7AffectedNo fix planned: Out of support scope
Red Hat JBoss Data Virtualization 6AffectedNo fix planned: Out of support scope
Red Hat JBoss Fuse 6AffectedNo fix planned: Out of support scope
Red Hat JBoss Fuse Service Works 6AffectedNo fix planned: Out of support scope
Red Hat JBoss Operations Network 3AffectedNo fix planned: Out of support scope
Red Hat OpenShift Container Platform 4AffectedNo fix yet
Not affected: 9 products
  • A-MQ Clients 2
  • Red Hat AMQ Broker 7
  • Red Hat Advanced Cluster Management for Kubernetes 2
  • Red Hat Data Grid 8
  • Red Hat Fuse 7
  • Red Hat Integration Camel Quarkus 1
  • Red Hat JBoss Enterprise Application Platform 7
  • Red Hat JBoss Enterprise Application Platform Expansion Pack
  • streams for Apache Kafka

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-25168
  2. 2026-10-03 Alias added: GHSA-8wm5-8h9c-47pc

References

  • TI-2019-12818 Connect2id Nimbus JOSE+JWT before v7.9 can throw various uncaught exceptions while… CVSS 3.1CRITICAL 9.8
  • TI-2022-09898 Arbitrary file write in FileUtil#unpackEntries on Windows CVSS 3.1CRITICAL 9.8
  • TI-2021-15353 Heap buffer overflow in libhdfs native library CVSS 3.1CRITICAL 9.8
  • TI-2018-05786 Path traversal in Apache Hadoop CVSS 3.0HIGH 8.8
  • TI-2017-11489 Information disclosure in Apache Hadoop CVSS 3.0CRITICAL 9.8
  • TI-2016-02585 Information disclosure in Apache Hadoop CVSS 3.0CRITICAL 9.8
See all 36 →

Sources