Skip to content
Fencer Vulns
high 8.8

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-yarn
    not 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

Sources

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.