Loading...
Skip to main content

CVE-2024-51504 — Vulnerability in org.apache.zookeeper:zookeeper —...

HIGH

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

Published November 7, 2024Updated September 10, 2026Source: osv

Summary

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.

Advisory Timeline

  • First published November 7, 2024 (704 days ago).
  • Last revised September 10, 2026 — 672 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.apache.zookeeper:zookeeper to 3.9.3 or later
<!-- Update pom.xml dependency version to 3.9.3 for org.apache.zookeeper:zookeeper -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: maven (1).

PackageEcosystemAffectedFixed In
org.apache.zookeeper:zookeeper
maven
3.9.0, 3.9.1, 3.9.23.9.3

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is CVE-2024-51504?
Apache ZooKeeper: Authentication bypass with IP-based authentication in Admin Server This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.1/10).
How do I check if my project is affected by CVE-2024-51504?
CVE-2024-51504 affects org.apache.zookeeper:zookeeper. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-51504 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.1

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-g93m-8x6h-g5gv
BIT-zookeeper-2024-51504

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies