Apache Software Foundation Apache ZooKeeper
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 versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 3.9.0, <= 3.9.4
- >= 3.8.0, <= 3.8.5
- >= 3.8.0, < 3.8.6
Fixed in 3.8.6
from GitHub Security Advisory GHSA-7xrh-hqfc-g7qr
- >= 3.9.0, < 3.9.5
Fixed in 3.9.5
from GitHub Security Advisory GHSA-7xrh-hqfc-g7qr
Mitigation
Upgrade org.apache.zookeeper:zookeeper to 3.8.6 or later.
Upgrade org.apache.zookeeper:zookeeper to 3.9.5 or later.
References
- Vendor advisory lists.apache.org/thread/088ddsbrzhd5lxzbqf5n24yg0mwh…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.