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

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.27%, higher than 83% of CVEs (2026-12-01)
- Published: 2022-08-25T00:00:00.000Z
- Modified: 2026-06-17T03:42:15.870Z
- Also known as: GHSA-rr2m-gffv-mgrj
- Weaknesses: CWE-502
- 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.

(As written by CVE List.)

## Affected

- 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
- org.apache.hadoop:hadoop-yarn-server (Maven): before 2.10.2; from 3.0.0 before 3.2.4; from 3.3.0 before 3.3.4
- apache hadoop: from 2.9.0 before 2.10.2; from 3.0.0 before 3.2.4; from 3.3.0 before 3.3.4

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://lists.apache.org/thread/g6vf2h4wdgzzdgk91mqozhs58wotq150> (mailing-list, vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20221201-0003/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25642> (advisory)
- <https://github.com/apache/hadoop/commit/5e2f4339fadc88f20543915fc9b0aaeaf4f9e7bf> (web)
- <https://github.com/apache/hadoop> (package)
- <https://security.netapp.com/advisory/ntap-20221201-0003> (web)

## Sources

- CVE List: [CVE-2021-25642](https://www.cve.org/CVERecord?id=CVE-2021-25642), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-rr2m-gffv-mgrj](https://github.com/advisories/GHSA-rr2m-gffv-mgrj), CC-BY-4.0, modified 2024-02-22
- NVD: [CVE-2021-25642](https://nvd.nist.gov/vuln/detail/CVE-2021-25642), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-25642 · Whole record: https://cve.day/CVE-2021-25642.json · Rebuilt by cve.day 2026-11-25T22:58:07.787Z
