← Biblioteca de vulnerabilidades

CVE-2026-111496

Desbordamiento de enteros en Apache Kafka

Crítica9.1Publicada 28 de oct de 2026 · Actualizada 5 de nov de 2026

En resumen

Un atacante remoto, sin usuario ni contraseña, podría leer información confidencial sin que nadie haga nada.

Cómo se ataca

  • Se puede atacar por la red, incluso desde internet si el servicio está expuesto.
  • No requiere condiciones especiales: el ataque se puede repetir de forma confiable.
  • No necesita usuario ni contraseña.
  • No necesita que nadie haga nada: ni abrir un archivo ni hacer clic.

Qué puede lograr el atacante

  • Leer información confidencial: datos, archivos o credenciales.
  • Dejar el servicio o el equipo sin funcionar.

Cómo corregirla

  1. Revise si usa alguno de los productos y versiones de la lista «A qué afecta».
  2. Aplique la actualización o la mitigación que indica el fabricante.
  3. Si no puede actualizar ya, reduzca la exposición: que el servicio no sea accesible desde internet, o desactive la función afectada.
  4. Como pudo explotarse antes de corregirla, revise los registros del equipo en busca de accesos o cambios extraños.

Recomendaciones para este tipo de fallo

  • Aplicar la actualización del fabricante.
  • Para quien desarrolla: usar operaciones con control de desbordamiento, validar rangos antes de calcular y usar tipos suficientemente grandes.

A qué afecta

  • Apache Software Foundation · Apache Kafka

    desde 1.1.0 hasta 4.1.2 inclusive; desde 4.2.0 hasta 4.2.1 inclusive; desde 4.3.0 hasta 4.3.1 inclusive

Qué es: Desbordamiento de enteros y errores de cálculo

Un cálculo numérico supera el valor máximo que cabe en la variable y «da la vuelta» a un número pequeño o negativo; el programa reserva poca memoria o se salta una comprobación.

Si el programa calcula «cantidad × tamaño» para reservar memoria y el resultado se desborda, reserva un espacio diminuto y luego escribe todo el dato encima: termina en un desbordamiento de búfer. También sirve para saltarse límites (un saldo negativo, un índice válido) o para dividir por cero y cerrar el programa.

Guía completa: dónde aparece, cómo se corrige y qué evitar

Descripción oficial (en inglés)

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.MAX_VALUE 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.MAX_VALUE), and a rescheduled punctuation is re-queued only when its time moves forward.