Skip to content
Apache ZooKeeperGHSA-g93m-8x6h-g5gv

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

HighCVE-2024-51504 · Published Nov 7, 2024 · updated Sep 10, 2026

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.

GitHub advisory

Affected versions

PackageAffectedFixed in
org.apache.zookeeper:zookeeper
Maven
>= 3.9.0, < 3.9.33.9.3
Details and references
CVSS 4.0
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
Severity from
GitHub (reviewed advisory)
Weakness
CWE-290
Also known as
BIT-zookeeper-2024-51504, CVE-2024-51504

More Apache ZooKeeper advisories

All Apache ZooKeeper
Advisory
Apache ZooKeeper has improper handling of configuration values
HighMar 7
Apache ZooKeeper: Reverse-DNS fallback enables hostname verification bypass in ZooKeeper ZKTrustManager
High7.4Mar 7
Apache ZooKeeper: Insufficient Permission Check in AdminServer Snapshot/Restore Commands
Medium4.3Sep 24, 2025
Apache ZooKeeper vulnerable to information disclosure in persistent watchers handling
Medium5.3Mar 15, 2024
Authorization Bypass Through User-Controlled Key vulnerability in Apache ZooKeeper
Critical9.1Oct 11, 2023
Uncontrolled Resource Consumption in Apache ZooKeeper
High7.5May 13, 2022

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.