Skip to main content
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Configure short delivery.timeout.ms value
  2. Delivery
    Trigger batch expiration during network flight
  3. Exploit
    Prematurely deallocate ByteBuffer to pool
  4. Execution
    Reuse freed buffer in subsequent batch
  5. Impact
    Corrupt message routing to wrong topic

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires Apache Kafka Java producer client with specific timeout configuration: delivery.timeout.ms set lower than network latency. Attacker must send network packets causing delays to trigger race condition between batch expiration and in-flight requests. No authentication required; affects any application using vulnerable Kafka producer versions.

Impact

Real-world risk assessment reveals a nuanced threat profile. The CVSS 8.7 score reflects severe potential impact: network-accessible attack vector (AV:N), changed scope (S:C), and high confidentiality/integrity impact (C:H/I:H). However, attack complexity is rated high (AC:H), acknowledging the race condition requires specific timing windows where batch timeouts coincide with in-flight requests. CISA SSVC assessment indicates exploitation status is 'none' (no confirmed active exploitation matching our KEV analysis showing no KEV listing), non-automatable attack requiring precise environmental conditions, and partial technical impact. The lack of public exploit code and high attack complexity reduce immediate weaponization risk, but the silent failure mode is particularly dangerous-producers receive no error feedback, making detection extremely difficult without comprehensive end-to-end message tracking. Organizations processing sensitive data across multiple Kafka topics face elevated risk due to the confidentiality cross-contamination potential. Production environments with high message throughput, network instability, or aggressive timeout configurations create conditions favorable to triggering this race. The changed scope rating (S:C) acknowledges impact extends beyond the vulnerable producer to downstream consumers and data pipelines. This is a genuine priority for Kafka deployments despite moderate exploitation likelihood, particularly in regulated industries where data segregation is mandatory.

Exploit ScenarioDerived

An organization operates a Kafka-based data pipeline where producers publish customer payment records to a 'payments' topic and marketing analytics to an 'analytics' topic. During a period of network congestion, a produce batch containing payment records exceeds delivery.timeout.ms while the network request remains in-flight. The producer deallocates the batch buffer and returns it to the pool. Immediately afterward, a new batch destined for the 'analytics' topic reuses the freed buffer. When the original network request for the payment batch completes, buffer corruption causes payment records containing credit card details and PII to be silently delivered to the 'analytics' topic. Marketing team consumers with access to 'analytics' but not 'payments' now receive sensitive financial data, violating data access controls and compliance requirements. No error is reported to either producer or consumer, making detection dependent on manual auditing or consumer-side schema validation failures.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 07, 2026

Buffer use-after-free in Apache Kafka Java producer client (versions ≤3.9.1, ≤4.0.1, ≤4.1.1) can silently route messages to incorrect topics when batch expiration races with in-flight network requests. CVSS 8.7 (High) with network-accessible attack vector and high complexity. CISA SSVC indicates no active exploitation, non-automatable attack, and partial technical impact. No public exploit identified at time of analysis. EPSS data not provided, but the combination of high CVSS, cross-scope impact (S:C), and dual confidentiality/integrity impact warrants prioritization for environments processing sensitive message streams.

RemediationAI

Vendor-released patches are available: upgrade Apache Kafka Clients to version 3.9.2, 4.0.2, 4.1.2, or 4.2.0 (or any later version) to fully remediate this use-after-free condition. Organizations should prioritize upgrading client libraries in applications producing messages to multiple topics or operating in high-latency network environments. As an interim mitigation for environments unable to immediately upgrade, consider increasing delivery.timeout.ms values to reduce batch expiration frequency, implementing dedicated producer instances per topic to eliminate cross-topic buffer reuse, and deploying comprehensive end-to-end message tracing to detect anomalous cross-topic message delivery. Review consumer error logs for unexpected deserialization failures that may indicate historical exploitation. Full remediation guidance is available in the Apache security advisory at https://lists.apache.org/thread/f07x7j8ovyqhjd1to25jsnqbm6wj01d6. Note that server-side Kafka broker upgrades do not address this client-side vulnerability-affected client libraries must be upgraded independently.

