CVE-2026-104015: Unbounded byte[] allocation from Avro bytes length prefix in jackson-dataformat-avro

Published Dec 1, 2026
·
Updated

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 Software

0 affected components

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade com.fasterxml.jackson.dataformat:jackson-dataformat-avro to a version that resolves this vulnerability.

    Fixed in 2.18.12
  2. Upgrade

    Upgrade com.fasterxml.jackson.dataformat:jackson-dataformat-avro to a version that resolves this vulnerability.

    Fixed in 2.21.8
  3. Upgrade

    Upgrade com.fasterxml.jackson.dataformat:jackson-dataformat-avro to a version that resolves this vulnerability.

    Fixed in 2.22.4
  4. Upgrade

    Upgrade tools.jackson.dataformat:jackson-dataformat-avro to a version that resolves this vulnerability.

    Fixed in 3.1.8
  5. Upgrade

    Upgrade tools.jackson.dataformat:jackson-dataformat-avro to a version that resolves this vulnerability.

    Fixed in 3.2.4

Event History

Dec 1, 2026
CVE Published
via MITRE·03:25 PM
Data Sourced
via MITRE·03:25 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are realistically exposed to this denial-of-service issue?

Applications are exposed if they use an affected jackson-dataformat-avro version to decode Avro bytes values or decimal fields from attacker-controlled or otherwise untrusted input. Both the default native decoder and the Apache-decoder variant are affected.

2

What does an attacker need to trigger the issue?

An attacker needs to supply an Avro payload containing a crafted bytes length prefix. No authentication or user interaction is required, and a payload of approximately 5 bytes can request an allocation of up to about 2 GB before data is read.

3

Are decimal values affected, or only Avro bytes fields?

Decimal fields are also affected when they are decoded through decodeBytesDecimal, because that path uses the same vulnerable byte-array allocation behavior.

4

Which versions contain the fix?

The issue is fixed in versions 2.18.12, 2.21.8, 2.22.4, 3.1.8, and 3.2.4. Affected version ranges include 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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203