KeygraphLabs · CVE MCP

CVE-2026-104635 · EEF

Uncontrolled recursion in elixir-protobuf/protobuf JSON decoding of self-referential messages

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.

Published 2026-10-09, last changed 2026-10-15. Weakness: CWE-674.

CVSS
8.2
high, from the CNA
EPSS
0.50%
percentile 44.5%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: protobuf 0.17.1 (Hex). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in elixir-protobuf/protobuf by b0a1d4eaff, e9432ad1c4, 91c20c8fb2. Functions changed by the fix: __reverse_mapping__, encode, decode!, decode, from_decoded, load_jason, from_json_data, decode_regular_fields, decode_oneof_fields, field_value, decode_value, decode_map. Regression tests: test/protobuf/dsl_test.exs, test/protobuf/json/decode_test.exs, test/protobuf/json/encode_test.exs, test/protobuf/json_test.exs. Confidence: verified (a record names this commit as the fix, and it changed these functions).

Timeline

2026-10-09Published
2026-10-09Package advisory EEF-CVE-2026-104635
2026-10-15Record last changed
2026-11-30EPSS when our history starts: 0.67%
2026-12-05Code-level analysis added

Affected packages

AdvisoryPackageFixed in
EEF-CVE-2026-104635protobuf (Hex)0.17.1

Also known as: EEF-CVE-2026-104635

Credited: Jonatan Männchen / EEF (coordinator), Daniel Coles (finder), Andrea Leopardi (remediation developer), Daniel Coles (reporter)

Related

CVEPublishedCVSSSummary
CVE-2026-544512026-09-178.2Elixir protobuf: Unbounded recursion depth in embedded-message decoding
CVE-2026-1176422026-11-246.9binary_to_term Stack Exhaustion via Nested Funs in NEW_FUN_EXT and EXPORT_EXT Aborts the VM
CVE-2026-656282026-10-265.9Infinite recursion (CPU denial-of-service) in JOSE.JWK.shared_secret/2 on mismatched key types
CVE-2026-782282026-08-305.9Unbounded handle_error recursion enables denial of service in AshOban triggers
CVE-2026-757582026-08-285.9Unbounded recursion between Inspect.List charlist rendering and List.to_string/1 error path in Elixir
CVE-2026-582272026-07-277.5TLS/DTLS denial of service via unbounded recursion on cross-signed peer certificate chain
CVE-2026-548882026-06-296.9Uncontrolled recursion over deeply nested Markdown crashes the BEAM in mdex

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2026-104635, or call /api/v1/vulnerabilities/CVE-2026-104635. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org