WaratekVRT Sign in

CVE-2021-25642 Apache Hadoop

Affected softwareApache Hadoop
Severity8.8 High CVSS 3.1
Fixed in2.10.2, 3.2.4, 3.3.4
WeaknessDeserialization of untrusted data (CWE-502)
Published25 Aug 2022
Updated17 Jun 2026

Description

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. The 1 repository below are public GitHub repositories with fewer than 5 stars.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC 1 indexed, none at 5+ stars
  • EPSS 2.3% chance in 30 days

1 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC CVE-2021-25642 2022-08-26

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR deserialization security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-502: Deserialization of Untrusted Data.

How to mitigate CVE-2021-25642

Upgrade Apache Hadoop to a release that fixes it: 2.10.2, 3.2.4 or 3.3.4. Until you can, Waratek RASP blocks exploitation with its deserialization and process rules. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.hadoop:hadoop-yarn-server 0 2.10.2 unbounded
org.apache.hadoop:hadoop-yarn-server 3.0.0 3.2.4 unbounded
org.apache.hadoop:hadoop-yarn-server 3.3.0 3.3.4 unbounded

Products and versions

2 products, 6 version entries
SourceVendorProductSchemeAffected versions
nvd apache hadoop generic ≥ 2.9.0 and < 2.10.2 · ≥ 3.0.0 and < 3.2.4 · ≥ 3.3.0 and < 3.3.4
osv org.apache.hadoop hadoop-yarn-server generic < 2.10.2 · ≥ 3.0.0 and < 3.2.4 · ≥ 3.3.0 and < 3.3.4

References

URLTags
https://github.com/apache/hadoop/commit/5e2f4339fadc88f20543915fc9b0aaeaf4f9e7bf WEB
https://github.com/apache/hadoop PACKAGE
https://lists.apache.org/thread/g6vf2h4wdgzzdgk91mqozhs58wotq150 WEB
https://security.netapp.com/advisory/ntap-20221201-0003 WEB
https://security.netapp.com/advisory/ntap-20221201-0003/ Third Party Advisory

Timeline

Published2022-08-25By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.