CVE-2026-104635
HIGH 8.2CVSS 4.0Uncontrolled 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
- 9 Oct 2026
- Last modified
- 25 Nov 2026
- Assigned by
- 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
- NVD status
- Deferred
- Weakness
- CWE-674
- Also known as
- EEF-CVE-2026-104635GHSA-m497-c2h9-rvw6
- Sources
- NVDJSONCVE ListJSONOSV EEF-CVE-2026-104635JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db (Secondary) | CVSS 4.0 | HIGH 8.2 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| CVE List | EEF | CVSS 4.0 | HIGH 8.2 | 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 |
| CVE List | CISA-ADP | SSVC | Exploitation: poc; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | https://repo.hex.pm | protobufcpe:2.3:a:elixir-protobuf:protobuf:*:*:*:*:*:*:*:* |
>= 0.8.0, < 0.17.1 | 0.17.1 |
| CVE List | https://github.com | elixir-protobuf/protobufcpe:2.3:a:elixir-protobuf:protobuf:*:*:*:*:*:*:*:* |
>= b0a1d4eaffaf50012fa71a8e931a47cf252d0370, < e9432ad1c4099511905353cebcececa3a1f7c3ff | e9432ad1c4099511905353cebcececa3a1f7c3ff |
| OSV | Hex | protobuf | >= 0.8.0, < 0.17.1 | 0.17.1 |
References
- https://cna.erlef.org/cves/CVE-2026-104635.html · related, WEB
- https://github.com/elixir-protobuf/protobuf/commit/b0a1d4eaffaf50012fa71a8e931a47cf252d0370 · related, WEB
- https://github.com/elixir-protobuf/protobuf/commit/e9432ad1c4099511905353cebcececa3a1f7c3ff · patch, FIX
- https://github.com/elixir-protobuf/protobuf/security/advisories/GHSA-m497-c2h9-rvw6 · related, vendor-advisory, ADVISORY
- https://osv.dev/vulnerability/EEF-CVE-2026-104635 · related
- https://hex.pm/packages/protobuf · PACKAGE
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 9 Oct 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 9 Oct 2026)
- 25 Nov 2026 20:10 UTC · CVE List: first stored (published 9 Oct 2026)