Skip to main content

CVE-2026-84501: CWE-117 Improper output neutralization for logs in Apache Software Foundation Apache ZooKeeper

0
Medium
VulnerabilityCVE-2026-84501cvecve-2026-84501cwe-117
Published: 09/16/2026 (09/16/2026, 09:28:10 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: 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

Affected versions
>=3.9.0 <=3.9.5>=3.8.0 <=3.8.6
Apache Software Foundation/org.apache.zookeeper:zookeeper
pkg:maven/Apache Software Foundation/org.apache.zookeeper:zookeeper
Affected versions
>=3.9.0 <=3.9.5>=3.8.0 <=3.8.6

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/16/2026, 10:01:32 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses