The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-51504

CVE-2024-51504: Apache ZooKeeper Auth Bypass Vulnerability

CVE-2024-51504 is an authentication bypass flaw in Apache ZooKeeper Admin Server that allows attackers to spoof IP addresses via X-Forwarded-For headers. This article covers technical details, affected versions, and mitigations.

Published: April 1, 2026

CVE-2024-51504 Overview

CVE-2024-51504 is an Authentication Bypass by Spoofing vulnerability in the Apache ZooKeeper Admin Server's IPAuthenticationProvider component. The vulnerability stems from a weak default configuration that relies on HTTP request headers (specifically X-Forwarded-For) to determine client IP addresses for authentication purposes. An attacker can easily spoof these headers to bypass IP-based authentication controls and gain unauthorized access to the Admin Server.

When exploited, this vulnerability allows attackers to execute administrative commands such as snapshot and restore, potentially leading to information leakage or service availability issues. The vulnerability only affects deployments using IP-based authentication in the ZooKeeper Admin Server.

Critical Impact

Attackers can bypass IP-based authentication by spoofing the X-Forwarded-For HTTP header, gaining unauthorized access to execute Admin Server commands that could compromise data confidentiality and service availability.

Affected Products

  • Apache ZooKeeper (versions prior to 3.9.3)
  • Apache ZooKeeper Admin Server with IPAuthenticationProvider enabled
  • Deployments relying on IP-based authentication via HTTP headers

Discovery Timeline

  • 2024-11-07 - CVE CVE-2024-51504 published to NVD
  • 2025-06-24 - Last updated in NVD database

Technical Details for CVE-2024-51504

Vulnerability Analysis

This vulnerability is classified as CWE-290 (Authentication Bypass by Spoofing). The root issue lies in how the IPAuthenticationProvider determines the source IP address of incoming requests. By default, the provider trusts the X-Forwarded-For HTTP header to identify the client's IP address. This header is typically set by proxy servers to preserve the original client IP when forwarding requests.

However, this header can be arbitrarily set by any client making a direct connection to the server. An attacker who knows or can guess an IP address on the allowlist can simply include that address in the X-Forwarded-For header of their request, effectively impersonating an authorized client.

The attack is network-accessible and requires no authentication or user interaction to exploit. Successful exploitation enables an attacker to execute privileged Admin Server commands, including snapshot and restore operations, which could lead to exposure of sensitive configuration data or disruption of ZooKeeper cluster availability.

Root Cause

The root cause is the insecure default configuration of the IPAuthenticationProvider that blindly trusts the X-Forwarded-For HTTP header for client IP identification. This design flaw assumes the Admin Server is always deployed behind a trusted proxy that properly sanitizes or overwrites this header, which is not always the case in production environments.

Attack Vector

The attack vector exploits the trust relationship between the Admin Server and HTTP request headers. An attacker sends a request directly to the ZooKeeper Admin Server with a spoofed X-Forwarded-For header containing an IP address that is authorized in the IPAuthenticationProvider configuration.

For example, if the Admin Server is configured to allow access from 192.168.1.100, an attacker from any IP address can craft a request with the header X-Forwarded-For: 192.168.1.100 to bypass the IP-based access control. The Admin Server will trust this header value and grant access to administrative functions.

The attack requires knowledge of at least one authorized IP address, which could be obtained through reconnaissance, information disclosure, or by targeting common internal network ranges. Once authenticated, the attacker can execute commands like snapshot to extract cluster state data or restore to potentially disrupt service availability.

Detection Methods for CVE-2024-51504

Indicators of Compromise

  • Unusual requests to ZooKeeper Admin Server endpoints from external IP addresses
  • Presence of X-Forwarded-For headers in direct connections (not through proxy)
  • Multiple authentication attempts with varying X-Forwarded-For header values
  • Unexpected snapshot or restore command executions in Admin Server logs

Detection Strategies

  • Monitor HTTP access logs for requests containing X-Forwarded-For headers that don't match your proxy infrastructure
  • Implement anomaly detection for Admin Server command execution patterns
  • Review authentication logs for successful authentications from unexpected source IPs
  • Deploy network-level monitoring to detect direct connections to Admin Server ports bypassing proxy infrastructure

Monitoring Recommendations

  • Enable verbose logging on the ZooKeeper Admin Server to capture all incoming request headers
  • Set up alerts for administrative command executions during non-maintenance windows
  • Monitor for discrepancies between actual source IP and X-Forwarded-For header values
  • Implement rate limiting and alerting on Admin Server endpoints to detect enumeration attempts

How to Mitigate CVE-2024-51504

Immediate Actions Required

  • Upgrade Apache ZooKeeper to version 3.9.3 or later, which fixes this vulnerability
  • Review and audit current IPAuthenticationProvider configurations
  • If upgrade is not immediately possible, implement network-level access controls (firewall rules) to restrict Admin Server access
  • Consider switching to stronger authentication mechanisms instead of IP-based authentication

Patch Information

Apache has released version 3.9.3 which addresses this vulnerability. Users are strongly recommended to upgrade to this version or later. For detailed information, refer to the Apache Mailing List Thread and the OpenWall OSS Security Update.

Workarounds

  • Disable the Admin Server entirely if not required for operations
  • Implement network-level access controls using firewalls or security groups to restrict access to trusted IP addresses at the network layer
  • Deploy the Admin Server behind a reverse proxy that properly sanitizes or removes client-provided X-Forwarded-For headers before forwarding
  • Configure the Admin Server to bind only to localhost if remote access is not needed
  • Use alternative authentication mechanisms that do not rely on IP-based identification
bash
# Configuration example - Disable Admin Server if not needed
# Add to zoo.cfg configuration file
admin.enableServer=false

# Alternative: Bind Admin Server to localhost only
admin.serverAddress=127.0.0.1

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechApache Zookeeper

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-290
  • Technical References
  • OpenWall OSS Security Update
  • Vendor Resources
  • Apache Mailing List Thread
  • Related CVEs
  • CVE-2026-24281: Apache ZooKeeper Auth Bypass Vulnerability

  • CVE-2023-44981: Apache ZooKeeper Auth Bypass Vulnerability

  • CVE-2026-24308: Apache ZooKeeper Information Disclosure

  • CVE-2024-23944: Apache ZooKeeper Information Disclosure
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English