Jackson-dataformat-avro <=2.18.11, <=2.21.7, <=2.22.3 OOM via decodeBytes
CVE-2026-104015 Published on December 1, 2026
Unbounded byte[] allocation from Avro bytes length prefix in jackson-dataformat-avro
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.
Vulnerability Analysis
CVE-2026-104015 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. An automatable proof of concept (POC) exploit exists. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.
Weakness Type
What is a Stack Exhaustion Vulnerability?
The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.
CVE-2026-104015 has been classified to as a Stack Exhaustion vulnerability or weakness.
Affected Versions
FasterXML jackson-dataformat-avro:- Version 2.9.0, <= 2.18.11 is affected.
- Version 2.19.0, <= 2.21.7 is affected.
- Version 2.22.0, <= 2.22.3 is affected.
- Version 3.0.0, <= 3.1.7 is affected.
- Version 3.2.0, <= 3.2.3 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.