Skip to content
OpenAdvisories
High · 8.8 Public exploit CVE-2021-25642 EUVD-2022-6622GHSA-rr2m-gffv-mgrj

Apache Hadoop YARN remote code execution in ZKConfigurationStore of capacity scheduler

Published Aug 25, 2022 · Updated Aug 3, 2024 · Assigned by apache

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 products

VendorProductAffectedFixed
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 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.hadoop:hadoop-yarn-server < 2.10.2 2.10.2 GHSA-rr2m-gffv-mgrj
Maven org.apache.hadoop:hadoop-yarn-server >= 3.0.0, < 3.2.4 3.2.4 GHSA-rr2m-gffv-mgrj
Maven org.apache.hadoop:hadoop-yarn-server >= 3.3.0, < 3.3.4 3.3.4 GHSA-rr2m-gffv-mgrj

Advisories 1

References