Threat reportVulnerabilityTL-2026-4668
Apache Kafka Unbounded Memory Allocation Zero-Days (CVE-2026-114349, CVE-2026-111551) — Compressed Batch Decoding and Kafka Streams Deserializers
Two Apache Kafka vulnerabilities (CWE-789/CWE-770) allow small crafted inputs to force multi-gigabyte allocations: one in broker/consumer compressed record batch decoding (CVE-2026-114349) and one in client and Kafka Streams deserializers (CVE-2026-111551). Both affect Kafka 0.10.0.0/0.11.0.0 through 4.3.1 and are fixed in 4.2.2, 4.3.2 and 4.4.0; no in-the-wild exploitation is reported.
Key facts
| Identifiers | TL-2026-4668, CVE-2026-114349, CVE-2026-111551 |
|---|---|
| Severity | HIGH |
| First disclosed | |
| EPSS | CVE-2026-114349: 0.2% (16.1th percentile); CVE-2026-111551: 0.2% (12.9th percentile) |
| Affected products | Apache Software Foundation Apache Kafka (compressed record batch decoding, CVE-2026-114349); Apache Software Foundation Apache Kafka clients and Kafka Streams (deserializers, CVE-2026-111551) |
| Weaknesses (CWE) | CWE-789, CWE-770, CWE-400, CWE-1284, CWE-20 |
| MITRE ATT&CK techniques | T1078 Valid Accounts, T1190 Exploit Public-Facing Application, T1489 Service Stop, T1499.004 Endpoint Denial of Service: Application or System Exploitation |
| Motivation | UNKNOWN |
| Target sectors | technology, finance, telecoms, retail, government administration |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 8 cited sources |
Detection coverage
As of 2026-10-28, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-4668 across Splunk SPL, Microsoft KQL and Sigma, covering 10 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: Apache Kafka Broker OutOfMemoryError in Request Handler Thread (CVE-2026-114349) — Exploitation
Detects java.lang.OutOfMemoryError raised inside kafka-request-handler threads (or with DefaultRecord in the stack) on a Kafka broker. This is the broker-side symptom of CVE-2026-114349 (CWE-789/CWE-770), where a ~90-byte produce request with a mismatched compression type declares a ~2 GiB decompressed record body (varint sizeOfBodyInBytes in DefaultRecord.java) and forces an unbounded ByteBuffer.allocate(). Repeated OOMs on request handlers from a single broker indicate crafted compressed record batches reaching the broker.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1190, T1499, T1499.004
- Data sources: kafka:server (server.log), kafka broker application logs
- Severity: high
- Confidence: high
Splunk SPL
index=kafka sourcetype="kafka:server" earliest=-24h "java.lang.OutOfMemoryError" ("kafka-request-handler" OR "data-plane-kafka-request-handler" OR "DefaultRecord") ```CVE-2026-114349 broker symptom: oversized decompressed record body allocation in a request handler thread``` | rex field=_raw "OutOfMemoryError:?[ ]*(?<oom_reason>.{0,80})" | stats count AS oom_events min(_time) AS first_seen max(_time) AS last_seen values(oom_reason) AS oom_reason by host | convert ctime(first_seen) ctime(last_seen) | sort - oom_eventsMicrosoft KQL
Syslog | where TimeGenerated > ago(24h) | where SyslogMessage has "java.lang.OutOfMemoryError" | where SyslogMessage has_any ("kafka-request-handler", "data-plane-kafka-request-handler", "DefaultRecord") | summarize OomEvents = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by Computer | project Computer, OomEvents, FirstSeen, LastSeen | order by OomEvents descSigma
title: Apache Kafka Broker OutOfMemoryError in Request Handler Thread (CVE-2026-114349)
id: 4b1f7a52-0c3e-4d8a-9a61-2e5d7c9b3a10
status: experimental
description: Detects java.lang.OutOfMemoryError in kafka-request-handler threads, the broker-side symptom of a crafted compressed record batch declaring an oversized decompressed body (CVE-2026-114349).
references:
- https://kafka.apache.org/community/cve-list/
- https://nvd.nist.gov/vuln/detail/CVE-2026-114349
- https://www.endorlabs.com/learn/endor-labs-ai-sast-finds-two-apache-kafka-zero-days-unbounded-memory-allocation-from-brokers-to-kafka-streams
author: Threadlinqs Team
date: 2026-10-28
tags:
- attack.initial-access
- attack.t1190
- attack.impact
- attack.t1499
- attack.t1499.004
- cve.2026.114349
logsource:
category: application
product: apache_kafka
service: broker
detection:
selection_oom:
message|contains: 'java.lang.OutOfMemoryError'
selection_thread:
message|contains:
- 'kafka-request-handler'
- 'data-plane-kafka-request-handler'
- 'DefaultRecord'
condition: selection_oom and selection_thread
falsepositives:
- Genuine heap undersizing or legitimate very large message batches on an under-provisioned broker
level: highKnown false positives:
- Genuine heap undersizing on the broker JVM unrelated to exploitation
- Legitimately large producer batches or message bursts on an under-provisioned broker
Tuning notes: Point index/sourcetype at wherever server.log is ingested. Correlate the first_seen time with produce requests from a single principal or client IP in the authorizer/request logs. Baseline any pre-existing OOM noise per broker and alert on a rate increase. Multi-line stack traces must be line-merged so the thread name and the error land in the same event. Also confirm max.decompressed.message.bytes is set to a bounded value on the broker or topic.
- Kafka Malformed Compressed Record Batch Errors from a Single Client (CVE-2026-114349) — Exploitation · unlock with TL Creds
- Kafka Broker JVM Terminated by OutOfMemoryError (ExitOnOutOfMemoryError) — Post-Exploitation Impact · unlock with TL Creds
- Kafka Streams Consumer Group Access by Unexpected Principal (CVE-2026-111551) — Group Membership Abuse · unlock with TL Creds
- Java Process Running Vulnerable Apache Kafka Client or Streams Library (CVE-2026-114349 / CVE-2026-111551) — Exposure · unlock with TL Creds
- Kafka Consumer or Streams Thread OutOfMemoryError from Deserializer Allocation (CVE-2026-111551) — Impact · unlock with TL Creds
- Multiple Kafka Streams Instances Crash with OutOfMemoryError in Short Window (CVE-2026-111551) — Group-Wide Service Disruption · unlock with TL Creds
- Kafka Log Cleaner Thread Death / Compaction Halted (CVE-2026-114349) — Post-Exploitation Impact · unlock with TL Creds
- Kafka Write to Streams Internal or Offsets Topic by Unexpected Principal (CVE-2026-111551) — Valid Account Abuse and Data Manipulation · unlock with TL Creds
Indicators of compromise
As of 2026-10-28, Threadlinqs Intelligence tracks 10 indicators of compromise for TL-2026-4668.
Technical analysis
Endor Labs' AI SAST engine traced untrusted size fields across module boundaries and identified three unbounded allocation sites in Apache Kafka in a single scan on 2026-05-01. The findings were reported to the Apache Kafka security team with reproducers on 2026-05-15, and the CVE advisories and NVD records were published on 2026-10-28. The Apache Kafka CVE list credits multiple reporters. For CVE-2026-114349 these are Peyton Kennedy, Trung Nguyen (CyStack), Bartłomiej Dmitruk (Striga), 임성민, Mike Read, Salman Aljardan, Yuchao Zhang, Yu Bao (PayPal) and Vamsi K, with remediation by Srinivas Akhil Mallela. For CVE-2026-111551 they are Peyton Kennedy, Bartłomiej Dmitruk (Striga) and Mike Read, with remediation by Matthias J. Sax and Lucy Liu.
CVE-2026-114349 (CWE-789, CWE-770; the NVD record lists CWE-400, CWE-789 and CWE-1284) affects compressed record batch decoding. In clients/src/main/java/org/apache/kafka/common/record/internal/DefaultRecord.java (around lines 280-287), the InputStream-based decoder reads a varint sizeOfBodyInBytes from the decompressed stream and calls ByteBuffer.allocate() on it without bounds validation. Per Endor Labs, the sibling ByteBuffer overload performs the validation that this method lacks. A crafted produce request of roughly 90 bytes, with a mismatched compression type, can declare a body of up to about 2 GiB. The result is a consumer crash on fetch, an OutOfMemoryError in broker request-handler threads (the broker JVM terminates when run with -XX:+ExitOnOutOfMemoryError), and death of the log cleaner thread, which permanently halts compaction on compacted topics across the broker. The NVD record describes the attacker as an authenticated principal with Write permission. Fixed releases add the max.decompressed.message.bytes limit. Per Endor Labs it defaults to roughly 2 GiB (effectively unlimited, for backward compatibility), so operators must set a bounded value.
CVE-2026-111551 (CWE-789, CWE-770; the NVD record lists CWE-20, CWE-400 and CWE-789) covers multiple deserialization paths in Kafka clients and Kafka Streams that read a size or count field and allocate an array, collection or buffer before checking the bytes actually available. Affected paths include ListDeserializer.deserializeNullIndexList (lines ~152-153), ConsumerProtocolUtils.readTaskIdFrom, AssignmentInfo (decodeActiveTasks, decodeStandbyTasks, decodePartitionsByHost, readTopicPartitions, decodeTopicIndexAndGet), ProcessorRecordContext header-count parsing, ChangedDeserializer varint value length, CombinedKeySchema foreign-key length and ProcessorMetadata key length. A 9-byte record crashes consumers that use ListSerde, which requires write access to the topic. A 12-byte crafted Streams assignment crashes every Kafka Streams instance in a consumer group; the assignment bytes originate from the consumer group leader via the SyncGroup response, so this requires consumer group membership. Per NVD, malicious records in internal topics, offset metadata or group assignment data cause OutOfMemoryError in consumer or Streams threads, and the broker itself is not affected by this CVE.
Exploitation requires network access to the cluster plus either Write permission on a topic or consumer group membership. Researcher PoC payloads are described in the Endor Labs write-up. The sources do not state in-the-wild exploitation, CVSS scores, or network IOCs. The CISA KEV feed was checked and no listing was found in the portion read. The HIGH severity rating is an analyst estimate, based on the availability impact and the authenticated-write precondition. It is not a vendor rating.
MITRE ATT&CK techniques by tactic:
Initial Access
T1078 Valid Accounts; T1190 Exploit Public-Facing Application
Persistence
Impact
T1489 Service Stop; T1499.004 Endpoint Denial of Service: Application or System Exploitation
Remediation
Patches
- Upgrade Apache Kafka to 4.2.2, 4.3.2 or 4.4.0
Immediate actions
- Restrict Write ACLs on topics to trusted producers only
- Restrict access to consumer groups and internal topics used by Kafka Streams
- Alert on JMX metric kafka.log:type=LogCleaner,name=DeadThreadCount > 0
- Set max.decompressed.message.bytes at broker/topic level to a bounded value appropriate for the workload
Workarounds
- Configure max.decompressed.message.bytes (needed for CVE-2026-114349 even on fixed versions, since the default is about 2 GiB)
- Limit network exposure of Kafka brokers and enforce authentication and authorization
Longer-term hardening
- Run brokers with -XX:+ExitOnOutOfMemoryError under a supervisor that restarts them, and monitor JVM heap and OOM events
- Avoid ListSerde and similar deserializers on topics that untrusted producers can write to
Affected and fixed versions
- Apache Software Foundation — Apache Kafka (compressed record batch decoding, CVE-2026-114349)
Vulnerable versions: 0.11.0.0 through 4.1.2; 4.2.0 through 4.2.1; 4.3.0 through 4.3.1
Fixed in: 4.2.2; 4.3.2; 4.4.0 (requires max.decompressed.message.bytes configuration) - Apache Software Foundation — Apache Kafka clients and Kafka Streams (deserializers, CVE-2026-111551)
Vulnerable versions: 0.10.0.0 through 4.1.2; 4.2.0 through 4.2.1; 4.3.0 through 4.3.1
Fixed in: 4.2.2; 4.3.2; 4.4.0
Timeline
- Endor Labs AI SAST identifies all three unbounded allocation findings in a single scan of Apache Kafka
- Findings reported to the Apache Kafka security team with reproducers
- Endor Labs publishes technical write-up with PoC payloads and mitigations
- NVD publishes CVE-2026-114349 (17:17 UTC) with CWE-400, CWE-789 and CWE-1284; no CVSS score assigned
- NVD publishes CVE-2026-111551 (17:17 UTC) with CWE-20, CWE-400 and CWE-789; no CVSS score assigned
- Fixes available in Apache Kafka 4.2.2, 4.3.2 and 4.4.0; max.decompressed.message.bytes introduced for broker-side limiting
- Apache Kafka announces CVE-2026-114349 and CVE-2026-111551 on its CVE list, crediting multiple reporters
Sources cited
- Apache Kafka CVE list kafka.apache.org · Advisory · 2026-10-28
- NVD - CVE-2026-114349 NVD (NIST) · Advisory · 2026-10-28
- NVD - CVE-2026-111551 NVD (NIST) · Advisory · 2026-10-28
- NVD API record - CVE-2026-114349 NVD (NIST) · Advisory · 2026-10-28
- NVD API record - CVE-2026-111551 NVD (NIST) · Advisory · 2026-10-28
- Endor Labs AI SAST Finds Two Apache Kafka Zero-Days: Unbounded Memory Allocation from Brokers to Kafka Streams endorlabs.com · Research · 2026-10-28
- Apache Kafka security page kafka.apache.org · Vendor report · 2026-10-28
- Apache Kafka source: DefaultRecord.java GitHub · Code repository · 2026-10-28
Previous and next in vulnerability
Drafted by the Threadlinqs research pipeline from 8 sources; published ; last updated —.