UBUNTU-CVE-2026-111551: Medium severity ubuntu/kafka vulnerability

Published Oct 29, 2026
·
Updated

Several Kafka deserialization paths read a size or count field from input data and use it directly to allocate an array, collection, or byte buffer, with no check against the bytes actually available. A small crafted input can therefore declare a very large size and force a multi-gigabyte allocation. The affected paths are, in Kafka Streams, ProcessorRecordContext (header count), ChangedDeserializer (varint value length), CombinedKeySchema (foreign-key length, which could also produce a negative size), ProcessorMetadata (key length), and AssignmentInfo group-assignment decoding; and, in the clients library, ListDeserializer (used by ListSerde). Impact: An attacker can trigger the oversized allocation and raise an OutOfMemoryError that crashes the affected consumer or Kafka Streams thread; the broker and the rest of the cluster are unaffected. The reachable surface depends on the path: writing a crafted record to a Streams application's internal changelog or repartition topics, or committing crafted offset metadata to its consumer group (Streams internal paths); writing a crafted record to any topic that a consumer reads with ListSerde (ListDeserializer); or, as a member of a Streams consumer group, returning crafted assignment data when elected leader (AssignmentInfo). Because a crafted record remains in its topic, the error can recur on restart. The record size limit (max.message.bytes) does not help, because the allocation is driven by a size field rather than by the input's length. Mitigation: Upgrade to Apache Kafka 4.2.2, 4.3.2, or 4.4.0. Where authorization is enabled, restrict write access to each application's internal topics and consumer group to its own principal, and restrict who can produce to topics that are consumed with ListSerde. Resolution: From Apache Kafka 4.2.2, 4.3.2, and 4.4.0: these deserialization paths validate the declared size against the remaining input before allocating and reject input that fails the check.

Affected Software

1 affected component
ubuntu/kafka*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apache Kafka to a version that resolves this vulnerability.

    Fixed in 4.2.2
  2. Upgrade

    Upgrade Apache Kafka to a version that resolves this vulnerability.

    Fixed in 4.3.2
  3. Upgrade

    Upgrade Apache Kafka to a version that resolves this vulnerability.

    Fixed in 4.4.0
  4. Compensating control

    Where authorization is enabled, restrict write access to each Streams application's internal changelog and repartition topics and its consumer group to the application's own principal.

  5. Compensating control

    Where authorization is enabled, restrict who can produce to topics consumed with ListSerde.

Event History

Oct 29, 2026
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed to the Kafka Streams paths?

Kafka Streams applications are exposed when an attacker can write crafted records to their internal changelog or repartition topics, or can commit crafted offset metadata to the application's consumer group. The affected Streams decoding paths include ProcessorRecordContext, ChangedDeserializer, CombinedKeySchema, ProcessorMetadata, and AssignmentInfo.

2

When is a standard Kafka consumer affected?

A consumer is affected through the clients-library ListDeserializer when it reads a crafted record from a topic using ListSerde. Exposure therefore depends on whether the consumer deserializes data with ListSerde.

3

What does successful exploitation affect?

A crafted size or count can force a multi-gigabyte allocation and cause an OutOfMemoryError, crashing the affected consumer or Kafka Streams thread. The broker and the rest of the Kafka cluster are not affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203