cve.bz

CVE-2021-25642 apache hadoop: Deserialization of Untrusted Data

8.8 highEPSS 2.3%Fix available

High (8.8) in apache hadoop. EPSS 2.3% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.hadoop:hadoop-yarn-server 2.10.2, 3.2.4, 3.3.4.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
2.3% (unchanged from 2.3% a week ago; 2.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 84th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-25642 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-25642?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-25642?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-25642 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:hadoopfrom 2.9.0 before 2.10.2
apache:hadoopfrom 3.0.0 before 3.2.4
apache:hadoopfrom 3.3.0 before 3.3.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rr2m-gffv-mgrjMavenorg.apache.hadoop:hadoop-yarn-server<2.10.22.10.2
GHSA-rr2m-gffv-mgrjMavenorg.apache.hadoop:hadoop-yarn-server>=3.0.0 <3.2.43.2.4
GHSA-rr2m-gffv-mgrjMavenorg.apache.hadoop:hadoop-yarn-server>=3.3.0 <3.3.43.3.4

Red Hat

Red Hat rates this Important.

Red Hat's statement

No Red Hat products are affected by this vulnerability. While some do use Hadoop YARN, none provide the affected Capacity Scheduler component.

ProductPackageStateAdvisory
Logging Subsystem for Red Hat OpenShifthadoop-yarnNot affected
Red Hat build of Apache Camel for Spring Boot 3hadoop-yarnNot affected
Red Hat Fuse 7hadoop-yarnNot affected
Red Hat Integration Camel K 1hadoop-yarnNot affected
Red Hat Integration Camel Quarkus 1hadoop-yarnNot affected
Red Hat JBoss Data Grid 7hadoop-yarnNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-25642.

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON