CVE-2024-51504
Apache ZooKeeper: Authentication bypass with IP-based authentication in Admin Server
Description
When using IPAuthenticationProvider in ZooKeeper Admin Server there is a possibility of Authentication Bypass by Spoofing -- this only impacts IP based authentication implemented in ZooKeeper Admin Server. Default configuration of client's IP address detection in IPAuthenticationProvider, which uses HTTP request headers, is weak and allows an attacker to bypass authentication via spoofing client's IP address in request headers. Default configuration honors X-Forwarded-For HTTP header to read client's IP address. X-Forwarded-For request header is mainly used by proxy servers to identify the client and can be easily spoofed by an attacker pretending that the request comes from a different IP address. Admin Server commands, such as snapshot and restore arbitrarily can be executed on successful exploitation which could potentially lead to information leakage or service availability issues. Users are recommended to upgrade to version 3.9.3, which fixes this issue.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.zookeeper » zookeeper | >= 3.9.0, < 3.9.3 | 3.9.3 |
Blast radius
40% of the dependent artifacts (423) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2,989 |
| 2 hops | 6,660 |
| 3 hops | 7,559 |
| 4 hops | 22,791 |
| 5 hops | 13,177 |
| 6 hops | 4,821 |
Most used dependents
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.curator » curator-recipes1,197 usages
- org.apache.curator » curator-framework1,070 usages
- org.apache.curator » curator-test1,002 usages
- org.apache.spark » spark-mllib831 usages
- org.apache.solr » solr-solrj784 usages
- org.apache.spark » spark-streaming670 usages
- org.apache.spark » spark-hive633 usages
- org.apache.curator » curator-client529 usages
- org.apache.spark » spark-catalyst502 usages
- org.apache.solr » solr-core500 usages
- org.apache.hive » hive-service301 usages
- org.apache.accumulo » accumulo-core213 usages
- org.apache.solr » solr-test-framework181 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2024-51504
- Webhttps://github.com/apache/zookeeper/commit/2c2b74c1c11b6531aabb1bf06782e859048d5983
- Packagehttps://github.com/apache/zookeeper
- Webhttps://lists.apache.org/thread/b3qrmpkto5r6989qr61fw9y2x646kqlh
- Webhttp://www.openwall.com/lists/oss-security/2024/11/06/5