Affected VersionsENISA

Apache Kafka Clients 4.1.0 ≤4.1.1
Apache Kafka Clients 4.0.0 ≤4.0.1
Apache Kafka Clients 2.8.0 ≤3.9.1

Affected Packages

maven org.apache.kafka:kafka-clients fix: 3.9.2, 4.0.2, 4.1.2
euvd apache_kafka_clients no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability stems from a classic use-after-free race condition (CWE-416) in Apache Kafka's Java producer client buffer pool implementation. When a produce batch exceeds delivery.timeout.ms while the containing network request remains in flight, the producer deallocates the ByteBuffer and returns it to the shared buffer pool prematurely. The freed buffer can then be allocated to a new producer batch-potentially targeting a completely different topic-before the original network request completes. This creates a window where two logically distinct batches share the same physical buffer, enabling memory corruption and cross-topic message contamination. The affected component is the Apache Kafka Clients library (CPE: cpe:2.3:a:apache_software_foundation:apache_kafka_clients), specifically versions 2.8.0 through 3.9.1, 4.0.0 through 4.0.1, and 4.1.0 through 4.1.1. The vulnerability surfaces in multi-topic producer workflows under network latency or backpressure conditions where timeout-driven buffer recycling races with asynchronous I/O completion.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (apache) PRIMARY 8.7 HIGH
AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
SUSE HIGH
Red Hat 6.8 MEDIUM

Primary rating from Vendor (apache).

CVSS VectorVendor: apache

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

A race condition in the Apache Kafka Java producer client’s buffer pool management can cause messages to be silently delivered to incorrect topics.

When a produce batch expires due to delivery.timeout.ms while a network request containing that batch is still in flight, the batch’s ByteBuffer is prematurely deallocated and returned to the buffer pool. If a subsequent producer batch-potentially destined for a different topic-reuses this freed buffer before the original network request completes, the buffer contents may become corrupted. This can result in messages being delivered to unintended topics without any error being reported to the producer.

Data Confidentiality: Messages intended for one topic may be delivered to a different topic, potentially exposing sensitive data to consumers who have access to the destination topic but not the intended source topic.

Data Integrity: Consumers on the receiving topic may encounter unexpected or incompatible messages, leading to deserialization failures, processing errors, and corrupted downstream data.

This issue affects Apache Kafka versions ≤ 3.9.1, ≤ 4.0.1, and  ≤ 4.1.1.

Kafka users are advised to upgrade to 3.9.2, 4.0.2, 4.1.2, 4.2.0, or later to address this vulnerability.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1,141 maven packages depend on org.apache.kafka:kafka-clients (238 direct, 908 indirect)

Ecosystem-wide dependent count for version 2.8.0.

Executive ViewAI

Why It Matters

Apache Kafka Java producer client versions 3.9.1, 4.0.1, and 4.1.1 contain a buffer use-after-free vulnerability that can cause messages to be silently routed to incorrect topics during batch expiration, potentially exposing sensitive data or corrupting message integrity in production message queues. Organizations relying on Kafka for financial transactions, healthcare records, or PII distribution face direct risk of data misrouting and compliance violations without immediate remediation.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Reduce batch expiration timeouts to minimize race condition window; (2) implement dual-layer topic validation logic in consumer applications to detect and reject messages arriving at unexpected topics; (3) enable comprehensive audit logging of all producer-to-topic routing decisions with alerting on deviations; (4) restrict Kafka producer deployments to isolated network segments with strict egress controls; (5) defer non-critical message processing on affected versions until patched. None of these controls fully eliminate the risk and should not delay upgrade planning.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor StatusVendor

SUSE

Severity: High

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy