CVE-2024-51504Apache ZooKeeper: Authentication bypass with IP-based authentication in Admin Server
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.
What to do
Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | zookeeper | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | zookeeper | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | zookeeper | Fix pending | UBUNTU-CVE-2024-51504 | |
| Ubuntu 22.04 | zookeeper | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | zookeeper | Fix pending | ||
| Debian 14 | zookeeper | Fixed | 3.9.3-1 | DEBIAN-CVE-2024-51504 |
| Debian 13 | zookeeper | Fixed | 3.9.3-1 | DEBIAN-CVE-2024-51504 |
| Maven library | org.apache.zookeeper:zookeeper | Fixed | 3.9.3 | GHSA-g93m-8x6h-g5gv |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache ZooKeeper: affected: 3.9.0 to before 3.9.3; fixed in
3.9.3
Vendor advisories:
- https://lists.apache.org/thread/b3qrmpkto5r6989qr61fw9y2x646kqlh (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.