CVE-2024-51504

CVE-2024-51504 is a high-severity security vulnerability in org.apache.zookeeper:zookeeper (maven), affecting versions >= 3.9.0, < 3.9.3. It is fixed in 3.9.3.

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.

Impact

Affected versions

org.apache.zookeeper:zookeeper (>= 3.9.0, < 3.9.3)

Security releases

org.apache.zookeeper:zookeeper → 3.9.3 (maven)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

Upgrade org.apache.zookeeper:zookeeper to 3.9.3 or later to resolve this vulnerability.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is CVE-2024-51504? CVE-2024-51504 is a high-severity security vulnerability in org.apache.zookeeper:zookeeper (maven), affecting versions >= 3.9.0, < 3.9.3. It is fixed in 3.9.3.
  2. Which versions of org.apache.zookeeper:zookeeper are affected by CVE-2024-51504? org.apache.zookeeper:zookeeper (maven) versions >= 3.9.0, < 3.9.3 is affected.
  3. Is there a fix for CVE-2024-51504? Yes. CVE-2024-51504 is fixed in 3.9.3. Upgrade to this version or later.
  4. Is CVE-2024-51504 exploitable, and should I be worried? Whether CVE-2024-51504 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  5. What actually determines whether CVE-2024-51504 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  6. How do I fix CVE-2024-51504? Upgrade org.apache.zookeeper:zookeeper to 3.9.3 or later.

Other vulnerabilities in org.apache.zookeeper:zookeeper

CVE-2026-24281CVE-2026-24308CVE-2025-58457CVE-2024-51504CVE-2023-44981

Stop the waste.
Protect your environment with Kodem.