Maven
CVE-2026-104016
jackson-dataformat-protobuf: signed integer overflow in string-length paths allows unbounded array allocation and OutOfMemoryError
- Severity
- High 7.5
- Published
- 27 Oct 2026
- Last changed
- 4 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 2.18.12, 2.21.8, 2.22.4, 3.1.8, 3.2.4
- Exploit chance
- 0.7% in the next 30 daysHigher than 53% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Integer overflow (CWE-190)
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Sources
- CVE Program
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.
Affected software
| Software | Affected versions |
|---|---|
com.fasterxml.jackson.dataformat:jackson-dataformat-protobufMaven · osv:Maven:com.fasterxml.jackson.dataformat:jackson-dataformat-protobuf |
|
tools.jackson.dataformat:jackson-dataformat-protobufMaven · osv:Maven:tools.jackson.dataformat:jackson-dataformat-protobuf |
|
About com.fasterxml.jackson.dataformat:jackson-dataformat-protobuf
Vulnerabilities in com.fasterxml.jackson.dataformat:jackson-dataformat-protobuf
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-110747jackson-dataformat-protobuf: integer overflow in ProtobufParser._readStringKey() allows OutOfMemoryError from an 8-byte payloadHigh 7.5 28 Oct 2026
About tools.jackson.dataformat:jackson-dataformat-protobuf
Vulnerabilities in tools.jackson.dataformat:jackson-dataformat-protobuf
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-110747jackson-dataformat-protobuf: integer overflow in ProtobufParser._readStringKey() allows OutOfMemoryError from an 8-byte payloadHigh 7.5 28 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-104016