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. 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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.apache.zookeeper:zookeeperto a version that resolves this vulnerability.Fixed in 3.9.5 - Upgrade
Upgrade
maven/org.apache.zookeeper:zookeeperto a version that resolves this vulnerability.Fixed in 3.8.6 - Upgrade
Upgrade
Apache ZooKeeperto a version that resolves this vulnerability.Fixed in 3.8.6 - Upgrade
Upgrade
Apache ZooKeeperto a version that resolves this vulnerability.Fixed in 3.9.5
Event History
Frequently Asked Questions
What is the severity of CVE-2026-24281?
CVE-2026-24281 has been rated as a high severity vulnerability due to its potential to allow attackers to impersonate ZooKeeper instances.
How do I fix CVE-2026-24281?
To mitigate CVE-2026-24281, it is recommended to upgrade Apache ZooKeeper to version 3.9.6 or later where this vulnerability has been addressed.
What systems are affected by CVE-2026-24281?
CVE-2026-24281 affects Apache ZooKeeper versions prior to 3.9.6, including all versions up to 3.9.5.
What are the consequences of exploiting CVE-2026-24281?
Exploiting CVE-2026-24281 allows attackers to bypass hostname verification and potentially impersonate ZooKeeper servers, leading to unauthorized access.
Is there a workaround for CVE-2026-24281 until a fix is available?
Currently, there are no recommended workarounds for CVE-2026-24281; the best approach is to upgrade to a patched version of Apache ZooKeeper.