CVE-2026-84439: Apache ZooKeeper: Audit log injection via unsanitized output from multiple sources
Apache ZooKeeper audit logs are vulnerable to arbitrary field injection by unauthenticated attackers via tab characters in digest auth requests.
Audit Log Injection (CWE-117) in Apache ZooKeeper 3.8.x and 3.9.x
Apache ZooKeeper fails to escape tab characters when writing attacker-controlled data into its tab-separated, key=value audit log (zookeeper_audit.log), enabling audit record forgery (CWE-117). The data describes two trigger paths: when audit logging is enabled (zookeeper.audit.enable=true), an unauthenticated client can embed tabs in the username of a digest authentication request, and a client able to call setACL can embed tabs in a digest ACL id that is serialized into the acl= audit field without sanitization. Because the injected tabs are parsed as legitimate field separators, an attacker can spoof audit outcomes (e.g., result=success), forge operation types and znode paths (e.g., operation=delete, znode=/forged), and corrupt forensic evidence used by downstream log parsing, alerting, and incident response. All ZooKeeper deployments running 3.8.0-3.8.6 or 3.9.0-3.9.5 with audit logging enabled are affected. No public proof-of-concept, in-the-wild exploitation, CVSS score, or CISA KEV listing is known at this time.
What to do: Upgrade to ZooKeeper 3.9.6 or 3.8.7, which fix the issue. Where patching is delayed, disable audit logging (zookeeper.audit.enable=false) if acceptable, or restrict client access so only trusted identities can authenticate or issue setACL. Review retained zookeeper_audit.log records for unexpected injected fields (e.g., forged result=, operation=, or znode= entries) and treat pre-patch audit evidence as potentially untrustworthy.
| Product | Affected |
|---|---|
| Apache ZooKeeper | 3.9.0 through 3.9.5 (fixed in 3.9.6) |
| Apache ZooKeeper | 3.8.0 through 3.8.6 (fixed in 3.8.7) |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
When audit logging is enabled (zookeeper.audit.enable=true), an unauthenticated attacker can inject arbitrary fields into Apache ZooKeeper's audit log by sending a digest authentication request with tab characters (\t) embedded in the username. Because the audit log uses tab-separated key=value format, the injected tabs are parsed as legitimate field separators, allowing the attacker to spoof audit results (e.g., injecting result=success), forge operation types, and corrupt forensic evidence. A log injection vulnerability in Apache ZooKeeper allows a client that can call setACL to inject forged key-value fields into zookeeper_audit.log. When audit logging is enabled, the server serializes attacker-controlled digest ACL ids into the acl= audit field without escaping tab characters. Because audit events are emitted as tab-separated key=value records, a crafted ACL id can make one successful setAcl event appear to contain forged fields such as operation=delete and znode=/forged. This undermines the integrity of downstream audit parsing, alerting, and incident response. This issue affects Apache ZooKeeper: from 3.9.0 through 3.9.5, from 3.8.0 through 3.8.6. Users are recommended to upgrade to version 3.9.6 or 3.8.7, which fixes the issue.
Apache ZooKeeper audit logs are vulnerable to arbitrary field injection by unauthenticated attackers via tab characters in digest auth requests.
Today 2.6K readers · 5.3K views · 348 reads · all time 290K views