All vulnerabilities

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.

From the CVE Program. Shortened; the full text is there.

Affected software

SoftwareAffected versions
com.fasterxml.jackson.dataformat:jackson-dataformat-protobufMaven · osv:Maven:com.fasterxml.jackson.dataformat:jackson-dataformat-protobuf
  • From 2.6.0 before 2.18.12
  • From 2.19.0 before 2.21.8
  • From 2.22.0 before 2.22.4
tools.jackson.dataformat:jackson-dataformat-protobufMaven · osv:Maven:tools.jackson.dataformat:jackson-dataformat-protobuf
  • From 3.0.0 before 3.1.8
  • From 3.2.0 before 3.2.4

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
Search the list for com.fasterxml.jackson.dataformat:jackson-dataformat-protobuf

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
Search the list for tools.jackson.dataformat:jackson-dataformat-protobuf

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-104016