CVE-2026-35554

8.7

Apache Software Foundation · Kafka Java

A race condition in the Apache Kafka Java producer client's buffer pool management can cause messages to be silently delivered to incorrect topics, leading to data exposure and corruption.

Executive summary

A critical race condition vulnerability in the Apache Kafka Java producer client allows for the silent misrouting of messages, posing a severe risk to data confidentiality and integrity.

Vulnerability

This vulnerability involves a race condition (CWE-362) and use-after-free (CWE-416) within the buffer pool management logic, which is triggered when a produce batch expires while a network request is still in flight. Because the flaw occurs during internal producer processing, it does not require user authentication to trigger if an attacker can influence the producer environment.

Business impact

The potential for silent message misrouting carries significant business consequences, including the unauthorized disclosure of sensitive information to unintended consumers and the corruption of downstream data pipelines. Given the CVSS score of 8.7, this flaw is categorized as High severity, as it directly undermines the fundamental trust and integrity of data streaming architectures.

Remediation

Immediate Action: Upgrade the Kafka client libraries to versions 3.9.2, 4.0.2, or 4.1.2 to incorporate the necessary synchronization fixes.

Proactive Monitoring: Monitor consumer applications for unexpected deserialization errors or anomalous message content that may indicate data was delivered to an incorrect topic.

Compensating Controls: While network-level controls may not prevent this internal race condition, ensure that strict access control lists (ACLs) are applied to all Kafka topics to limit the impact if data is delivered to an unintended destination.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

Organizations utilizing the Apache Kafka Java producer client must prioritize upgrading to the patched versions immediately. Given the silent nature of this data corruption, administrators should also perform a thorough review of message integrity logs to determine if any unusual delivery patterns occurred prior to the patch application.

More Apache Software Foundation CVEs

Sources

Originally found and disclosed by Bharath Vissapragada <bharathv@apache.org>, Donny Nadolny <donny.nadolny@hotmail.com>, with Donny Nadolny <donny.nadolny@hotmail.com> (remediation developer), per the CVE Program record.