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

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: 2022-08-25 Last update: 2026-06-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2021-25642 is rated Moderate Risk (60.3/100): CVSS High severity, with medium exploitation likelihood (EPSS 1.72%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2021-25642

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 2.70% 1.72% -0.98%
2 2026-02-16 2.07% 2.70% +0.63%
3 2026-01-06 2.07%

Full EPSS history (21 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2021-25642

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
8.8 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.8 5.9 [email protected]

Weakness enumeration for CVE-2021-25642

GitHub Security Advisory for CVE-2021-25642

GHSA-rr2m-gffv-mgrj · Severity: high · Ecosystem: maven — Deserialization of Untrusted Data in Apache Hadoop YARN

OS Trackers for CVE-2021-25642

vendor priority summary link
redhat high https://access.redhat.com/security/cve/CVE-2021-25642

Affected software / configurations for CVE-2021-25642

Vendor Product Version Raw CPE
apache hadoop >= 2.9.0, < 2.10.2 cpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:*
apache hadoop >= 3.0.0, < 3.2.4 cpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:*
apache hadoop >= 3.3.0, < 3.3.4 cpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:*

References for CVE-2021-25642

cvelogic Threat Intelligence