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

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 2.18.12, 2.21.8, 2.22.4, 3.1.8, 3.2.4 (CNA); fix release not confirmed
- Status: published
- Published: 2026-10-27 · Modified: 2026-11-04
- Aliases: DEBIAN-CVE-2026-104016
- Record: https://cvemate.com/vulnerability/CVE-2026-104016 · JSON: https://cvemate.com/vulnerability/CVE-2026-104016/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.679%, percentile 53.756%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian jackson-dataformats-binary (Debian): \< 2.22.4-1
- fasterxml jackson-dataformat-protobuf: ≥ 2.6.0, \< 2.18.12 \| ≥ 2.19.0, \< 2.21.8 \| ≥ 2.22.0, \< 2.22.4 \| ≥ 3.0.0, \< 3.1.8 \| ≥ 3.2.0, \< 3.2.4

## References

- <https://github.com/FasterXML/jackson-dataformats-binary/security/advisories/GHSA-c2rq-mcfv-jw29>
- <https://security-tracker.debian.org/tracker/CVE-2026-104016>

---

Data as of 2026-12-05T03:47:43.240Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
