Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint decoding JSON into cyclic protobuf schema
-
DeliveryCraft deeply nested JSON document
-
ExploitSubmit payload to Protobuf.JSON.decode
-
ExecutionUncontrolled recursion in decode_singular embedded clause
-
ImpactMemory 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
The JsonToBinaryStream() function is part of the protocol buffers C++ implementation and is used to parse JSON from a st
protobuf allows remote authenticated attackers to cause a heap-based buffer overflow. Rated high severity (CVSS 8.8), th
Any project that parses untrusted Protocol Buffers data containing an arbitrary number of nested groups / series of SGRO
An issue was discovered in GoGo Protobuf before 1.3.2. Rated high severity (CVSS 8.6), this vulnerability is remotely ex
A denial-of-service (DoS) vulnerability exists in google.protobuf.json_format.ParseDict() in Python, where the max_recur
Parsing invalid messages can panic. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authe
EUVD-2026-95562
NVD
CVE.org
EPSS
GitHub
Exploit-DB