Skip to main content

jackson-dataformat-avro CVE-2026-104015

| EUVDEUVD-2026-140305 HIGH
Memory Allocation with Excessive Size Value (CWE-789)
2026-12-01 HeroDevs
7.5
CVSS 3.1 · Vendor: HeroDevs
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach endpoint parsing untrusted Avro
  2. Delivery
    Send ~5-byte crafted bytes/decimal length prefix
  3. Exploit
    Parser allocates up to 2GB eagerly
  4. Execution
    OutOfMemoryError before data read
  5. Impact
    Denial of service via memory exhaustion

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
Exploitation Conditions

Exploitation requires the target application to deserialize attacker-controlled Avro data through jackson-dataformat-avro (AvroMapper.readValue) where the schema includes an Avro 'bytes' field or a 'decimal' logical-type field (decoded via decodeBytes/decodeBytesDecimal). It is reachable against DEFAULT configurations because AvroFactoryBuilder defaults to the native decoder (JacksonAvroParserImpl); the Apache-decoder variant (builderWithApacheDecoder(), ApacheAvroParserImpl) is equally affected and additionally bypasses Apache BinaryDecoder's own SystemLimit guard. Per CVSS (AV:N/AC:L/PR:N/UI:N) no authentication or user interaction is needed. The only real limiting factors are exposure-based: the service must accept Avro input from an untrusted source and the schema must contain a bytes/decimal field; the attacker controls the payload while the server owns the schema (the normal Avro trust boundary). Affected: com.fasterxml 2.9.0-2.18.11, 2.19.0-2.21.7, 2.22.0-2.22.3 and tools.jackson 3.0.0-3.1.7, 3.2.0-3.2.3. Updating to a fixed release is the remediation stated by the vendor.

Impact

This is a genuine but bounded-impact priority: a CWE-789 unbounded allocation reachable over the network with no authentication and low complexity (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H = 7.5), but the impact is availability-only (C:N/I:N) - no code execution or data exposure. The SSVC framework aligns with a serious-but-not-emergency posture: Exploitation=poc, Automatable=yes (a ~5-byte payload reliably forces the allocation, so it scales trivially), Technical Impact=partial (DoS, not total system takeover), and the vuln.today Decision label is 'this_week' rather than act_now/emergency. A public proof-of-concept is included and reportedly executed in the GHSA advisory (on 2.18.2 under -Xmx256m), so exploitability is demonstrated, but this is NOT in CISA KEV and no EPSS score was provided - there is no evidence of active in-the-wild exploitation. No signals conflict here: the network vector, the default-decoder reachability, and the attacker-controls-payload/server-controls-schema trust boundary described in the advisory are all mutually consistent. The main thing that gates real-world risk is not the CVSS metrics but exposure - only services that actually parse attacker-supplied Avro are affected. Treat as a high-severity DoS to patch promptly, not as a critical RCE.

Exploit ScenarioDerived

An attacker sends a tiny crafted Avro payload (roughly 5 bytes: just the zig-zag varint length prefix for a 'bytes' or decimal field declaring a length near Integer.MAX_VALUE, with no actual data) to a service that deserializes untrusted Avro via AvroMapper. The parser's decodeBytes()/decodeBytesDecimal() immediately executes new byte[len], allocating up to ~2 GB before reading any content, throwing OutOfMemoryError. A working PoC is demonstrated in the GHSA advisory; because the default native decoder is affected and exploitation is automatable, repeated or concurrent requests reliably exhaust memory. Attack vector is network with low complexity and no authentication.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

Memory-exhaustion denial of service in jackson-dataformat-avro: when AvroMapper deserializes an Avro 'bytes' field (or a 'decimal' field decoded through the same path), the zig-zag varint length prefix is trusted and a byte[] is allocated directly from it, so a roughly 5-byte payload declaring close to 2 GB triggers an OutOfMemoryError before any content is read. Every release from 2.9.0 through 2.22.3 on the com.fasterxml line and 3.0.0 through 3.2.3 on the tools.jackson line is affected in both the default native decoder and the Apache-decoder variant, and the CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5) confirms no authentication or user interaction is required, though the impact is availability-only. A public proof-of-concept exists and has been demonstrated to trigger the OutOfMemoryError on 2.18.2; vendor fixes are released in 2.18.12, 2.21.8, 2.22.4, 3.1.8 and 3.2.4, and no CISA KEV listing is recorded at time of analysis, so this is prioritized for remediation this week rather than treated as confirmed active exploitation.

RemediationAI

