{"answers":{"affected":"3 open source packages ship an affected version, including org.apache.zookeeper:zookeeper and zookeeper. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-51504 in the wild and no public exploit code.","fix":"Upgrade org.apache.zookeeper:zookeeper to 3.9.3 or later.","what":"CVE-2024-51504 is a critical authentication bypass vulnerability in Apache ZooKeeper, published on 7 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-51504 and fix it if it is affected.\n\nWhat it is: CVE-2024-51504 is a critical authentication bypass vulnerability in Apache ZooKeeper, published on 7 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-51504 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.zookeeper:zookeeper (Maven): affected from 3.9.0; fixed in 3.9.3\n- org.apache.zookeeper:zookeeper (Maven): affected from 3.9.0; fixed in 3.9.3\n- zookeeper (Bitnami): affected from 3.9.0; fixed in 3.9.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-51504/ (Markdown: https://insights.sbomify.com/CVE-2024-51504/index.md)","id":"CVE-2024-51504","markdown":"https://insights.sbomify.com/CVE-2024-51504/index.md","name":"CVE-2024-51504","record":{"aliases":["BIT-zookeeper-2024-51504","DEBIAN-CVE-2024-51504","GHSA-g93m-8x6h-g5gv","MINI-65f5-v3qq-7f7r","OESA-2024-2600","ROOT-APP-MAVEN-CVE-2024-51504","UBUNTU-CVE-2024-51504"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["security_bypass","data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache ZooKeeper","requires_auth":"none","summary":"Attackers can bypass IP-based authentication in ZooKeeper Admin Server by spoofing X-Forwarded-For headers, enabling unauthorized command execution and data access.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"zookeeper","vendor":"apache"}],"cvss":{"score":9.1,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-290","name":"Authentication Bypass by Spoofing"}],"description":"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.","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apache ZooKeeper: Authentication bypass with IP-based authentication in Admin Server","id":"CVE-2024-51504","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"auth_bypass","year":"2024"},"n_packages":3,"n_references":1,"next":{"headline":"An issue was discovered in Atos Eviden IDRA before 2.7.1.","id":"CVE-2024-51505"},"packages":[{"ecosystem":"Bitnami","fixed":["3.9.3"],"introduced":["3.9.0"],"last_affected":[],"package":"zookeeper","purl":"pkg:bitnami/zookeeper","source":"BIT-zookeeper-2024-51504"},{"ecosystem":"Maven","fixed":["3.9.3"],"introduced":["3.9.0"],"last_affected":[],"package":"org.apache.zookeeper:zookeeper","purl":null,"source":"GHSA-g93m-8x6h-g5gv"},{"ecosystem":"Maven","fixed":["3.9.3"],"introduced":["3.9.0"],"last_affected":[],"package":"org.apache.zookeeper:zookeeper","purl":"pkg:maven/org.apache.zookeeper/zookeeper","source":"GHSA-g93m-8x6h-g5gv"}],"prev":{"headline":"Command injection in Trend Micro Deep Security","id":"CVE-2024-51503"},"products":["Apache ZooKeeper"],"published":"2024-11-07","related":[{"cvss_score":9.1,"headline":"Apache ZooKeeper: Authorization bypass in SASL Quorum Peer Authentication","id":"CVE-2023-44981","kev_date_added":null,"published":"2023-10-11"},{"cvss_score":8.1,"headline":"Memory corruption in n/a","id":"CVE-2016-5017","kev_date_added":null,"published":"2016-09-21"},{"cvss_score":7.5,"headline":"Apache ZooKeeper: Information disclosure via SetWatches reconnect replay","id":"CVE-2026-59739","kev_date_added":null,"published":"2026-09-16"},{"cvss_score":7.5,"headline":"Apache ZooKeeper: Improper validation of certificate with host mismatch in FIPS mode","id":"CVE-2026-59969","kev_date_added":null,"published":"2026-09-16"},{"cvss_score":7.5,"headline":"Missing authorization in Apache ZooKeeper","id":"CVE-2026-79993","kev_date_added":null,"published":"2026-09-16"},{"cvss_score":7.5,"headline":"Missing Authorization in Apache ZooKeeper","id":"CVE-2018-8012","kev_date_added":null,"published":"2018-05-21"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-11-07","vendors":["Apache Software Foundation"]},"summary":"Attackers can bypass IP-based authentication in ZooKeeper Admin Server by spoofing X-Forwarded-For headers, enabling unauthorized command execution and data access.","url":"https://insights.sbomify.com/CVE-2024-51504/"}