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

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-08-25 · Modified: 2024-08-03
- Aliases: GHSA-rr2m-gffv-mgrj
- Record: https://cvemate.com/vulnerability/CVE-2021-25642 · JSON: https://cvemate.com/vulnerability/CVE-2021-25642/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.275%, percentile 83.674%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## 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
- apache hadoop: ≥ 2.9.0, \< 2.10.2 \| ≥ 3.0.0, \< 3.2.4 \| ≥ 3.3.0, \< 3.3.4
- org.apache.hadoop hadoop-yarn-server (Maven): \< 2.10.2 \| ≥ 3.0.0, \< 3.2.4 \| ≥ 3.3.0, \< 3.3.4

## References

- <https://lists.apache.org/thread/g6vf2h4wdgzzdgk91mqozhs58wotq150>
- <https://security.netapp.com/advisory/ntap-20221201-0003/>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25642>
- <https://github.com/apache/hadoop/commit/5e2f4339fadc88f20543915fc9b0aaeaf4f9e7bf>
- <https://github.com/apache/hadoop>
- <https://security.netapp.com/advisory/ntap-20221201-0003>

---

Data as of 2026-12-05T04:45:11.872Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
