{"id":"CVE-2026-117642","aliases":[],"cve":{"records":[{"id":"CVE-2026-117642","source":"EEF","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-11-09T22:45:23.138Z","published":"2026-11-24T15:09:37.711Z","modified":"2026-11-24T15:09:37.711Z"}],"publishers":[{"name":"EEF","role":"CNA","organizationId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","modified":"2026-11-24T15:09:37.711Z"}],"references":[{"url":"https://github.com/erlang/otp/security/advisories/GHSA-8575-6vgw-5v3c","tags":["vendor-advisory","related"],"source":"EEF"},{"url":"https://cna.erlef.org/cves/CVE-2026-117642.html","tags":["related"],"source":"EEF"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-117642","tags":["related"],"source":"EEF"},{"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions","tags":["x_version-scheme"],"source":"EEF"},{"url":"https://github.com/erlang/otp/commit/30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076","tags":["patch"],"source":"EEF"}],"weaknesses":[{"id":"CWE-674","description":"CWE-674 Uncontrolled Recursion","source":"EEF"}],"applicability":[{"source":"EEF","statements":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","versionEndExcluding":"27.3.4.20","vulnerable":true},{"criteria":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","versionEndExcluding":"28.5.0.9","versionStartIncluding":"28.0","vulnerable":true},{"criteria":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","versionEndExcluding":"29.1.3","versionStartIncluding":"29.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}]}],"prioritization":[]},"title":"binary_to_term Stack Exhaustion via Nested Funs in NEW_FUN_EXT and EXPORT_EXT Aborts the VM","titleSource":"EEF","descriptionSource":"EEF","description":"Uncontrolled Recursion vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to binary_to_term/1,2 to abort the Erlang VM via a fun term with funs nested in its integer fields. dec_term in erts/emulator/beam/external.c decodes terms iteratively, except for the OldIndex and OldUniq fields of NEW_FUN_EXT and the Arity field of EXPORT_EXT. For these fields it calls itself, and it checks that the result is a small integer only after the call returns. An input that places another fun in such a field, nested to sufficient depth, recurses once per level, exhausts the stack of the scheduler thread and crashes the VM. The input must be large enough to reach that depth.\n\nThe abort takes down every process on the node. Supervision, try/catch and the safe option do not prevent it. enif_binary_to_term() and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only.\n\nThis issue affects OTP from OTP 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP 17.0, corresponding to erts before 6.0, is affected is unknown.","score":6.9,"severity":"medium","published":"2026-11-24T15:09:37.711Z","modified":"2026-11-24T15:09:37.711Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Erlang","name":"OTP","platforms":[],"versions":[{"version":"6.0","status":"affected","lessThan":"*","versionType":"otp","changes":[{"at":"15.2.7.15","status":"unaffected"},{"at":"16.4.0.8","status":"unaffected"},{"at":"17.1.2","status":"unaffected"}]}],"defaultStatus":"unknown","packageURL":"pkg:otp/erts?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git","cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-117642"},{"vendor":"Erlang","name":"OTP","platforms":[],"versions":[{"version":"17.0","status":"affected","lessThan":"*","versionType":"otp","changes":[{"at":"27.3.4.20","status":"unaffected"},{"at":"28.5.0.9","status":"unaffected"},{"at":"29.1.3","status":"unaffected"}]}],"defaultStatus":"unknown","packageURL":"pkg:software-id/erlang.org/otp","cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-117642"},{"vendor":"Erlang","name":"OTP","platforms":[],"versions":[{"version":"84adefa331c4159d432d22840663c38f155cd4c1","status":"affected","lessThan":"30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076","versionType":"git"},{"version":"30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076","status":"unaffected","lessThan":"*","versionType":"git"}],"defaultStatus":"unknown","packageURL":"pkg:github/erlang/otp","cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-117642"}],"remediation":[{"text":"* Do not call binary_to_term/1,2 on data from untrusted sources. The OTP Secure Coding Guidelines (DSG-011) recommend avoiding these functions altogether on untrusted data.\n* If distribution is exposed to untrusted networks, configure it to use TLS with client certificate verification.\n* Use alternative serialization formats (JSON, Protocol Buffers) for untrusted external input. Note: the [safe] option to binary_to_term/2 does NOT protect against this crash. It only restricts atom creation, not structural validation of binary encodings.","source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-117642"}],"references":["https://github.com/erlang/otp/security/advisories/GHSA-8575-6vgw-5v3c","https://cna.erlef.org/cves/CVE-2026-117642.html","https://osv.dev/vulnerability/EEF-CVE-2026-117642","https://www.erlang.org/doc/system/versions.html#order-of-versions","https://github.com/erlang/otp/commit/30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076"],"sources":[{"name":"CVE","id":"CVE-2026-117642","modified":"2026-11-24T15:09:37.711Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-117642"}],"assessments":[{"source":"EEF","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":6.9}],"sourceAffected":[],"observedAt":"2026-11-24T15:26:21.140Z","kev":{"status":"not-listed","checkedAt":"2026-11-28T20:55:32.118Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-24T15:35:32.199Z","attemptedAt":"2026-11-24T15:35:32.199Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-24T15:35:32.496Z","attemptedAt":"2026-11-24T15:35:32.496Z"},{"source":"EUVD","status":"no-result","checkedAt":"2026-11-24T15:35:32.259Z","attemptedAt":"2026-11-24T15:35:32.259Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-24T15:35:32.049Z","attemptedAt":"2026-11-24T15:35:32.049Z"}],"evidence":[{"source":"NVD","id":"CVE-2026-117642","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-117642","modified":"2026-11-24T15:17:13.267","score":6.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/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","checkedAt":"2026-11-24T15:35:32.199Z"}],"aiSummary":{"text":"Erlang OTP erts versions 6.0 to 15.2.7.14, 16.4.0.7, and 17.1.1 are vulnerable to a stack exhaustion vulnerability via nested funs in NEW_FUN_EXT and EXPORT_EXT, allowing an attacker controlling input to binary_to_term/1,2 to abort the Erlang VM. The issue affects OTP from 17.0 before 27.3.4.20, 28.5.0.9, and 29.1.3. Whether OTP before 17.0 is affected is unknown.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-24T17:31:21.732Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-117642"}]}}