CVE-2026-24281: Apache ZooKeeper: Reverse-DNS fallback enables hostname verification bypass in ZooKeeper ZKTrustManager
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.
Published Mar 7, 2026 · Updated Mar 10, 2026
Affected packages
org.apache.zookeeper:zookeeper
- Ecosystem
- Maven
- Affected
- >= 3.8.0, < 3.8.6
- Fixed in
- 3.8.6
- Check
mvn dependency:tree -Dincludes=org.apache.zookeeper:zookeeper
org.apache.zookeeper:zookeeper
- Ecosystem
- Maven
- Affected
- >= 3.9.0, < 3.9.5
- Fixed in
- 3.9.5
- Check
mvn dependency:tree -Dincludes=org.apache.zookeeper:zookeeper
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to kascit.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-24308
Apache ZooKeeper has improper handling of configuration values
high8.7Mar 7, 2026CVE-2025-58457
Apache ZooKeeper: Insufficient Permission Check in AdminServer Snapshot/Restore Commands
medium4.3Sep 24, 2025CVE-2024-51504
Apache ZooKeeper: Authentication bypass with IP-based authentication in Admin Server
high8.8Nov 7, 2024CVE-2024-23944
Apache ZooKeeper vulnerable to information disclosure in persistent watchers handling
medium5.3No fixMar 15, 2024
