Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.zookeeper/zookeeper
  4. ›
  5. CVE-2024-51504

CVE-2024-51504: Apache ZooKeeper: Authentication bypass with IP-based authentication in Admin Server

November 7, 2024 (updated June 30, 2025)

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.

References

  • github.com/advisories/GHSA-g93m-8x6h-g5gv
  • github.com/apache/zookeeper
  • github.com/apache/zookeeper/commit/2c2b74c1c11b6531aabb1bf06782e859048d5983
  • lists.apache.org/thread/b3qrmpkto5r6989qr61fw9y2x646kqlh
  • nvd.nist.gov/vuln/detail/CVE-2024-51504

Code Behaviors & Features

Detect and mitigate CVE-2024-51504 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.9.0 before 3.9.3

Fixed versions

  • 3.9.3

Solution

Upgrade to version 3.9.3 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-290: Authentication Bypass by Spoofing

Source file

maven/org.apache.zookeeper/zookeeper/CVE-2024-51504.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:00 +0000.