CVE-2026-104015
JSON

7.5high

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

Severity
7.5high CVSS:3.1 by HeroDevs
Published
Last changed
Assigned by
HeroDevs

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.

Affected

Product or packageVersionsReported by
com.fasterxml.jackson.dataformat:jackson-dataformat-avrofrom 2.9.0 up to 2.18.11, from 2.19.0 up to 2.21.7, from 2.22.0 up to 2.22.3CVE List
tools.jackson.dataformat:jackson-dataformat-avrofrom 3.0.0 up to 3.1.7, from 3.2.0 up to 3.2.3CVE List

Classification

References

Sources

SourceRecordLicence
CVE ListCVE-2026-104015 changed 2026-12-01CVE Terms of Use
NVDCVE-2026-104015 changed 2026-12-01Public domain