CVE-2026-104635Uncontrolled recursion in elixir-protobuf/protobuf JSON decoding of self-referential…
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.
What to do
Red Hat has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | protobuf | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | protobuf-compiler | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | protobuf-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | protobuf-lite | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | protobuf-lite-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | python3-protobuf | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | protobuf | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | protobuf-compiler | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | protobuf-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | protobuf-lite | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | protobuf-lite-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | python3-protobuf | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | protobuf | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | protobuf-compiler | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | protobuf-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | protobuf-lite | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | protobuf-lite-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | python3-protobuf | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | protobuf | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | protobuf-compiler | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | protobuf-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | protobuf-emacs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | protobuf-emacs-el | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | protobuf-java | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | protobuf-javadoc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | protobuf-lite | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | protobuf-lite-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | protobuf-lite-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | protobuf-python | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | protobuf-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | protobuf-vim | Fix pending Fix deferred |
What the vendor says
As published in the CVE record by EEF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- elixir-protobuf protobuf: affected: 0.8.0 to before 0.17.1; fixed in
0.17.1 - elixir-protobuf protobuf: affected: b0a1d4eaffaf50012fa71a8e931a47cf252d0370 to before e9432ad1c4099511905353cebcececa3a1f7c3ff
Workaround: Reject JSON documents whose nesting depth exceeds a fixed bound at the web or middleware layer before passing them to the decoder. No decoder option limits recursion for user-defined message types, so the check must happen before Protobuf.JSON.decode/3, Protobuf.JSON.decode!/3, or Protobuf.JSON.from_decoded/3 is called.
Vendor advisories:
- https://github.com/elixir-protobuf/protobuf/security/advisories/GHSA-m497-c2h9-rvw6 (vendor-advisory)
- https://github.com/elixir-protobuf/protobuf/commit/e9432ad1c4099511905353cebcececa3a1f7c3… (patch)
References
- https://github.com/elixir-protobuf/protobuf/security/advisories/GHSA-m497-c2h9-rvw6
- https://cna.erlef.org/cves/CVE-2026-104635.html
- https://osv.dev/vulnerability/EEF-CVE-2026-104635
- https://github.com/elixir-protobuf/protobuf/commit/b0a1d4eaffaf50012fa71a8e931a47cf252d0370
- https://github.com/elixir-protobuf/protobuf/commit/e9432ad1c4099511905353cebcececa3a1f7c3ff
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.