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 · High · EPSS 0.5% · Public exploit · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

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

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Stack: system

Affected products and versions

  • jackson-dataformat-protobuf

    Versions
    • ≥ 2.6.0, < 2.18.12: Affected (maven)
    • 2.18.12: Not affected (maven)
    • ≥ 2.19.0, < 2.21.8: Affected (maven)
    • 2.21.8: Not affected (maven)
    • ≥ 2.22.0, < 2.22.4: Affected (maven)
    • 2.22.4: Not affected (maven)

    Update to 2.18.12; Update to 2.21.8; Update to 2.22.4

  • jackson-dataformat-protobuf

    Versions
    • ≥ 3.0.0, < 3.1.8: Affected (maven)
    • 3.1.8: Not affected (maven)
    • ≥ 3.2.0, < 3.2.4: Affected (maven)
    • 3.2.4: Not affected (maven)

    Update to 3.1.8; Update to 3.2.4

  • jackson-dataformats-binary Debian 14

    Versions
    • 2.18.11-1
    Affected ranges
    • ECOSYSTEM: < 2.22.4-1

    Update to 2.22.4-1

Original sources

Check your server →