CVE-2024-51504
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedWhen 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceZooKeeper Admin Server's IPAuthenticationProvider uses the X-Forwarded-For HTTP header to determine client IP addresses for authentication. Since this header can be trivially spoofed by an attacker, remote attackers can bypass IP-based authentication and execute sensitive admin commands like 'snapshot' and 'restore', leading to data exfiltration or denial of service.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 3.9.0, < 3.9.3CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Determine ZooKeeper versionRun `java -cp zookeeper.jar:lib/* org.apache.zookeeper.version.Version` or check the jar file name, or run `zkServer.sh version`Affected if version is 3.9.0, 3.9.1, or 3.9.2 (falls within >= 3.9.0 and < 3.9.3)
-
Verify IPAuthenticationProvider is configuredInspect the ZooKeeper configuration file (zoo.cfg or zoo.cfg.xml) for lines containing `authProvider.` or `ipauthenticationprovider`Affected if IPAuthenticationProvider is explicitly configured and enabled in the configuration
-
Confirm Admin Server is in useCheck for admin server configuration in zoo.cfg: look for `admin.serverPort` and `admin.enableServer` settings, or verify port 8080/8081 is listeningAffected if Admin Server is enabled and running (the vulnerability exists in the Admin Server endpoint)
-
Check for IP-based access control relying on X-Forwarded-ForReview the ensemble configuration or security policies to determine if IPAuthenticationProvider is being used to restrict sensitive commands like `snapshot` or `restore`Affected if IP-based authentication rules are defined and could be bypassed via header spoofing
You are affected if ZooKeeper version is 3.9.0-3.9.2 AND IPAuthenticationProvider is configured on the Admin Server, allowing potential spoofing of the X-Forwarded-For header to bypass IP-based access controls.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped3.9.3
Upgrade to ZooKeeper version 3.9.3. Alternatively, disable X-Forwarded-For header processing in the Admin Server configuration or implement proper proxy trust validation to prevent header spoofing.
Apache ZooKeeper 3.9.3
- Stop the ZooKeeper service to ensure a clean upgrade process
- Backup your ZooKeeper configuration files (zoo.cfg) and data directory before proceeding
- Download and install Apache ZooKeeper version 3.9.3 from the official Apache distribution
- Replace the existing ZooKeeper binaries and libraries with the 3.9.3 version
- Review and restore your backed-up configuration files if needed
- Start the ZooKeeper service and verify it running correctly
- Confirm the ZooKeeper version is 3.9.3 using the version command or admin server
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,560.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2024-51504 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2024-51504 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data