CVE-2026-104017: Unbounded byte[] allocation from Protobuf bytes length prefix in jackson-dataformat-protobuf
In jackson-dataformat-protobuf, ProtobufParser.finishBytes() allocates a byte[] from the attacker-controlled length prefix of a length-delimited bytes field before reading the body, without checking the length against the remaining input or the enclosing message. A message of about 6 bytes can force an allocation of about 2 GB, causing an OutOfMemoryError that escapes the parser and crashes the request thread (denial of service). This affects com.fasterxml.jackson.dataformat:jackson-dataformat-protobuf 2.8.0 through 2.18.11, 2.19.0 through 2.21.7 and 2.22.0 through 2.22.3, and tools.jackson.dataformat:jackson-dataformat-protobuf 3.0.0 through 3.1.7 and 3.2.0 through 3.2.3. It is fixed in 2.18.12, 2.21.8, 2.22.4, 3.1.8 and 3.2.4.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
com.fasterxml.jackson.dataformat:jackson-dataformat-protobufto a version that resolves this vulnerability.Fixed in 2.18.12 - Upgrade
Upgrade
com.fasterxml.jackson.dataformat:jackson-dataformat-protobufto a version that resolves this vulnerability.Fixed in 2.21.8 - Upgrade
Upgrade
com.fasterxml.jackson.dataformat:jackson-dataformat-protobufto a version that resolves this vulnerability.Fixed in 2.22.4 - Upgrade
Upgrade
tools.jackson.dataformat:jackson-dataformat-protobufto a version that resolves this vulnerability.Fixed in 3.1.8 - Upgrade
Upgrade
tools.jackson.dataformat:jackson-dataformat-protobufto a version that resolves this vulnerability.Fixed in 3.2.4
Event History
Frequently Asked Questions
Who is exposed to this denial-of-service issue?
Applications using the affected jackson-dataformat-protobuf artifact are exposed when they parse attacker-controlled Protobuf input containing length-delimited bytes fields. The affected ranges include com.fasterxml.jackson.dataformat releases 2.8.0 through 2.18.11, 2.19.0 through 2.21.7, and 2.22.0 through 2.22.3, plus tools.jackson.dataformat releases 3.0.0 through 3.1.7 and 3.2.0 through 3.2.3.
What does an attacker need to exploit this?
An attacker only needs to provide a crafted Protobuf message to a reachable parser; no privileges or user interaction are required. A message of roughly 6 bytes can declare a bytes-field length that triggers an allocation of about 2 GB before the field body is read.
What should be done if the affected dependency is in use?
Upgrade to a fixed release: 2.18.12, 2.21.8, or 2.22.4 for com.fasterxml.jackson.dataformat artifacts, or 3.1.8 or 3.2.4 for tools.jackson.dataformat artifacts. The provided data does not identify a configuration workaround.