jackson-dataformat-avro denial of service in Avro bytes and decimal decoding
Affects jackson-dataformat-avro 2.9.0 through 2.22.3 and 3.0.0 through 3.2.3 when parsing Avro data with a bytes field in the schema. Listed fixes are 2.18.12, 2.21.8 and 2.22.4.
- Exploited
- Proof of concept public, per CISA
- Fix
- Fixed in 2.18.12, 2.21.8, 2.22.4
- Who is exposed
- Default setups
Summary
The jackson-dataformat-avro library, published under both the FasterXML and tools.jackson package names, can be made to allocate a very large byte array while decoding Avro bytes or decimal fields. An attacker can send remotely, without logging in, a payload of about 5 bytes whose length prefix forces an allocation of up to about 2 GB, which can crash the application with an out-of-memory error and cause denial of service.
Written by a model
Original 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.
Who should check
Teams running jackson-dataformat-avro (com.fasterxml.jackson.dataformat or tools.jackson.dataformat) that parse untrusted Avro data with a schema containing bytes fields
“against a schema that contains a bytes field”
What to do
Check every install: default setups are affected.
Upgrade to a fixed version: 2.18.12, 2.21.8, 2.22.4.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-104015 (Unbounded byte[] allocation from Avro bytes length prefix in jackson-dataformat-avro), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-104015 (entry last updated 2026-12-01):
Affected:
- FasterXML jackson-dataformat-avro: from 2.9.0, through 2.18.11; from 2.19.0, through 2.21.7; from 2.22.0, through 2.22.3
- FasterXML jackson-dataformat-avro: from 3.0.0, through 3.1.7; from 3.2.0, through 3.2.3
Fixed versions: 2.18.12, 2.21.8, 2.22.4.
Conditions (all must be true for the bug to be hit):
- Parsing Avro data with a schema that contains a bytes field (source: https://www.herodevs.com/vulnerability-directory/cve-2026-104015)
Setup: the bug is reachable in a default setup; no special feature or setting is needed.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-104015 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-104015 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/FasterXML/jackson-dataformats-binary/security/advisories/GHSA-gf9r-rhg2-fj5v
- https://github.com/FasterXML/jackson-dataformats-binary/pull/820
- https://www.herodevs.com/vulnerability-directory/cve-2026-104015
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-104015
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-104015"}.Affected versions
- com.fasterxml.jackson.dataformat:jackson-dataformat-avroFrom 2.9.0 · through 2.18.11; From 2.19.0 · through 2.21.7; From 2.22.0 · through 2.22.3
- tools.jackson.dataformat:jackson-dataformat-avroFrom 3.0.0 · through 3.1.7; From 3.2.0 · through 3.2.3
cve.now Index
- Exploitation15/40CISA rates a proof of concept as public
- Exposure25/25Default setups, CISA rates it automatable
- Reach?/20Unknown. No tracked technology or package matched
- Severity7.5/10CVSS 7.5
- No patch0/5No signal
What would change the score
- Would score about 73 if added to CISA KEV
- Would score about 68 if CISA's SSVC rates exploitation active
Timeline
- CVE published
- First seen by cve.now
- CISA SSVC assessment
Exploitation: poc · Automatable: yes · Technical impact: partial
- Record last updated
Evidence 5
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | GitHub · FasterXML/jackson-dataformats-binary · Advisory GHSA-gf9r-rhg2-fj5v |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-104015 |
| Record | NVD · CVE-2026-104015 |
| Other links 2 | |
| Repository | GitHub · FasterXML/jackson-dataformats-binary · Pull request #820 |
| Link | herodevs.com · vulnerability-directory/cve-2026-104015 |
Questions about CVE-2026-104015
Is CVE-2026-104015 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. CISA's SSVC assessment notes a proof of concept exists. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
Parsing Avro data against a schema with a bytes field lets a small payload force a very large byte array allocation. This can cause an OutOfMemoryError and a denial of service.
Source: herodevs.com, github.com
Which versions are affected by CVE-2026-104015?
com.fasterxml.jackson.dataformat:jackson-dataformat-avro: from 2.9.0 through 2.18.11; from 2.19.0 through 2.21.7; from 2.22.0 through 2.22.3. tools.jackson.dataformat:jackson-dataformat-avro: from 3.0.0 through 3.1.7; from 3.2.0 through 3.2.3.
Source: cve.now feed data
Am I affected, and how do I check?
Affected ranges are 2.9.0 through 2.18.11, 2.19.0 through 2.21.7, 2.22.0 through 2.22.3, 3.0.0 through 3.1.7, and 3.2.0 through 3.2.3. Check the jackson-dataformat-avro version in the project's dependency list and whether its Avro schemas contain a bytes field.
Source: herodevs.com, github.com
How do I fix CVE-2026-104015?
Move to 2.18.12, 2.21.8 or 2.22.4, the listed fixed versions for the 2.x lines. The facts name no fixed 3.x release, so no 3.x upgrade target is given.
Source: herodevs.com, github.com
Related
- CVE-2026-110879jackson-databind: PolymorphicTypeValidator bypass via generic type arguments and array element types allows arbitrary class instantiation…
- CVE-2026-68494jackson-core: Async parser maxNumberLength bypass via chunked digit accumulation (incomplete fix for CVE-2026-18401 / GHSA-72hv-8253-57qq)
- CVE-2026-104017Unbounded byte[] allocation from Protobuf bytes length prefix in jackson-dataformat-protobuf
- CVE-2026-106554jackson-dataformat-cbor: quadratic-time TagList growth on unbounded stacked tags (CPU/GC DoS, PoC)
- CVE-2026-110747jackson-dataformat-protobuf: integer overflow in ProtobufParser._readStringKey() allows OutOfMemoryError from an 8-byte payload
- CVE-2026-104895jackson-dataformat-smile: unbounded eager byte[] allocation for raw binary in the async parser allows OutOfMemoryError denial of service
No corrections so far. Something wrong on this page? Report an error.