CVE-2026-111496: Apache Kafka: Kafka Streams StreamThread hang from integer overflow in stream-time punctuation

Published Oct 28, 2026
·
Updated

Kafka Streams derives its stream-time clock from record timestamps. PunctuationSchedule.next() computed the next punctuation time as timestamp + (intervalsMissed + 1) interval with no overflow check. A record with a timestamp at or near Long.MAXVALUE advances stream time to that value, so the next stream-time punctuation overflows to a negative time. PunctuationQueue then re-queues that time and loops on it indefinitely while holding a lock, stalling the StreamThread.

Impact:

A single record is enough. The affected StreamThread stops processing, and because the record stays in the topic the hang returns on restart; an application whose partitions are all affected becomes unresponsive. Only the Streams application is affected, not the brokers or the cluster. Triggering it needs write access to a source topic whose topology uses stream-time punctuation, and a broker that stores the record: brokers from Apache Kafka 4.0.0 reject such a timestamp by default (log.message.timestamp.after.max.ms, one hour), so it is reachable only on older brokers or where that bound has been relaxed.

Mitigation:

Upgrade Kafka Streams to 4.2.2, 4.3.2, or 4.4.0. As defense in depth, keep log.message.timestamp.after.max.ms bounded on source topics and restrict write access to them.

Resolution:

From Apache Kafka 4.2.2, 4.3.2, and 4.4.0: the next punctuation time is computed with overflow-checked arithmetic (clamped to Long.MAXVALUE), and a rescheduled punctuation is re-queued only when its time moves forward.

Affected Software

1 affected component
Apache Kafka Streams<4.2.2, >=4.3.0<4.3.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apache Kafka Streams to a version that resolves this vulnerability.

    Fixed in 4.4.0
  2. Configuration

    Keep log.message.timestamp.after.max.ms bounded on source topics.

    Apache Kafka broker log.message.timestamp.after.max.ms = bounded
  3. Compensating control

    Restrict write access to the source topics.

Event History

Oct 28, 2026
CVE Published
via MITRE·04:45 PM
Data Sourced
via MITRE·04:45 PM
DescriptionWeakness

Frequently Asked Questions

1

Are Kafka brokers or the Kafka cluster affected by this issue?

No. The impact is limited to the Kafka Streams application: an affected StreamThread can stop processing, and an application can become unresponsive if all of its partitions are affected.

2

What must an attacker be able to do to trigger the hang?

They need write access to a source topic used by a topology that performs stream-time punctuation. The broker must also accept and store a record with a timestamp at or near Long.MAX_VALUE.

3

Does the default broker configuration prevent exploitation?

Apache Kafka brokers from 4.0.0 reject these timestamps by default through log.message.timestamp.after.max.ms, set to one hour. The issue remains reachable on older brokers or where that limit has been relaxed.

4

Why can the problem return after restarting the Streams application?

The triggering record remains in the topic, so processing it again causes the StreamThread to hang again. Remediation therefore needs to account for the retained offending record as well as upgrading the Streams application.

5

Which Kafka Streams versions contain the fix?

Upgrade Kafka Streams to 4.2.2, 4.3.2, or 4.4.0.

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