{"id":"CVE-2021-25642","aliases":["CVE-2021-25642","GHSA-rr2m-gffv-mgrj"],"related":[],"kind":"vulnerability","state":"published","title":"Apache Hadoop YARN remote code execution in ZKConfigurationStore of capacity scheduler","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"ZKConfigurationStore que es usado opcionalmente por CapacityScheduler de Apache Hadoop YARN de serializa los datos obtenidos de ZooKeeper sin comprobación. Un atacante que tenga acceso a ZooKeeper puede ejecutar comandos arbitrarios como usuario de YARN al aprovechar esto. Los usuarios deben actualizar a Apache Hadoop versiones 2.10.2, 3.2.4, 3.3.4 o posteriores (que contengan YARN-11126) si es usado ZKConfigurationStore.","source":"nvd"}],"published":"2022-08-25T00:00:00.000Z","modified":"2026-06-17T03:42:15.870Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"version":"2.9.0 to 2.10.1, 3.0.0-alpha1 to 3.1.4, 3.2.0 to 3.2.3, and 3.3.0 to 3.3.3","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Hadoop","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.10.2"}],"ecosystem":"Maven","package":"org.apache.hadoop:hadoop-yarn-server","purl":"pkg:maven/org.apache.hadoop/hadoop-yarn-server","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"3.2.4"}],"ecosystem":"Maven","package":"org.apache.hadoop:hadoop-yarn-server","purl":"pkg:maven/org.apache.hadoop/hadoop-yarn-server","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.3.0","status":"affected","fixed":"3.3.4"}],"ecosystem":"Maven","package":"org.apache.hadoop:hadoop-yarn-server","purl":"pkg:maven/org.apache.hadoop/hadoop-yarn-server","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.9.0","fixed":"2.10.2"},{"status":"affected","introduced":"3.0.0","fixed":"3.2.4"},{"status":"affected","introduced":"3.3.0","fixed":"3.3.4"}],"vendor":"apache","product":"hadoop","cpe":"cpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://lists.apache.org/thread/g6vf2h4wdgzzdgk91mqozhs58wotq150","tags":["mailing-list","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20221201-0003/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25642","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/apache/hadoop/commit/5e2f4339fadc88f20543915fc9b0aaeaf4f9e7bf","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/hadoop","tags":["package"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20221201-0003","tags":["web"],"sources":["ghsa"]}],"credits":["Apache Hadoop would like to thank Liu Ximing for reporting this issue."],"assigner":"apache","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-25642","url":"https://www.cve.org/CVERecord?id=CVE-2021-25642","licence":"CVE Terms of Use","modified":"2024-08-03T20:11:28.113Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rr2m-gffv-mgrj","url":"https://github.com/advisories/GHSA-rr2m-gffv-mgrj","licence":"CC-BY-4.0","modified":"2024-02-22T05:43:15.326Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-25642","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25642","licence":"Public domain","modified":"2026-06-17T03:42:15.870Z"}],"updatedAt":"2026-11-25T22:58:07.787Z","epss":{"score":0.02275,"percentile":0.83584,"date":"2026-12-01T12:00:22.000Z"}}