Vulnerability · Published Nov 7, 2024 · Assigned by apache

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

Critical 9.1

In plain English

A critical-severity authentication bypass by spoofing in Apache ZooKeeper from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)0.9%top 39.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13zookeeper3.9.3-1DEBIAN-CVE-2024-51504
Debian:14zookeeper3.9.3-1DEBIAN-CVE-2024-51504
Mavenorg.apache.zookeeper:zookeeper3.9.3GHSA-g93m-8x6h-g5gv
Ubuntu:24.04:LTSzookeeperno fix listedUBUNTU-CVE-2024-51504

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache ZooKeeper 3.9.0 – before 3.9.3

Weakness: CWE-290 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

References