Apache ZooKeeper: Reverse-DNS fallback enables hostname verification bypass in ZooKeeper ZKTrustManager
High7.4CVE-2026-24281 · Published Mar 7, 2026 · updated Sep 10, 2026
Hostname verification in Apache ZooKeeper ZKTrustManager falls back to reverse DNS (PTR) when IP SAN validation fails, allowing attackers who control or spoof PTR records to impersonate ZooKeeper servers or clients with a valid certificate for the PTR name. It's important to note that attacker must present a certificate which is trusted by ZKTrustManager which makes the attack vector harder to exploit. Users are recommended to upgrade to version 3.8.6 or 3.9.5, which fixes this issue by introducing a new configuration option to disable reverse DNS lookup in client and quorum protocols.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| org.apache.zookeeper:zookeeper Maven | >= 3.8.0, < 3.8.6 | 3.8.6 |
| >= 3.9.0, < 3.9.5 | 3.9.5 |
Details and references
More Apache ZooKeeper advisories
All Apache ZooKeeper| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Mar 7 | Apache ZooKeeper has improper handling of configuration values | High | 3.8.6+1 more |
| Sep 242025 | Apache ZooKeeper: Insufficient Permission Check in AdminServer Snapshot/Restore Commands | Medium4.3 | 3.9.4 |
| Nov 72024 | Apache ZooKeeper: Authentication bypass with IP-based authentication in Admin Server | High | 3.9.3 |
| Mar 152024 | Apache ZooKeeper vulnerable to information disclosure in persistent watchers handling | Medium5.3 | 3.8.4+1 more |
| Oct 112023 | Authorization Bypass Through User-Controlled Key vulnerability in Apache ZooKeeper | Critical9.1 | 3.7.2+2 more |
| May 132022 | Uncontrolled Resource Consumption in Apache ZooKeeper | High7.5 | 3.4.10+1 more |