CVE-2021-25642
HIGH 8.8CVSS 3.1Deserialization of Untrusted Data in Apache Hadoop YARN
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.
- Published
- 25 Aug 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@apache.org
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- GHSA-rr2m-gffv-mgrj
- Sources
- NVDJSONOSV GHSA-rr2m-gffv-mgrjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | hadoopcpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:* |
>= 2.9.0, < 2.10.2 | 2.10.2 |
| NVD | apache | hadoopcpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:* |
>= 3.0.0, < 3.2.4 | 3.2.4 |
| NVD | apache | hadoopcpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:* |
>= 3.3.0, < 3.3.4 | 3.3.4 |
| OSV | Maven | org.apache.hadoop:hadoop-yarn-server | < 2.10.2 | 2.10.2 |
| OSV | Maven | org.apache.hadoop:hadoop-yarn-server | >= 3.0.0, < 3.2.4 | 3.2.4 |
| OSV | Maven | org.apache.hadoop:hadoop-yarn-server | >= 3.3.0, < 3.3.4 | 3.3.4 |
References
- https://lists.apache.org/thread/g6vf2h4wdgzzdgk91mqozhs58wotq150 · Mailing List, Vendor Advisory, WEB
- https://security.netapp.com/advisory/ntap-20221201-0003/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-25642 · ADVISORY
- https://github.com/apache/hadoop/commit/5e2f4339fadc88f20543915fc9b0aaeaf4f9e7bf · WEB
- https://github.com/apache/hadoop · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 25 Aug 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 26 Aug 2022)