9.8

CVE-2022-25168: apache software foundation apache hadoop OS Command Injection

CVSS: 9.8v3.1CriticalModified
AliasesCGA-4gc9-rr3p-24cxGHSA-8wm5-8h9c-47pcCGA-rjmg-22vw-2v38
Published 04-08-2022Last modified 03-08-2024

Vulnerability summary

CVE-2022-25168 is a critical (CVSS 9.8) OS Command Injection vulnerability in apache software foundation apache hadoop. EPSS estimates a 4.46% chance of exploitation in the next 30 days, higher than 91.3% of scored vulnerabilities.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
4.46%
0%100%
Low · +0.28 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 04-08-2022
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last modifiedVulnerability information updated.

Description

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).

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

4.46%

Chance of exploitation in the next 30 days

Percentile

91%

Versus all other CVEs

30-day change

+0.28 pp

From 4.18% on 18-09-2026

18-09-202618-10-2026
EPSS score
4.46%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Apache1 product
  • hadoop≥ 2.0.0, ≤ 2.10.1 | ≥ 3.0.0, ≤ 3.2.3 | ≥ 3.3.0, ≤ 3.3.2
Apache software foundation1 product
  • apache hadoop2.0.0 to 2.10.1 | 3.0.0-alpha to 3.2.3 | 3.3.0 to 3.3.2
Chainguard1 product
  • hadoop-fips-3.3.6All versions (No fix recorded)
Org.apache.hadoop1 product
  • hadoop-common≥ 2.0.0, < 2.10.2 | ≥ 3.0.0-alpha, < 3.2.4 | ≥ 3.3.0, < 3.3.3

4 vendors · 4 products

References

6 links