CVEfocus › CVE database › CVE-2024-51504

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

CVSS 9.1 CriticalEPSS 1.5% (higher than 75% of CVEs)Published 2024-11-07Updated 2024-11-07Assigner: apache

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.

CWE-290

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

3Fixed
2Fix pending
3Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04zookeeperNot affected
vulnerable_code_not_present
Ubuntu 25.10zookeeperNot affected
vulnerable_code_not_present
Ubuntu 24.04zookeeperFix pendingUBUNTU-CVE-2024-51504
Ubuntu 22.04zookeeperNot affected
vulnerable_code_not_present
Ubuntu 20.04zookeeperFix pending
Debian 14zookeeperFixed3.9.3-1DEBIAN-CVE-2024-51504
Debian 13zookeeperFixed3.9.3-1DEBIAN-CVE-2024-51504
Maven libraryorg.apache.zookeeper:zookeeperFixed3.9.3GHSA-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.

Vendor advisories:

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.