CVE-2024-51504 Apache ZooKeeper: Authentication bypass with IP-based authentication in Admin Server
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- lists.apache.org mailing-list vendor-advisory
- www.openwall.com mailing-list third-party-advisory
- Debian Security Tracker CVE-2024-51504 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking