Skip to main content

elixir-protobuf EUVDEUVD-2026-95562

| CVE-2026-104635 HIGH
Uncontrolled Recursion (CWE-674)
2026-10-09 EEF
8.2
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

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

  1. Access
    Identify endpoint decoding JSON into cyclic protobuf schema
  2. Delivery
    Craft deeply nested JSON document
  3. Exploit
    Submit payload to Protobuf.JSON.decode
  4. Execution
    Uncontrolled recursion in decode_singular embedded clause
  5. Impact
    Memory exhaustion crashes decoding process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

Exploitable only when an application decodes attacker-supplied JSON via Protobuf.JSON.decode/3, decode!/3, or from_decoded/3 into a Protobuf schema that contains a self-referential or cyclic (recursive) message type; the embedded-message clause of decode_singular/3 recurses without incrementing the depth counter, and the recursion_limit option provides no protection because the depth guard (increase_depth_and_maybe_throw/1) only covers Google.Protobuf.ListValue and Google.Protobuf.Struct. LIMITING FACTORS: applications whose message types are not self-referential/cyclic are not affected at all (reflected as AT:P in the CVSS 4.0 vector); exploitation is unauthenticated and needs no user interaction, but impact is confined to crashing the decoding process (availability only - no confidentiality or integrity impact) on protobuf versions 0.8.0 onward.

Impact

This is a genuine denial-of-service exposure, but one whose real-world priority is bounded by preconditions rather than its 8.2 CVSS 4.0 score. The vendor-supplied vector (CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N) correctly describes a network-reachable, unauthenticated flaw with no confidentiality or integrity impact and high availability impact - consistent with the CWE-674 uncontrolled-recursion description. The critical nuance is the AT:P (attack requirement 'present') metric, which aligns with the description's statement that only schemas containing a self-referential or cyclic message type are affected; applications without such message types are not exploitable at all, so the practical attack surface is far narrower than AV:N/PR:N alone implies. No EPSS score was provided, there is no CISA KEV listing, and no public proof-of-concept is referenced - the only exploitation-relevant artifact is the vendor fix commit. Signals are therefore internally consistent (all point to availability-only DoS) and none conflict, but the absence of EPSS/KEV/POC data means exploitation likelihood cannot be quantified from the input. Treat as a prompt patch-management item for affected Elixir services rather than an emergency: high theoretical severity, but real risk gated by a non-default schema condition and limited to process crash.

Exploit ScenarioDerived

An attacker identifies an Elixir service that accepts JSON and decodes it with Protobuf.JSON.decode/3 (or decode!/3 / from_decoded/3) into a message type that is self-referential or cyclic. They submit a single deeply nested JSON document over the network, unauthenticated, driving recursion into the embedded-message decode path until the decoding process exhausts stack and heap memory and crashes. No public exploit is referenced, but the attack requires only a crafted payload and low complexity.

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

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

Alert me

AnalysisAIv1 – Oct 09, 2026

Memory-exhaustion denial of service in the elixir-protobuf library (protobuf) from 0.8.0 onward allows an unauthenticated remote attacker to crash an Elixir decoding process by supplying a deeply nested JSON document through Protobuf.JSON.decode/3, decode!/3, or from_decoded/3 when the target schema contains a self-referential or cyclic message type. Because the embedded-message clause of decode_singular/3 recurses once per nesting level without touching the decoder's depth counter, the recursion_limit option offers no protection and each level consumes a stack frame plus heap objects until the process runs out of memory; confidentiality and integrity are unaffected, only availability. Exploitation is unauthenticated and requires no user interaction, but is limited to applications that decode untrusted JSON into recursive message definitions, and no public exploit code has been identified at time of analysis (EPSS data not provided).

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - the corrected code is in commit https://github.com/elixir-protobuf/protobuf/commit/b0a1d4eaffaf50012fa71a8e931a47cf252d0370, so operators should upgrade to the first tagged release of the protobuf package that contains it and track the advisory https://github.com/elixir-protobuf/protobuf/security/advisories/GHSA-m497-c2h9-rvw6 for the exact version number rather than guessing. Where upgrading is not immediately possible, the most effective compensating control is to reject oversized/deeply nested JSON before it reaches the decoder - add an ingress depth and size check (walk the parsed map, or cap payload byte size at the HTTP/Plug/Cowboy layer) and drop anything exceeding a nesting depth your schemas legitimately need, accepting that very deep but legitimate payloads will be refused. Do not rely on the recursion_limit option: it has no effect on user-defined message types because the depth guard only covers Google.Protobuf.ListValue and Google.Protobuf.Struct. Running the decode in a supervised process with a hard memory limit converts the crash into a contained, restartable failure but does not prevent the attacker-triggered restart loop; avoiding decode of untrusted JSON into recursive/cyclic schemas, or restructuring such schemas to be non-recursive where the wire format permits, eliminates the exposure entirely.

