CVE-2024-51504 — Vulnerability in zookeeper — CVE Details
Apache ZooKeeper: Authentication bypass with IP-based authentication in Admin Server
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.50%). Schedule for your next planned update.
Does your project use an affected org.apache.zookeeper:zookeeper version?
Paste your pom.xml to check it for CVE-2024-51504 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published November 7, 2024 (749 days ago).
- Last revised September 10, 2026 — 672 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 3.9.3 for org.apache.zookeeper:zookeeper -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| org.apache.zookeeper:zookeeper Maven · Affected: 3.9.0, 3.9.1, 3.9.2 | 3.9.3 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-290
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-51504ADVISORY
- https://github.com/apache/zookeeper/commit/2c2b74c1c11b6531aabb1bf06782e859048d5983WEB
- https://github.com/apache/zookeeperPACKAGE
- https://lists.apache.org/thread/b3qrmpkto5r6989qr61fw9y2x646kqlhWEB
- https://www.openwall.com/lists/oss-security/2024/11/06/5WEB
Frequently Asked Questions
- What is CVE-2024-51504?
- Apache ZooKeeper: Authentication bypass with IP-based authentication in Admin Server. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2024-51504?
- CVE-2024-51504 affects org.apache.zookeeper:zookeeper. It has a 1.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-51504 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 74.6% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2023-44981CRITICAL
Authorization Bypass Through User-Controlled Key vulnerability in Apache ZooKeeper
- CVE-2026-61689HIGH
XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes
- CVE-2026-107725HIGH
Hazelcast has an authorization bypass in IMap Predicates API