CVE-2024-51504

NameCVE-2024-51504
DescriptionWhen 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1087275

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
zookeeper (PTS)jessie, jessie (lts)3.4.9-3+deb8u2vulnerable
stretch (security), stretch (lts), stretch3.4.9-3+deb9u2vulnerable
buster (security), buster, buster (lts)3.4.13-2+deb10u1vulnerable
bullseye (security), bullseye3.4.13-6+deb11u1fixed
bookworm (security), bookworm3.8.0-11+deb12u1fixed
sid, trixie3.9.3-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
zookeepersourcebullseye(not affected)
zookeepersourcebookworm(not affected)
zookeepersource(unstable)3.9.3-11087275

Notes

[bookworm] - zookeeper <not-affected> (Vulnerable code introduced later)
[bullseye] - zookeeper <not-affected> (Vulnerable code introduced later)
https://lists.apache.org/thread/b3qrmpkto5r6989qr61fw9y2x646kqlh
https://issues.apache.org/jira/browse/ZOOKEEPER-4851
https://github.com/apache/zookeeper/pull/2181
Introduced by: https://github.com/apache/zookeeper/commit/d79811bf28f00fb1db6ec6002e884af6cfd0d7fc (release-3.9.0-0)
Fixed by: https://github.com/apache/zookeeper/commit/bd5be58c562ce992de8af43cdef0bdb34261a525 (release-3.9.3-0)
Followup to disable (X-Forwarded-For by default): https://github.com/apache/zookeeper/commit/67037ad9087b4e554f77427e88d40df1eb19d6d3 (release-3.9.3-0)

Search for package or bug name: Reporting problems