Affected VersionsENISA

Protobuf b0a1d4eaffaf50012fa71a8e931a47cf252d0370 <*
Protobuf 0.8.0 <*

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

The root cause is CWE-674 (Uncontrolled Recursion) in lib/protobuf/json/decode.ex, the JSON-to-struct decoding path of the elixir-protobuf library (a Pure-Elixir Protocol Buffers implementation for the BEAM/Erlang VM, commonly paired with Jason for JSON parsing). The decoder is supposed to bound nesting via a depth counter and the user-facing recursion_limit option, but that guard (increase_depth_and_maybe_throw/1) is only invoked in the Google.Protobuf.ListValue and Google.Protobuf.Struct clauses. The general embedded-message clause of decode_singular/3 instead calls internal_from_json_data/3 directly for each nested JSON object, so the depth counter is never incremented on user-defined message types. An attacker who controls the JSON body can therefore nest objects arbitrarily deep; each level allocates a stack frame and heap structures, and once the document is deep enough the decoding process exhausts memory and terminates. The fix commit b0a1d4eaffaf50012fa71a8e931a47cf252d0370 also touches lib/protobuf/dsl.ex and lib/protobuf/json.ex (adding reverse field-name mappings and the decode/from_decoded API surface), indicating the patch restructures the DSL metadata and decoder entry points alongside the recursion handling. The vulnerability is confined to the decoding direction; encoding is not implicated.

Know when Protobuf 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 (EEF) PRIMARY 8.2 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 5.9 MEDIUM

Network-reachable, unauthenticated, no user interaction; AC:H because exploitation requires the target to use a cyclic message schema; availability-only impact (A:H), no C/I.

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

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Uncontrolled Recursion vulnerability in Protobuf.JSON.Decode in elixir-protobuf protobuf allows an unauthenticated remote attacker to crash the decoding process via a deeply nested JSON document. Any application that decodes attacker-supplied JSON with Protobuf.JSON.decode/3, Protobuf.JSON.decode!/3, or Protobuf.JSON.from_decoded/3 into a schema that contains a self-referential or cyclic message type is affected.

In lib/protobuf/json/decode.ex, the embedded-message clause of decode_singular/3 recurses into internal_from_json_data/3 once per nesting level without incrementing or checking the decoder's depth counter. The depth guard increase_depth_and_maybe_throw/1 covers only the Google.Protobuf.ListValue and Google.Protobuf.Struct clauses, so the recursion_limit option has no effect on user-defined message types. Each nesting level allocates a stack frame and heap objects, and a sufficiently deep document exhausts the memory of the decoding process. Confidentiality and integrity are not affected.

This issue affects protobuf: from 0.8.0 onward.

Technical POC Analysis

CWE-674 (Uncontrolled Recursion).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

The elixir-protobuf library (versions 0.8.0 and later) contains a memory-exhaustion vulnerability that allows an attacker to crash Elixir services by sending deeply nested JSON when the target schema includes recursive message types. Organizations using this library to decode untrusted JSON in such configurations face potential service outages, though data confidentiality and integrity remain unaffected. With no vendor-released patch identified at this time, leadership should prioritize identifying exposed systems and applying interim mitigations to maintain availability.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: implement strict JSON depth limits before decoding (e.g., reject deeply nested payloads); avoid decoding untrusted JSON into recursive message schemas; isolate decoding processes with memory limits; use a WAF to block excessively nested JSON; monitor for memory exhaustion and process crashes.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Low
de facto protobuf library for Elixir, but niche language ecosystem
Data Quality
5 sources
Confidence: Medium

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 0.4%
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
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.

Vendor StatusVendor

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