9.8
CRITICAL
CVE-2022-25168
Apache Hadoop Shell Injection Vulnerability
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).

INFO

Published Date :

Aug. 4, 2022, 3:15 p.m.

Last Modified :

June 26, 2023, 11:15 a.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2022-25168 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2022-25168 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Apache hadoop
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2022-25168.

URL Resource
https://lists.apache.org/thread/mxqnb39jfrwgs3j6phwvlrfq4mlox130 Mailing List Vendor Advisory
https://security.netapp.com/advisory/ntap-20220915-0007/ Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Updated: 3 months, 4 weeks ago
1 stars 0 fork 0 watcher
Born at : Jan. 24, 2024, 4:31 p.m. This repo has been linked 83 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-25168 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-25168 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Jun. 26, 2023

    Action Type Old Value New Value
    Removed CWE Apache Software Foundation CWE-88
    Added CWE Apache Software Foundation CWE-78
    Removed CWE Reason CWE-88 / More specific CWE option available
  • Reanalysis by [email protected]

    Jun. 23, 2023

    Action Type Old Value New Value
    Removed CWE NIST CWE-88
    Added CWE NIST CWE-78
  • Modified Analysis by [email protected]

    Oct. 28, 2022

    Action Type Old Value New Value
    Changed Reference Type https://security.netapp.com/advisory/ntap-20220915-0007/ No Types Assigned https://security.netapp.com/advisory/ntap-20220915-0007/ Third Party Advisory
  • CVE Modified by [email protected]

    Sep. 15, 2022

    Action Type Old Value New Value
    Added Reference https://security.netapp.com/advisory/ntap-20220915-0007/ [No Types Assigned]
  • Initial Analysis by [email protected]

    Aug. 10, 2022

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://lists.apache.org/thread/mxqnb39jfrwgs3j6phwvlrfq4mlox130 No Types Assigned https://lists.apache.org/thread/mxqnb39jfrwgs3j6phwvlrfq4mlox130 Mailing List, Vendor Advisory
    Added CWE NIST CWE-88
    Added CPE Configuration OR *cpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:* versions from (including) 2.0.0 up to (including) 2.10.1 *cpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:* versions from (including) 3.0.0 up to (including) 3.2.3 *cpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:* versions from (including) 3.3.0 up to (including) 3.3.2
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-25168 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.48 }} -0.06%

score

0.76090

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability