CVE-2026-117642
binary_to_term Stack Exhaustion via Nested Funs in NEW_FUN_EXT and EXPORT_EXT Aborts the VM
Mitigation
- Upgrade OTP to 30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076 or later.
- Vendor workaround: * 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.
- * If distribution is exposed to untrusted networks, configure it to use TLS with client certificate verification.
- * 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.
Who should check
- Anyone running Erlang OTP >= 6.0, < *
- Anyone running Erlang OTP >= 17.0, < *
- Anyone running Erlang OTP >= 84adefa331c4159d432d22840663c38f155cd4c1, < 30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076
Vulnerability facts
- Affected
- Erlang OTP >= 6.0, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 84adefa331c4159d432d22840663c38f155cd4c1, < 30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076
- Fixed in
- Erlang OTP 30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 6.9 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Attack requirements: None
- 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
- EPSS
- 0.34% chance of exploitation in 30 days (percentile 20, 2026-11-28)
- CWE
- CWE-674
- Modified
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. The 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. This 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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-117642. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-117642.md Affected: Erlang OTP >= 6.0, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 84adefa331c4159d432d22840663c38f155cd4c1, < 30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076 Fixed in: Erlang OTP 30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076 Steps: 1. Search this machine and project for Erlang OTP: 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.
References
FAQ
Is CVE-2026-117642 being exploited?
There is no confirmed exploitation: CVE-2026-117642 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-28).
How serious is CVE-2026-117642?
Medium: CVSS 6.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-117642?
Erlang OTP >= 6.0, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 84adefa331c4159d432d22840663c38f155cd4c1, < 30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076.
Is there a fix for CVE-2026-117642?
Yes. Fixed in Erlang OTP 30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076. Upgrade OTP to 30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076 or later. Vendor workaround: * 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. * If distribution is exposed to untrusted networks, configure it to use TLS with client certificate verification. * 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.
How do I check if I'm affected by CVE-2026-117642?
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.
More erlang vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 5.9 | CVE-2026-115747 AArch64 JIT register-cache bug allows VM denial of service via XML | Erlang | PoCEPSS 27% | |
| MEDIUM 5.7 | CVE-2026-125658 Use after free in erts file name normalization on macOS | Erlang | PoCEPSS 23% | |
| CRITICAL 9.1 | CVE-2026-124286 TLS 1.2 Client Completes Handshake Without a Server Certificate | Erlang | EPSS 14% | |
| MEDIUM 6.9 | CVE-2026-120961 binary_to_term Heap Overrun via FLOAT_EXT Without Terminating Zero Byte May Abort the VM | Erlang | EPSS 13% | |
| HIGH 7.0 | CVE-2026-116293 binary_to_term Heap Overrun via NEWER_REFERENCE_EXT with Zero ID Words Aborts the VM | Erlang | EPSS 11% |