{"id":"UBUNTU-CVE-2026-104635","details":"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.","modified":"2026-10-14T03:22:47.582244328Z","published":"2026-10-13T00:00:00Z","upstream":["CVE-2026-104635"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-104635"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-104635"},{"type":"REPORT","url":"https://cna.erlef.org/cves/CVE-2026-104635.html"},{"type":"REPORT","url":"https://github.com/elixir-protobuf/protobuf/commit/b0a1d4eaffaf50012fa71a8e931a47cf252d0370"},{"type":"REPORT","url":"https://github.com/elixir-protobuf/protobuf/commit/e9432ad1c4099511905353cebcececa3a1f7c3ff"},{"type":"REPORT","url":"https://github.com/elixir-protobuf/protobuf/security/advisories/GHSA-m497-c2h9-rvw6"},{"type":"REPORT","url":"https://osv.dev/vulnerability/EEF-CVE-2026-104635"}],"affected":[{"package":{"name":"protobuf","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/protobuf?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.1-3ubuntu2","2.4.1-3ubuntu3","2.4.1-3ubuntu4","2.5.0-5ubuntu2","2.5.0-7ubuntu1","2.5.0-8ubuntu1","2.5.0-9ubuntu1","2.5.0-9ubuntu1+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libprotobuf-java","binary_version":"2.5.0-9ubuntu1+esm1"},{"binary_version":"2.5.0-9ubuntu1+esm1","binary_name":"libprotobuf-lite8"},{"binary_name":"libprotobuf8","binary_version":"2.5.0-9ubuntu1+esm1"},{"binary_version":"2.5.0-9ubuntu1+esm1","binary_name":"libprotoc8"},{"binary_version":"2.5.0-9ubuntu1+esm1","binary_name":"protobuf-compiler"},{"binary_name":"python-protobuf","binary_version":"2.5.0-9ubuntu1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-104635.json"}},{"package":{"name":"protobuf","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/protobuf?arch=source&distro=esm-infra%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.1-1.2","2.6.1-1.3","2.6.1-1.3ubuntu0.1~esm1","2.6.1-1.3ubuntu0.1~esm2","2.6.1-1.3ubuntu0.1~esm4"],"ecosystem_specific":{"binaries":[{"binary_name":"libprotobuf-java","binary_version":"2.6.1-1.3ubuntu0.1~esm4"},{"binary_name":"libprotobuf-lite9v5","binary_version":"2.6.1-1.3ubuntu0.1~esm4"},{"binary_name":"libprotobuf9v5","binary_version":"2.6.1-1.3ubuntu0.1~esm4"},{"binary_name":"libprotoc9v5","binary_version":"2.6.1-1.3ubuntu0.1~esm4"},{"binary_name":"protobuf-compiler","binary_version":"2.6.1-1.3ubuntu0.1~esm4"},{"binary_version":"2.6.1-1.3ubuntu0.1~esm4","binary_name":"python-protobuf"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-104635.json"}},{"package":{"name":"protobuf","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/protobuf?arch=source&distro=esm-infra%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.0-9ubuntu5","3.0.0-9ubuntu6","3.0.0-9.1ubuntu1","3.0.0-9.1ubuntu1.1","3.0.0-9.1ubuntu1.1+esm3","3.0.0-9.1ubuntu1.1+esm4"],"ecosystem_specific":{"binaries":[{"binary_version":"3.0.0-9.1ubuntu1.1+esm4","binary_name":"libprotobuf-java"},{"binary_name":"libprotobuf-lite10","binary_version":"3.0.0-9.1ubuntu1.1+esm4"},{"binary_name":"libprotobuf10","binary_version":"3.0.0-9.1ubuntu1.1+esm4"},{"binary_name":"libprotoc10","binary_version":"3.0.0-9.1ubuntu1.1+esm4"},{"binary_name":"protobuf-compiler","binary_version":"3.0.0-9.1ubuntu1.1+esm4"},{"binary_name":"python-protobuf","binary_version":"3.0.0-9.1ubuntu1.1+esm4"},{"binary_name":"python3-protobuf","binary_version":"3.0.0-9.1ubuntu1.1+esm4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-104635.json"}},{"package":{"name":"protobuf","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/protobuf?arch=source&distro=esm-infra%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.6.1.3-2","3.6.1.3-2ubuntu1","3.6.1.3-2ubuntu3","3.6.1.3-2ubuntu4","3.6.1.3-2ubuntu5","3.6.1.3-2ubuntu5.2","3.6.1.3-2ubuntu5.2+esm2","3.6.1.3-2ubuntu5.2+esm3"],"ecosystem_specific":{"binaries":[{"binary_name":"libprotobuf-java","binary_version":"3.6.1.3-2ubuntu5.2+esm3"},{"binary_name":"libprotobuf-lite17","binary_version":"3.6.1.3-2ubuntu5.2+esm3"},{"binary_version":"3.6.1.3-2ubuntu5.2+esm3","binary_name":"libprotobuf17"},{"binary_name":"libprotoc17","binary_version":"3.6.1.3-2ubuntu5.2+esm3"},{"binary_name":"protobuf-compiler","binary_version":"3.6.1.3-2ubuntu5.2+esm3"},{"binary_version":"3.6.1.3-2ubuntu5.2+esm3","binary_name":"python-protobuf"},{"binary_name":"python3-protobuf","binary_version":"3.6.1.3-2ubuntu5.2+esm3"},{"binary_name":"ruby-google-protobuf","binary_version":"3.6.1.3-2ubuntu5.2+esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-104635.json"}},{"package":{"name":"protobuf","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/protobuf?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.12.4-1ubuntu3","3.12.4-1ubuntu5","3.12.4-1ubuntu6","3.12.4-1ubuntu7","3.12.4-1ubuntu7.22.04.1","3.12.4-1ubuntu7.22.04.2","3.12.4-1ubuntu7.22.04.4","3.12.4-1ubuntu7.22.04.6"],"ecosystem_specific":{"binaries":[{"binary_version":"3.12.4-1ubuntu7.22.04.6","binary_name":"elpa-protobuf-mode"},{"binary_name":"libprotobuf-java","binary_version":"3.12.4-1ubuntu7.22.04.6"},{"binary_name":"libprotobuf-lite23","binary_version":"3.12.4-1ubuntu7.22.04.6"},{"binary_version":"3.12.4-1ubuntu7.22.04.6","binary_name":"libprotobuf23"},{"binary_version":"3.12.4-1ubuntu7.22.04.6","binary_name":"libprotoc23"},{"binary_version":"3.12.4-1ubuntu7.22.04.6","binary_name":"protobuf-compiler"},{"binary_version":"3.12.4-1ubuntu7.22.04.6","binary_name":"python3-protobuf"},{"binary_name":"ruby-google-protobuf","binary_version":"3.12.4-1ubuntu7.22.04.6"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-104635.json"}},{"package":{"name":"protobuf","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/protobuf?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.21.12-7ubuntu1","3.21.12-8ubuntu1","3.21.12-8ubuntu5","3.21.12-8.2","3.21.12-8.2build1","3.21.12-8.2ubuntu0.1","3.21.12-8.2ubuntu0.2","3.21.12-8.2ubuntu0.3"],"ecosystem_specific":{"binaries":[{"binary_name":"elpa-protobuf-mode","binary_version":"3.21.12-8.2ubuntu0.3"},{"binary_name":"libprotobuf-java","binary_version":"3.21.12-8.2ubuntu0.3"},{"binary_name":"libprotobuf-lite32t64","binary_version":"3.21.12-8.2ubuntu0.3"},{"binary_name":"libprotobuf32t64","binary_version":"3.21.12-8.2ubuntu0.3"},{"binary_name":"libprotoc32t64","binary_version":"3.21.12-8.2ubuntu0.3"},{"binary_version":"3.21.12-8.2ubuntu0.3","binary_name":"php-google-protobuf"},{"binary_version":"3.21.12-8.2ubuntu0.3","binary_name":"protobuf-compiler"},{"binary_version":"3.21.12-8.2ubuntu0.3","binary_name":"python3-protobuf"},{"binary_name":"ruby-google-protobuf","binary_version":"3.21.12-8.2ubuntu0.3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-104635.json"}},{"package":{"name":"protobuf","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/protobuf?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.21.12-11ubuntu3","3.21.12-14","3.21.12-14build1","3.21.12-15","3.21.12-15ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"elpa-protobuf-mode","binary_version":"3.21.12-15ubuntu1"},{"binary_name":"libprotobuf-java","binary_version":"3.21.12-15ubuntu1"},{"binary_name":"libprotobuf-lite32t64","binary_version":"3.21.12-15ubuntu1"},{"binary_version":"3.21.12-15ubuntu1","binary_name":"libprotobuf32t64"},{"binary_name":"libprotoc32t64","binary_version":"3.21.12-15ubuntu1"},{"binary_name":"php-google-protobuf","binary_version":"3.21.12-15ubuntu1"},{"binary_version":"3.21.12-15ubuntu1","binary_name":"protobuf-compiler"},{"binary_name":"python3-protobuf","binary_version":"3.21.12-15ubuntu1"},{"binary_version":"3.21.12-15ubuntu1","binary_name":"ruby-google-protobuf"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-104635.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"},{"type":"Ubuntu","score":"medium"}]}