CVE-2026-104016
Published:October 27, 2026
Updated:November 04, 2026
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.
Affected Packages
https://github.com/FasterXML/jackson-dataformats-binary.git (GITHUB):
Affected version(s) >=jackson-dataformats-binary-3.2.0 <jackson-dataformats-binary-3.2.4Fix Suggestion:
Update to version jackson-dataformats-binary-3.2.4https://github.com/FasterXML/jackson-dataformats-binary.git (GITHUB):
Affected version(s) >=jackson-dataformats-binary-2.8.0 <jackson-dataformats-binary-2.18.12Fix Suggestion:
Update to version jackson-dataformats-binary-2.18.12https://github.com/FasterXML/jackson-dataformats-binary.git (GITHUB):
Affected version(s) >=jackson-dataformats-binary-3.0.0 <jackson-dataformats-binary-3.1.8Fix Suggestion:
Update to version jackson-dataformats-binary-3.1.8https://github.com/FasterXML/jackson-dataformats-binary.git (GITHUB):
Affected version(s) >=jackson-dataformats-binary-2.19.0 <jackson-dataformats-binary-2.21.8Fix Suggestion:
Update to version jackson-dataformats-binary-2.21.8https://github.com/FasterXML/jackson-dataformats-binary.git (GITHUB):
Affected version(s) >=jackson-dataformats-binary-2.22.0 <jackson-dataformats-binary-2.22.4Fix Suggestion:
Update to version jackson-dataformats-binary-2.22.4tools.jackson.dataformat:jackson-dataformat-protobuf (JAVA):
Affected version(s) >=3.0.0 <3.1.8Fix Suggestion:
Update to version 3.1.8com.fasterxml.jackson.dataformat:jackson-dataformat-protobuf (JAVA):
Affected version(s) >=2.19.0 <2.21.8Fix Suggestion:
Update to version 2.21.8tools.jackson.dataformat:jackson-dataformat-protobuf (JAVA):
Affected version(s) >=3.2.0 <3.2.4Fix Suggestion:
Update to version 3.2.4com.fasterxml.jackson.dataformat:jackson-dataformat-protobuf (JAVA):
Affected version(s) >=2.6.0 <2.18.12Fix Suggestion:
Update to version 2.18.12com.fasterxml.jackson.dataformat:jackson-dataformat-protobuf (JAVA):
Affected version(s) >=2.14.0 <2.14.3-jackson-dataformats-binary-2.14.10Fix Suggestion:
Update to version 2.14.3-jackson-dataformats-binary-2.14.10com.fasterxml.jackson.dataformat:jackson-dataformat-protobuf (JAVA):
Affected version(s) >=2.22.0 <2.22.4Fix Suggestion:
Update to version 2.22.4com.fasterxml.jackson.dataformat:jackson-dataformat-protobuf (JAVA):
Affected version(s) >=2.6.0-rc1 <2.18.12Fix Suggestion:
Update to version 2.18.12com.fasterxml.jackson.dataformat:jackson-dataformat-protobuf (JAVA):
Affected version(s) >=2.15.0 <2.15.4-jackson-dataformats-binary-2.15.11Fix Suggestion:
Update to version 2.15.4-jackson-dataformats-binary-2.15.11com.fasterxml.jackson.dataformat:jackson-dataformat-protobuf (JAVA):
Affected version(s) >=2.13.0 <2.13.5-jackson-dataformats-binary-2.13.13Fix Suggestion:
Update to version 2.13.5-jackson-dataformats-binary-2.13.13Related Resources (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Integer Overflow or Wraparound
EPSS
Base Score:
0.68