Upgrade to a fixed release, which is the remediation stated by the vendor: com.fasterxml.jackson.dataformat:jackson-dataformat-avro 2.18.12, 2.21.8 or 2.22.4 depending on your maintained branch, and tools.jackson.dataformat:jackson-dataformat-avro 3.1.8 or 3.2.4 for the 3.x line. The patch (https://github.com/FasterXML/jackson-dataformats-binary/pull/820, described in https://github.com/FasterXML/jackson-dataformats-binary/security/advisories/GHSA-gf9r-rhg2-fj5v) caps the eager allocation at LONGEST_NON_CHUNKED_BINARY_READ = 250,000 bytes and streams larger bytes and fixed values through a ByteArrayBuilder in chunk-sized reads, so truncated content is reported before a declared-length buffer is allocated; it applies to both JacksonAvroParserImpl and ApacheAvroParserImpl, so switching to the Apache decoder via builderWithApacheDecoder() is not a mitigation. Because the exposure, not a configuration switch, is what limits this issue, the practical interim measure is to stop feeding untrusted Avro payloads into AvroMapper.readValue for schemas containing bytes or decimal fields until the patched version is deployed; note that adding a large heap does not address the amplification described in the advisory, since the declared length can itself reach roughly 2 GB.

Affected VersionsENISA

jackson-dataformat-avro 2.22.0 ≤2.22.3
jackson-dataformat-avro 2.9.0 ≤2.18.11
jackson-dataformat-avro 2.19.0 ≤2.21.7
jackson-dataformat-avro 3.2.0 ≤3.2.3
jackson-dataformat-avro 3.0.0 ≤3.1.7

Affected Packages

euvd jackson_dataformat_avro no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Avro encodes a 'bytes' value as a zig-zag varint length prefix followed by that many raw octets. In jackson-dataformat-avro, JacksonAvroParserImpl.decodeBytes() (the default decoder selected by AvroFactoryBuilder) reads that prefix via decodeInt() and, after only a len <= 0 check, executes new byte[len] where len can be as large as Integer.MAX_VALUE, with no comparison against remaining input or any StreamReadConstraints limit; _read() only discovers the truncation afterwards. ApacheAvroParserImpl.decodeBytes() has the same sink and additionally sidesteps Apache BinaryDecoder.readBytes()'s own SystemLimit guard by calling readInt() and readFixed() and allocating the array itself. Decimal logical types inherit the flaw through decodeBytesDecimal(), because the floating-point length validation runs after the allocation. This is CWE-789 (memory allocation with excessive size, related to CWE-770), and the project already solved the identical problem in its CBOR sibling after CVE-2020-28491 by diverting lengths above LONGEST_NON_CHUNKED_BINARY to an incremental ByteArrayBuilder; that guard was never ported to the Avro module, and the same class of omission is distinct from the previously reported Smile/Protobuf advisory GHSA-ww35-763r-jg22. The trust boundary is the normal one for Avro: the server owns the schema, so the schema must contain a bytes or decimal field, but the attacker fully controls the encoded payload and can reach the sink in default configuration, making the flaw automatable (SSVC Automatable: yes) with partial technical impact. The upstream fix (PR #820) introduces LONGEST_NON_CHUNKED_BINARY_READ = 250_000 and routes longer declared lengths through _readBytes(), which streams content in chunk-sized reads into a ByteArrayBuilder, reports end-of-input before allocating a buffer of the declared size, and also adds an explicit null-input-stream error path in _read().

Know when Jackson Dataformat Avro gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (HeroDevs) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Remote, unauthenticated, low-complexity parsing of attacker Avro via the default decoder yields availability-only impact (memory exhaustion), so C:N/I:N/A:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (HeroDevs).

CVSS VectorVendor: HeroDevs

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A high-severity denial-of-service vulnerability in the widely used jackson-dataformat-avro library allows unauthenticated attackers to crash any service that deserializes Avro data by sending a tiny malicious payload. This affects both the 2.x and 3.x release lines, meaning a broad range of applications and microservices that rely on this library for data serialization are at risk. Leadership should prioritize remediation because an outage could disrupt business operations and customer-facing services, and a public proof-of-concept is available, increasing the likelihood of exploitation attempts.

Business Impact: High
Compensating Controls

If immediate patching is not possible, restrict deserialization of Avro data to trusted sources only, enforce strict input size limits at the application or network layer, and monitor for anomalous memory usage or OutOfMemoryError events; however, these are temporary measures until the vendor patch can be applied.

Threat Intelligence Overview

Prevalence
Medium
optional Jackson Avro module, used only where apps process Avro
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy