# CVE-2026-104635: Uncontrolled recursion in elixir-protobuf/protobuf JSON decoding of self-referential messages

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.67% (percentile 47, 2026-11-26)
- **CWE:** CWE-674
- **Published:** 2026-10-09T08:17:52.372Z
- **Modified:** 2026-11-19T08:21:55.372Z

## Who should check

- Anyone running elixir-protobuf protobuf \>= 0.8.0, \< 0.17.1
- Anyone running elixir-protobuf protobuf \>= b0a1d4eaffaf50012fa71a8e931a47cf252d0370, \< e9432ad1c4099511905353cebcececa3a1f7c3ff

## 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.

## Affected and fixed versions

- elixir-protobuf protobuf: \>= 0.8.0, \< 0.17.1 (cvelist)
- elixir-protobuf protobuf: \>= b0a1d4eaffaf50012fa71a8e931a47cf252d0370, \< e9432ad1c4099511905353cebcececa3a1f7c3ff (cvelist)

## Mitigation

- Upgrade protobuf to 0.17.1 or later.
- Vendor 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-104635. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-104635.md
Affected: elixir-protobuf protobuf >= 0.8.0, < 0.17.1; elixir-protobuf protobuf >= b0a1d4eaffaf50012fa71a8e931a47cf252d0370, < e9432ad1c4099511905353cebcececa3a1f7c3ff
Fixed in: elixir-protobuf protobuf 0.17.1

Steps:
1. Search this machine and project for elixir-protobuf protobuf: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-104635 being exploited?

There is no confirmed exploitation: CVE-2026-104635 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.67% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-104635?

High: CVSS 8.2 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-104635?

elixir-protobuf protobuf \>= 0.8.0, \< 0.17.1; elixir-protobuf protobuf \>= b0a1d4eaffaf50012fa71a8e931a47cf252d0370, \< e9432ad1c4099511905353cebcececa3a1f7c3ff.

### Is there a fix for CVE-2026-104635?

Yes. Fixed in elixir-protobuf protobuf 0.17.1. Upgrade protobuf to 0.17.1 or later. Vendor 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.

### How do I check if I'm affected by CVE-2026-104635?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/elixir-protobuf/protobuf/security/advisories/GHSA-m497-c2h9-rvw6>
- patch: <https://github.com/elixir-protobuf/protobuf/commit/b0a1d4eaffaf50012fa71a8e931a47cf252d0370>
- patch: <https://github.com/elixir-protobuf/protobuf/commit/e9432ad1c4099511905353cebcececa3a1f7c3ff>
- exploit: <https://osv.dev/vulnerability/EEF-CVE-2026-104635>
- other: <https://cna.erlef.org/cves/CVE-2026-104635.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-104635>

HTML: <https://flawdb.com/CVE-2026-104635> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-104635>
