p PatchFirst

CVE-2026-104016

CVE-2026-104016 · jackson-dataformat-protobuf: signed integer overflow in string-length paths allows unbounded array allocation and OutOfMemoryError

CVSS 7.5 · Alta · EPSS 0,5% · Código de explotación público · Corrección disponible

Compara con tu versión instalada

Los productos afectados y las versiones corregidas conocidas son datos públicos. Compáralos con tu versión instalada.

Comprueba la versión instalada:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="jackson-dataformats-binary"'

Evalúa los riesgos de tu servidor

La comprobación gratuita te da una puntuación y un resumen de riesgos por pila tecnológica, sin registro. No indica si esta vulnerabilidad concreta te afecta.

La monitorización compara los datos públicos con el software de tus servidores. Ofrece hallazgos detallados y el orden de las actualizaciones.

curl -fsSL https://patchfirst.dev/check.sh | sh
Comprobar tu servidor gratis →

Los canales publican noticias generales sobre tecnologías; la monitorización te avisa de nuevos hallazgos en tus servidores en el panel, mediante notificaciones del navegador, en Telegram o por webhook.

Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.

ProtobufParser parses length-prefixed protobuf string and bytes fields by checking (_inputPtr + len) <= _inputEnd and then, on the fast path, calling _finishShortText(len). Both use 32-bit signed integer arithmetic. When an attacker supplies a varint decoding to a length near Integer.MAX_VALUE, _inputPtr + len overflows to a negative value, the bounds check passes, and _finishShortText(len) reaches TextBuffer.expandCurrentSegment(len), which performs Arrays.copyOf with no cap and throws OutOfMemoryError: Requested array size exceeds VM limit.

The JVM refuses arrays larger than Integer.MAX_VALUE - 8 before consulting available heap, so -Xmx tuning does not mitigate the issue. StreamReadConstraints.maxStringLength and maxDocumentLength do not gate this path: a 33-byte payload is far below any document-length cap and the string-length check does not fire before the allocation. This was confirmed empirically against shipping artifacts with maxStringLength, maxDocumentLength and maxNestingDepth all configured.

A February 2026 hardening commit added the equivalent overflow guard to the packed-array-length and message-length paths but left the string-length call sites unguarded. No privileges or user interaction beyond the ability to submit data for parsing are required.

Publicación
Actualización

Pila tecnológica: system

Productos y versiones afectados

  • jackson-dataformat-protobuf

    Versiones
    • ≥ 2.6.0, < 2.18.12: Afectada (maven)
    • 2.18.12: No afectada (maven)
    • ≥ 2.19.0, < 2.21.8: Afectada (maven)
    • 2.21.8: No afectada (maven)
    • ≥ 2.22.0, < 2.22.4: Afectada (maven)
    • 2.22.4: No afectada (maven)

    Actualiza a 2.18.12; Actualiza a 2.21.8; Actualiza a 2.22.4

  • jackson-dataformat-protobuf

    Versiones
    • ≥ 3.0.0, < 3.1.8: Afectada (maven)
    • 3.1.8: No afectada (maven)
    • ≥ 3.2.0, < 3.2.4: Afectada (maven)
    • 3.2.4: No afectada (maven)

    Actualiza a 3.1.8; Actualiza a 3.2.4

  • jackson-dataformats-binary Debian 14

    Versiones
    • 2.18.11-1
    Intervalos de versiones afectados
    • ECOSYSTEM: < 2.22.4-1

    Actualiza a 2.22.4-1

Fuentes originales

Comprueba tu servidor →