CVE-2021-25642 json
Apache Hadoop YARN remote code execution in ZKConfigurationStore of capacity scheduler
published 2022-08-25 4 y ago modified 2026-06-17 4 mo ago also GHSA-rr2m-gffv-mgrj , EUVD-2022-6622
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.3%
- EPSS 2.3% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.apache.hadoop:hadoop-yarn-server 2.10.2, 3.2.4, 3.3.4
- apache hadoop 2.10.2, 3.2.4, 3.3.4
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-25642 updated cvss 7.5
Hadoop: YARN remote code execution in ZKConfigurationStore of capacity scheduler
-
Red Hat Logging Subsystem for Red Hat OpenShift hadoop-yarn Red Hat build of Apache Camel for Spring Boot 3 hadoop-yarn hadoop-yarn Red Hat Fuse 7 hadoop-yarn hadoop-yarn Red Hat Integration Camel K 1 hadoop-yarn hadoop-yarn Red Hat Integration Camel Quarkus 1 hadoop-yarn hadoop-yarn Red Hat JBoss Data Grid 7 hadoop-yarn hadoop-yarnnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.30% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.hadoop:hadoop-yarn-server | <2.10.2 >=3.0.0, <3.2.4 >=3.3.0, <3.3.4 |
2.10.2 3.2.4 3.3.4 |
Affected products
- Apache Software Foundation Apache Hadoop
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
-
github.com
/apache/hadoop/commit/5e2f4339fadc88f20543915fc9b0aaeaf4f9e7bf
web
-
lists.apache.org
/thread/g6vf2h4wdgzzdgk91mqozhs58wotq150
web, mailing-list, vendor-advisory
-
security.netapp.com
/advisory/ntap-20221201-0003/
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-25642
advisory
-
github.com
/apache/hadoop
package
-
security.netapp.com
/advisory/ntap-20221201-0003
web
Sources
- CVE List CVE-2021-25642
- GitHub Advisory GHSA-rr2m-gffv-mgrj
- NVD CVE-2021-25642
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.