Miggo Logo

CVE-2017-5637: Uncontrolled Resource Consumption in Apache ZooKeeper

7.5

CVSS Score
3.0

Basic Information

EPSS Score
0.95187%
Published
5/13/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.apache.zookeeper:zookeepermaven>= 3.4.0, <= 3.4.93.4.10
org.apache.zookeeper:zookeepermaven>= 3.5.0, <= 3.5.23.5.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from race conditions in whitelist management. The patch adds synchronization to critical section methods (isEnabled and resetWhiteList) that control command authorization. The original non-synchronized implementations allowed concurrent access to incomplete whitelist states, permitting execution of resource-intensive commands like wchp/wchc even when disabled. These functions would appear in profilers during command processing and authorization checks when the vulnerability is exploited.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

Two *our l*tt*r wor* *omm*n*s "w**p/w***" *r* *PU int*nsiv* *n* *oul* **us* spik* o* *PU utiliz*tion on *p**** ZooK**p*r s*rv*r i* **us**, w*i** l***s to t** s*rv*r un**l* to s*rv* l**itim*t* *li*nt r*qu*sts. *p**** ZooK**p*r t*ru v*rsion *.*.* *n* *

Reasoning

T** vuln*r**ility st*ms *rom r*** *on*itions in w*it*list m*n***m*nt. T** p*t** ***s syn**roniz*tion to *riti**l s**tion m*t*o*s (`is*n**l**` *n* `r*s*tW*it*List`) t**t *ontrol *omm*n* *ut*oriz*tion. T** ori*in*l non-syn**roniz** impl*m*nt*tions *llo