CVE-2026-104635: CWE-674 Uncontrolled Recursion in elixir-protobuf protobuf
Description
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 before 0.17.1.
CVSS v4.0
Score 8.2high
Affected software
elixir-protobuf
protobuf
elixir-protobuf
protobuf
cpe:2.3:a:elixir-protobuf:protobuf:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the Protobuf.JSON.Decode module of elixir-protobuf, specifically in the decode_singular/3 function's embedded-message clause. This clause recurses into internal_from_json_data/3 for each nesting level without incrementing or checking the decoder's depth counter. The existing depth guard only applies to Google.Protobuf.ListValue and Google.Protobuf.Struct types, so user-defined cyclic message types are not protected by the recursion limit. Consequently, an attacker can cause uncontrolled recursion by crafting deeply nested JSON documents that decode into self-referential or cyclic schemas, leading to stack and heap exhaustion and crashing the decoding process. The issue affects all protobuf versions from 0.8.0 onward.
Potential Impact
An unauthenticated remote attacker can cause a denial of service by crashing the decoding process through a crafted deeply nested JSON document. The vulnerability does not affect confidentiality or integrity of data but can disrupt availability of applications using the affected protobuf JSON decoding functions with vulnerable versions.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid decoding untrusted JSON documents that may contain deeply nested or cyclic message structures using elixir-protobuf protobuf versions 0.8.0 and later.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-10-08T14:45:01.406Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ac8aa8d2cdf04f6564066b9
Added to database: 10/09/2026, 08:49:17 UTC
Last enriched: 10/09/2026, 09:03:20 UTC
Last updated: 10/09/2026, 18:57:32 UTC
Views: 16
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.