Stack exhaustion in Erlang OTP binary_to_term aborts the VM
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 1 fixed, 4 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-674.
Summary
Erlang OTP from 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3 is affected. The external term format decoder recurses on the nested fun fields of NEW_FUN_EXT and EXPORT_EXT, which is uncontrolled recursion (CWE-674). A local attacker who controls the input to binary_to_term can nest a fun term deeply enough to exhaust the scheduler thread stack and abort the VM, which stops every process on the node. Supervision, try/catch and the safe option do not prevent the abort.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Erlang OTP 27.3.4.20, 28.5.0.9 and 29.1.3 are the fixed versions. Red Hat fixes Red Hat Hardened Images in RHSA-2026:103406. Red Hat OpenStack Platform 13 (Queens), 16.2, 17.1 and 18.0 are affected, with no plan available.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
Red Hat 1 advisory
- RHSA-2026:103406 Released 2026-11-24 · Red Hat rating ImportantRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images erlang27-27.3.4.20-0.1.hum1@aarch64, erlang27-27.3.4.20-0.1.hum1@s390x, erlang27-27.3.4.20-0.1.hum1@src +47
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenStack Platform 13 (Queens) | Affected | No fix yet: Fix deferred |
| Red Hat OpenStack Platform 16.2 | Affected | No fix yet: Fix deferred |
| Red Hat OpenStack Platform 17.1 | Affected | No fix yet: Fix deferred |
| Red Hat OpenStack Platform 18.0 | Affected | No fix yet: Fix deferred |
| Red Hat Hardened Images | Fixed | RHSA-2026:103406 |
Timeline
- 2026-11-24 Threatist record created from CVE-2026-117642
- 2026-11-25 Affected versions changed · Red Hat
- 2026-11-25 CVSS score added · Red Hat
- 2026-11-26 Fix available: RHSA-2026:103406 · Red Hat
- 2026-11-26 Fix available: Red Hat Hardened Images · Red Hat
- 2026-11-27 Affected versions changed · Red Hat
References
More Erlang vulnerabilities
- TI-2025-23504 Unauthenticated remote code execution in Erlang/OTP SSH server KEVCVSS 3.1CRITICAL 10.0
- TI-2026-48954 httpd parks a request worker indefinitely on a malformed chunk size sent after the headers CVSS 4.0HIGH 8.7
- TI-2026-71037 Path traversal in rebar3 via unvalidated dependency app names CVSS 4.0HIGH 7.5
- TI-2026-97472 Register cache flaw in Erlang OTP AArch64 JIT enables VM crash CVSS 4.0MEDIUM 5.9
- TI-2023-26623 The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6… CVSS 3.1MEDIUM 5.9
- TI-2026-97473 Use after free in Erlang/OTP erts file name normalization on macOS CVSS 4.0MEDIUM 5.7
Sources
- CVE-2026-117642 · CVE Program
- CVE-2026-117642 · NVD
- FIRST EPSS
- CVE-2026-117642 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences