Skip to main content
EPSS 0.4%top 69%

CVE-2026-104635: CWE-674 Uncontrolled Recursion in elixir-protobuf protobuf

0
High
VulnerabilityCVE-2026-104635cvecve-2026-104635cwe-674
Published: 10/09/2026 (10/09/2026, 08:17:52 UTC)
Source: CVE Database V5
Vendor/Project: elixir-protobuf
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

elixir-protobuf

protobuf

Affected versions
>=0.8.0 <0.17.1

elixir-protobuf

protobuf

protobuf
pkg:hex/protobuf
Affected versions
>=0.8.0 <0.17.1
GitHub Actionsmore threats →cve
elixir-protobuf/protobuf
pkg:github/elixir-protobuf/protobuf
CPE configurations
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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/09/2026, 09:03:20 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses