Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-111108
Published:October 28, 2026
Updated:November 19, 2026
Apache Kafka's code-generated protocol readers pre-size an array's collection from the elementĀ count declared by the sender. That count is checked only against the bytes remaining in theĀ request buffer, which assumes about one byte per element; because most elements need severalĀ bytes, a request can declare far more elements than the buffer holds and still pass. For aĀ keyed array the reader then allocates an ImplicitLinkedHashCollection of capacity (2 * count +1), so a request of a few tens of megabytes can force a heap allocation several times largerĀ before any element is read. The pattern is emitted into every generated reader, so it affectsĀ all Kafka API types with an array field.Ā  Impact: Request parsing happens before any authorization check. On a listener that does not requireĀ authentication (for example PLAINTEXT), an unauthenticated attacker can send a few concurrentĀ requests that each declare a very large= array length and allocate many times their wire sizeĀ in broker heap, crashing the broker with an OutOfMemoryError. The reporter demonstrated threeĀ concurrent ~90 MB ProduceRequest (v3) connections exhausting a 1 GB heap (~8x amplification).Ā On listeners that require authentication, the attacker needs valid credentials but no specific ACL,Ā since parsing precedes authorization.. Mitigation: Upgrade to Apache Kafka 4.2.2, 4.3.2, or 4.4.0. Until then, lowering socket.request.max.bytesĀ and restricting network access to broker listeners reduces, but does not remove, exposure. Resolution: From Apache Kafka 4.2.2, 4.3.2, and 4.4.0: generated readers cap the initial arrayĀ pre-allocation at MessageUtil.MAX_PREALLOCATED_ARRAY_CAPACITY (1000) and grow it on demand,Ā and reject a declared array length above MessageUtil.MAX_ARRAY_LENGTH (1,000,000).
Affected Packages
https://github.com/apache/kafka.git (GITHUB):
Affected version(s) >=4.3.0-rc0 <4.3.2
Fix Suggestion:
Update to version 4.3.2
https://github.com/apache/kafka.git (GITHUB):
Affected version(s) >=2.8.0-rc0 <4.2.2 || >=3.0.0-rc0 <4.2.2 || >=4.0.0-rc0 <4.2.2 || >=4.2.0-rc0 <4.2.2
Fix Suggestion:
Update to version 4.2.2
org.apache.kafka:kafka-clients (JAVA):
Affected version(s) >=3.1.0 <3.1.2-kafka-3.1.5
Fix Suggestion:
Update to version 3.1.2-kafka-3.1.5
org.apache.kafka:kafka_2.13 (JAVA):
Affected version(s) >=3.1.0 <3.1.2-kafka-3.1.5
Fix Suggestion:
Update to version 3.1.2-kafka-3.1.5
org.apache.kafka:kafka_2.12 (JAVA):
Affected version(s) >=3.1.0 <3.1.2-kafka-3.1.5
Fix Suggestion:
Update to version 3.1.2-kafka-3.1.5
org.apache.kafka:kafka-raft (JAVA):
Affected version(s) >=3.1.0 <3.1.2-kafka-3.1.5
Fix Suggestion:
Update to version 3.1.2-kafka-3.1.5
org.apache.kafka:kafka-metadata (JAVA):
Affected version(s) >=3.1.0 <3.1.2-kafka-3.1.5
Fix Suggestion:
Update to version 3.1.2-kafka-3.1.5
org.apache.kafka:kafka-storage (JAVA):
Affected version(s) >=3.1.0 <3.1.2-kafka-3.1.5
Fix Suggestion:
Update to version 3.1.2-kafka-3.1.5
org.apache.kafka:generator (JAVA):
Affected version(s) >=3.1.0 <3.1.2-kafka-3.1.5
Fix Suggestion:
Update to version 3.1.2-kafka-3.1.5
org.apache.kafka:kafka-clients (JAVA):
Affected version(s) >=4.3.0 <4.3.2
Fix Suggestion:
Update to version 4.3.2
org.apache.kafka:kafka-streams (JAVA):
Affected version(s) >=3.1.0 <3.1.2-kafka-3.1.5
Fix Suggestion:
Update to version 3.1.2-kafka-3.1.5
org.apache.kafka:kafka-clients (JAVA):
Affected version(s) >=2.8.0 <4.2.2 || >=3.0.0 <4.2.2 || >=4.0.0 <4.2.2 || >=4.2.0 <4.2.2
Fix Suggestion:
Update to version 4.2.2
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
9.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Uncontrolled Resource Consumption
Memory Allocation with Excessive Size Value
Allocation of Resources Without Limits or Throttling
EPSS
Base Score:
0.59