CVE-2026-104015
published high CVSS 3.1 · 7.5Unbounded byte[] allocation from Avro bytes length prefix in jackson-dataformat-avro
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| FasterXML | — | com.fasterxml.jackson.dataformat:jackson-dataformat-avrojackson-dataformat-avro · 2.9.0 through 2.18.11 · 2.19.0 through 2.21.7 · 2.22.0 through 2.22.3 · Other versions: unaffected | Affected | Not stated | HeroDevs |
| FasterXML | — | tools.jackson.dataformat:jackson-dataformat-avrojackson-dataformat-avro · 3.0.0 through 3.1.7 · 3.2.0 through 3.2.3 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- HeroDevs · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| FasterXML | jackson-dataformat-avro | 2.9.0 through 2.18.11 (affected · maven)2.19.0 through 2.21.7 (affected · maven)2.22.0 through 2.22.3 (affected · maven)Default: unaffected | HeroDevs · cna |
| FasterXML | jackson-dataformat-avro | 3.0.0 through 3.1.7 (affected · maven)3.2.0 through 3.2.3 (affected · maven)Default: unaffected | HeroDevs · cna |
Weaknesses
1- CWE-789 CWE-789 Memory Allocation with Excessive Size Value
References
3Provider assertions
1HeroDevs · cna
Unbounded byte[] allocation from Avro bytes length prefix in jackson-dataformat-avro
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7e685a99ed9b7adf5abc42602f8ed934a8c07bf7a536857f5b73b923dc9d0984
- Ingested
- 01 Dec 2026, 15:32:51 UTC
- Source record
- Official CVE record