CVE-2026-84501: CWE-117 Improper output neutralization for logs in Apache Software Foundation Apache ZooKeeper
An unauthenticated attacker can inject arbitrary fake log lines into Apache ZooKeeper's operational log by sending a crafted add_auth("ensemble", ...) request containing newline characters (\n). When the ensemble name doesn't match, EnsembleAuthenticationProvider.handleAuthentication() logs the raw, unsanitized name via LOG.warn(). Because SLF4J's {} placeholder preserves embedded newlines, the attacker can forge complete log entries — with arbitrary timestamps, log levels, class names, and messages — that are visually indistinguishable from genuine ZooKeeper log output. 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.8.7 or 3.9.6, which fixes the issue.
AI Analysis
Technical Summary
Apache ZooKeeper suffers from an improper output neutralization vulnerability (CWE-117) in its logging mechanism. An unauthenticated attacker can send a crafted add_auth("ensemble", ...) request with newline characters in the ensemble name. When the ensemble name does not match, the EnsembleAuthenticationProvider.handleAuthentication() method logs the raw, unsanitized name using LOG.warn(). Because SLF4J's placeholder preserves embedded newlines, this allows the attacker to inject fake log lines with arbitrary timestamps, log levels, class names, and messages that are visually indistinguishable from legitimate log entries. This affects Apache ZooKeeper versions from 3.8.0 through 3.8.6 and 3.9.0 through 3.9.5. The issue is resolved in versions 3.8.7 and 3.9.6.
Potential Impact
The vulnerability allows unauthenticated attackers to forge log entries in Apache ZooKeeper's operational logs. This can mislead administrators or automated systems that rely on logs for monitoring and incident response by injecting misleading or fake log data. There is no indication of direct code execution or data compromise from this vulnerability alone.
Mitigation Recommendations
Users should upgrade Apache ZooKeeper to version 3.8.7 or 3.9.6, where this issue has been fixed. No other mitigations are indicated. Patch status is confirmed by the vendor advisory recommending these fixed versions.
CVE-2026-84501: CWE-117 Improper output neutralization for logs in Apache Software Foundation Apache ZooKeeper
Description
An unauthenticated attacker can inject arbitrary fake log lines into Apache ZooKeeper's operational log by sending a crafted add_auth("ensemble", ...) request containing newline characters (\n). When the ensemble name doesn't match, EnsembleAuthenticationProvider.handleAuthentication() logs the raw, unsanitized name via LOG.warn(). Because SLF4J's {} placeholder preserves embedded newlines, the attacker can forge complete log entries — with arbitrary timestamps, log levels, class names, and messages — that are visually indistinguishable from genuine ZooKeeper log output. 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.8.7 or 3.9.6, which fixes the issue.
Affected software
Apache Software Foundation
Apache ZooKeeper
pkg:maven/Apache Software Foundation/org.apache.zookeeper:zookeeperRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Apache ZooKeeper suffers from an improper output neutralization vulnerability (CWE-117) in its logging mechanism. An unauthenticated attacker can send a crafted add_auth("ensemble", ...) request with newline characters in the ensemble name. When the ensemble name does not match, the EnsembleAuthenticationProvider.handleAuthentication() method logs the raw, unsanitized name using LOG.warn(). Because SLF4J's placeholder preserves embedded newlines, this allows the attacker to inject fake log lines with arbitrary timestamps, log levels, class names, and messages that are visually indistinguishable from legitimate log entries. This affects Apache ZooKeeper versions from 3.8.0 through 3.8.6 and 3.9.0 through 3.9.5. The issue is resolved in versions 3.8.7 and 3.9.6.
Potential Impact
The vulnerability allows unauthenticated attackers to forge log entries in Apache ZooKeeper's operational logs. This can mislead administrators or automated systems that rely on logs for monitoring and incident response by injecting misleading or fake log data. There is no indication of direct code execution or data compromise from this vulnerability alone.
Mitigation Recommendations
Users should upgrade Apache ZooKeeper to version 3.8.7 or 3.9.6, where this issue has been fixed. No other mitigations are indicated. Patch status is confirmed by the vendor advisory recommending these fixed versions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-09-01T20:56:03.868Z
- State
- PUBLISHED
Threat ID: 6aaa659d55bf5e2cf5501bed
Added to database: 09/16/2026, 09:47:09 UTC
Last enriched: 09/16/2026, 10:01:32 UTC
Last updated: 09/16/2026, 10:32:25 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.