CVE-2026-104015

Unbounded byte[] allocation from Avro bytes length prefix in jackson-dataformat-avro

Published Dec 1, 2026 CVSS 3.1 · 7.5 High EPSS n/a KEV · Not listed
Description
In jackson-dataformat-avro, decodeBytes() in both the default native decoder (JacksonAvroParserImpl) and the Apache-decoder variant (ApacheAvroParserImpl) allocates a byte[] directly from the attacker-controlled length prefix of an Avro bytes value, without checking it against the remaining input or any limit. A payload of about 5 bytes can force an allocation of up to about 2 GB before any data is read, causing an OutOfMemoryError and denial of service. Decimal fields decoded through decodeBytesDecimal are affected the same way. This affects com.fasterxml.jackson.dataformat:jackson-dataformat-avro 2.9.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-avro 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

The vulnerability stems from a lack of bounds checking when allocating byte arrays from an Avro bytes value in jackson-dataformat-avro. An attacker can supply a length field that is far larger than the actual data, causing the library to allocate a huge byte array—up to around 2 GB—before any data is read. This results in an OutOfMemoryError that terminates the process, leading to loss of availability. The weakness is a classic example of unbounded memory allocation (CWE‑789).

Affected Systems

The issue affects FasterXML’s jackson-dataformat‑avro across many releases: 2.9.0 through 2.18.11, 2.19.0 through 2.21.7, 2.22.0 through 2.22.3, and the 3.x line from 3.0.0 through 3.1.7 and 3.2.0 through 3.2.3. Applications that use the default native decoder (JacksonAvroParserImpl) or the Apache‑decoder variant (ApacheAvroParserImpl) as well as any code that decodes decimal bytes via decodeBytesDecimal are potentially impacted.

Risk and Exploitability

With a CVSS score of 7.5 the vulnerability is considered high severity. No EPSS data is available, and it is not listed in the CISA KEV catalog. The likely attack vector is from any source that can send crafted Avro data—such as a web service, data processing pipeline, or message broker—to a system using the affected library. The attack requires only supplying a malformed length prefix; no authentication or privileged access is needed. If successful, the resulting OutOfMemoryError can crash a single JVM instance, causing a denial of service for the application or service that relies on it.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade jackson-dataformat-avro to a version that includes the fix (2.18.12, 2.21.8, 2.22.4, 3.1.8 or 3.2.4).
  • If an upgrade is not immediately possible, constrain the size of Avro input at the network or application layer to prevent the parser from receiving excessively large length fields.
  • Deploy resource limits or a dedicated sandbox for the JVM processes that handle Avro data so that an OutOfMemoryError is contained and does not bring down the entire host or cluster.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description In jackson-dataformat-avro, decodeBytes() in both the default native decoder (JacksonAvroParserImpl) and the Apache-decoder variant (ApacheAvroParserImpl) allocates a byte[] directly from the attacker-controlled length prefix of an Avro bytes value, without checking it against the remaining input or any limit. A payload of about 5 bytes can force an allocation of up to about 2 GB before any data is read, causing an OutOfMemoryError and denial of service. Decimal fields decoded through decodeBytesDecimal are affected the same way. This affects com.fasterxml.jackson.dataformat:jackson-dataformat-avro 2.9.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-avro 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 Avro bytes length prefix in jackson-dataformat-avro
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:47 PM
Reserved
Oct 1, 2026, 4:47 PM
Status
Received
Published
Dec 1, 2026, 4:18 PM
Modified
Dec 1, 2026, 5:17 PM