jackson-dataformat-protobuf: signed integer overflow in string-length paths allows unbounded array allocation and OutOfMemoryError
Summary
| CVE | CVE-2026-104016 |
|---|---|
| State | PUBLISHED |
| Assigner | HeroDevs |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-10-28 00:17:10 UTC |
| Updated | 2026-11-04 21:17:42 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 7.5 HIGH from 36c7be3b-2937-45df-85ea-ca7133ea542c
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS: 0.006790000 probability, percentile 0.524650000 (date 2026-11-04)
Problem Types: CWE-190 | CWE-190 CWE-190 Integer Overflow or Wraparound
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | 36c7be3b-2937-45df-85ea-ca7133ea542c | Secondary | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 3.1 | CNA | CVSS | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | FasterXML | Jackson-dataformat-protobuf | affected 2.6.0 2.18.12 maven | Not specified |
| CNA | FasterXML | Jackson-dataformat-protobuf | unaffected 2.18.12 maven | Not specified |
| CNA | FasterXML | Jackson-dataformat-protobuf | affected 2.19.0 2.21.8 maven | Not specified |
| CNA | FasterXML | Jackson-dataformat-protobuf | unaffected 2.21.8 maven | Not specified |
| CNA | FasterXML | Jackson-dataformat-protobuf | affected 2.22.0 2.22.4 maven | Not specified |
| CNA | FasterXML | Jackson-dataformat-protobuf | unaffected 2.22.4 maven | Not specified |
| CNA | FasterXML | Jackson-dataformat-protobuf | affected 3.0.0 3.1.8 maven | Not specified |
| CNA | FasterXML | Jackson-dataformat-protobuf | unaffected 3.1.8 maven | Not specified |
| CNA | FasterXML | Jackson-dataformat-protobuf | affected 3.2.0 3.2.4 maven | Not specified |
| CNA | FasterXML | Jackson-dataformat-protobuf | unaffected 3.2.4 maven | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/FasterXML/jackson-dataformats-binary/security/advisories/GHSA... | 36c7be3b-2937-45df-85ea-ca7133ea542c | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: bewithyash (en)
CNA: cowtowncoder (Tatu Saloranta) (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-10-20T22:46:00.000Z | GHSA-c2rq-mcfv-jw29 published by the maintainer in FasterXML/jackson-dataformats-binary |
There are currently no legacy QID mappings associated with this CVE.