Skip to content

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

CriticalCVSS 9.1 EPSS 0.91%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
UbuntuDebian

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.

Upgrade path

5 packages: 4 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/zookeeper(Ubuntu 24.04) All versions No fix listed No fix yet
apache zookeeper >= 3.9.0, < 3.9.3 3.9.3 Fixed
debian/zookeeper(Debian 13) < 3.9.3-1 3.9.3-1 Fixed
debian/zookeeper(Debian 14) < 3.9.3-1 3.9.3-1 Fixed
org.apache.zookeeper/zookeeper(Maven) = 3.9.0; = 3.9.1; = 3.9.2; >= 3.9.0, < 3.9.3 3.9.3 Fixed

Affected products

ProductAffected versionsFixed in
org.apache.zookeeper/zookeeper(Maven) >= 3.9.0, < 3.9.3 3.9.3
org.apache.zookeeper/zookeeper(Maven) = 3.9.0 No fix listed
org.apache.zookeeper/zookeeper(Maven) = 3.9.1 No fix listed
org.apache.zookeeper/zookeeper(Maven) = 3.9.2 No fix listed
debian/zookeeper(Debian:13) < 3.9.3-1 3.9.3-1
debian/zookeeper(Debian:14) < 3.9.3-1 3.9.3-1
apache zookeeper >= 3.9.0, < 3.9.3 3.9.3
ubuntu/zookeeper(Ubuntu:24.04) All versions No fix listed

References