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.
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-09 | Published |
| 2026-10-09 | Package advisory EEF-CVE-2026-104635 |
| 2026-10-15 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 0.67% |
| 2026-12-05 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| EEF-CVE-2026-104635 | protobuf (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
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-54451 | 2026-09-17 | 8.2 | Elixir protobuf: Unbounded recursion depth in embedded-message decoding |
| CVE-2026-117642 | 2026-11-24 | 6.9 | binary_to_term Stack Exhaustion via Nested Funs in NEW_FUN_EXT and EXPORT_EXT Aborts the VM |
| CVE-2026-65628 | 2026-10-26 | 5.9 | Infinite recursion (CPU denial-of-service) in JOSE.JWK.shared_secret/2 on mismatched key types |
| CVE-2026-78228 | 2026-08-30 | 5.9 | Unbounded handle_error recursion enables denial of service in AshOban triggers |
| CVE-2026-75758 | 2026-08-28 | 5.9 | Unbounded recursion between Inspect.List charlist rendering and List.to_string/1 error path in Elixir |
| CVE-2026-58227 | 2026-07-27 | 7.5 | TLS/DTLS denial of service via unbounded recursion on cross-signed peer certificate chain |
| CVE-2026-54888 | 2026-06-29 | 6.9 | Uncontrolled 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.