Vulnerability · Published Aug 25, 2022 · Assigned by apache

CVE-2021-25642Apache Hadoop YARN remote code execution in ZKConfigurationStore of capacity scheduler

High 8.8

In plain English

A high-severity unsafe deserialization in Apache Hadoop from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.3% (higher than 83% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)8.8High
Exploit odds (30 days)2.3%top 16.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official description

ZKConfigurationStore which is optionally used by CapacityScheduler of Apache Hadoop YARN deserializes data obtained from ZooKeeper without validation. An attacker having access to ZooKeeper can run arbitrary commands as YARN user by exploiting this. Users should upgrade to Apache Hadoop 2.10.2, 3.2.4, 3.3.4 or later (containing YARN-11126) if ZKConfigurationStore is used.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.apache.hadoop:hadoop-yarn-server2.10.2GHSA-rr2m-gffv-mgrj
Mavenorg.apache.hadoop:hadoop-yarn-server3.2.4GHSA-rr2m-gffv-mgrj
Mavenorg.apache.hadoop:hadoop-yarn-server3.3.4GHSA-rr2m-gffv-mgrj

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache Hadoop 2.9.0 to 2.10.1, 3.0.0-alpha1 to 3.1.4, 3.2.0 to 3.2.3, and 3.3.0 to 3.3.3

Weakness: CWE-502

References