CVE-2026-104017

Unbounded byte[] allocation from Protobuf bytes length prefix in jackson-dataformat-protobuf

Published Dec 1, 2026 CVSS 3.1 · 7.5 High EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Jackson's Protobuf parser can allocate an unbounded byte array based on an attacker‑controlled length prefix, leading to an OutOfMemoryError that propagates outside the parser and crashes the request thread. The flaw is a classic CWE‑789 untrusted input flaw, resulting in a denial‑of‑service that can affect any process using the library.

Affected Systems

The vulnerability affects FasterXML jackson‑dataformat‑protobuf versions 2.8.0‑2.18.11, 2.19.0‑2.21.7, and 2.22.0‑2.22.3, as well as tools.jackson.dataformat jackson‑dataformat‑protobuf versions 3.0.0‑3.1.7 and 3.2.0‑3.2.3.

Risk and Exploitability

With a CVSS score of 7.5, the flaw is considered high severity, but no EPSS score is available and the vulnerability is not listed in KEV. The likely attack vector is via crafted Protobuf payloads sent to any service that parses messages with the vulnerable library; an attacker with network access to the target can trigger the oversized allocation, causing the server process to crash. The attack requires no special privileges beyond the ability to send data to the affected application.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade jackson‑dataformat‑protobuf to a fixed release (2.18.12, 2.21.8, 2.22.4, 3.1.8, or 3.2.4).
  • Implement input validation to limit message size or verify length fields before parsing, reducing the risk of allocating large arrays.
  • Monitor application logs for OOM errors or thread crashes, and configure automated recovery or graceful shutdown to mitigate DoS impact.

Generated by OpenCVE AI on December 1, 2026 at 20:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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.
Title Unbounded byte[] allocation from Protobuf bytes length prefix in jackson-dataformat-protobuf
Weaknesses CWE-789
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Subscriptions

No data.

Weaknesses
  • CWE-789

    Memory Allocation with Excessive Size Value

Sources

Status
PUBLISHED
Assigner
HeroDevs
Published
Updated
Dec 1, 2026, 4:44 PM
Reserved
Oct 1, 2026, 4:53 PM
Status
Received
Published
Dec 1, 2026, 4:18 PM
Modified
Dec 1, 2026, 5:17 PM