Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted External Term Format to binary_to_term
-
ExploitNest funs in OldIndex/OldUniq/Arity integer fields
-
Executiondec_term recurses per level, exhausts scheduler C-stack
-
ImpactVM aborts, all node processes die
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
|
| Exploitation Conditions | Exploitation requires an application (or NIF via enif_binary_to_term()) that calls binary_to_term/1,2 on data from an untrusted source; the attacker must control that input and the payload must be large enough to nest funs deeply enough to exhaust the scheduler thread stack. The crafted term abuses the OldIndex/OldUniq fields of NEW_FUN_EXT (112) or the Arity field of EXPORT_EXT (113), which dec_term() decodes via a recursive self-call. Limiting factors: the vendor CVSS rates this AV:L (application-dependent reachability, not inherently remote); the Erlang distribution protocol reaches the same decoder but is assumed to run only on trusted networks per OTP Secure Coding Guidelines; and the [safe] option to binary_to_term/2 does NOT prevent the crash - it only restricts atom creation, not structural validation. |
| Impact | This is a denial-of-service-only flaw (CWE-674 uncontrolled recursion) with no confidentiality or integrity impact, and the signals are internally consistent rather than conflicting. The vendor CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H) scores 6.9 (medium) and deliberately rates the attack vector as LOCAL - the attacker does not need privileges but must be able to feed data to an application that calls binary_to_term/1,2 or enif_binary_to_term(), so reachability is entirely application-dependent rather than universally network-exposed. No CISA KEV listing and no EPSS score are provided in the input, so there is no evidence of active or probable widespread exploitation; vuln.today's decision label is 'this_month' (notable but below act_now/emergency). A working reproducer is embedded in the patch commit's test suite (binary_SUITE.erl), so trigger mechanics are public even though no standalone weaponized exploit is cited. The practical severity is amplified by blast radius: the abort takes down every process on the node and cannot be caught by supervision, try/catch, or the [safe] option. Net assessment: a legitimate but bounded priority - real where an application deserializes untrusted Erlang External Term Format, otherwise low real-world risk; not a drop-everything emergency on the available signals. |
| Exploit ScenarioDerived | An application deserializes attacker-supplied data with binary_to_term/1,2 or enif_binary_to_term() - for example an API, message queue, or cache that accepts Erlang External Term Format from clients. The attacker submits a sufficiently large payload containing a NEW_FUN_EXT or EXPORT_EXT fun with another fun nested into its OldIndex, OldUniq, or Arity integer field, repeated to deep nesting; dec_term() recurses once per level, exhausts the scheduler thread's C stack, and aborts the VM, killing every process on the node. A reproducer exists in the fix commit's test suite, demonstrating the crash is reliably triggerable. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
Erlang/OTP's external term format decoder (erts) can be driven into unbounded C-level recursion by a crafted binary passed to binary_to_term/1,2, causing stack exhaustion on the scheduler thread and aborting the entire Erlang VM rather than a single process. The payload abuses fun encodings - NEW_FUN_EXT (112) with a nested term in the OldIndex/OldUniq fields, or EXPORT_EXT (113) with a nested term in the Arity field - which dec_term() recursively decodes before validating that the result is a small integer. Every process on the node dies, and neither supervision, try/catch nor the safe option of binary_to_term/2 can intercept the abort; exploitation requires an application (or a NIF using enif_binary_to_term()) that feeds attacker-controlled input to that API, and the input must be large enough to nest funs to the depth needed to exhaust the runtime stack. This is a denial-of-service-only issue (no confidentiality or integrity impact); no public exploit code or active exploitation is identified at time of analysis, and vendor-released fixes exist for the 27.x, 28.x and 29.x branches.
RemediationAI
Vendor-released patches exist for all supported branches: upgrade to OTP 27.3.4.20 (erts 15.2.7.15), OTP 28.5.0.9 (erts 16.4.0.8) or OTP 29.1.3 (erts 17.1.2) - a version at or above any one of those is unaffected. Details and the affected/patched version matrices are in the GitHub advisory (https://github.com/erlang/otp/security/advisories/GHSA-8575-6vgw-5v3c) and the Erlang Ecosystem Foundation CNA entry (https://cna.erlef.org/cves/CVE-2026-117642.html); the code fix is commit 30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076. Until patched, the vendor's actionable guidance is to stop calling binary_to_term/1,2 (and enif_binary_to_term()) on data from untrusted sources, per OTP Secure Coding Guidelines DSG-011, and to use an alternative serialization format such as JSON or Protocol Buffers at trust boundaries - a change that requires reworking any wire or storage format that currently carries Erlang terms. The vendor explicitly notes that the safe option to binary_to_term/2 does NOT protect against this crash, since it only restricts atom creation and not structural validation of the binary encoding, so passing safe must not be treated as a mitigation. If the distribution protocol is exposed beyond a trusted network, configure it to use TLS with client certificate verification; note that this only protects the distribution path and does nothing for application-level binary_to_term calls on untrusted payloads. No public exploit code or active exploitation is identified at time of analysis.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-674 (uncontrolled recursion) in erts/emulator/beam/external.c. The external term format decoder is written iteratively - a single loop over the byte stream - except for three fields: the OldIndex and OldUniq fields of NEW_FUN_EXT (tag 112) and the Arity field of EXPORT_EXT (tag 113). For those fields the decoder calls dec_term() recursively, and only after that call returns does it check whether the decoded sub-term is a small integer, so an encoding that places another fun in such a field recurses once per nesting level. The upstream fix (commit 30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076) introduces a dedicated dec_int32() helper that accepts only SMALL_INTEGER_EXT or INTEGER_EXT and otherwise fails, replaces the recursive decode of OldIndex/OldUniq and Arity with that helper, adds an arity < 0 || arity > MAX_SMALL bound check, and decodes the pid following the fun's fields directly via dec_pid() with an explicit PID_EXT/NEW_PID_EXT tag check instead of a recursive dec_term() call. The regression tests added to binary_SUITE.erl construct 10,000-level nestings of EXPORT_EXT and NEW_FUN_EXT to reproduce the C-stack exhaustion. The same decoder is reached through enif_binary_to_term() and through the Erlang distribution protocol, though the vendor's secure coding guidance assumes distribution runs only on trusted networks.
Know when Erlang gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Application-dependent local vector feeding binary_to_term, no privileges or user interaction, availability-only impact (VM abort) with no confidentiality or integrity effect.
Primary rating from Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db).
CVSS VectorVendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Erlang/OTP SSH server allows unauthenticated remote code execution by exploiting a flaw in SSH protocol message handling
The Erlang otp TLS server answers with different TLS alerts to different error types in the RSA PKCS #1 1.5 padding. Rat
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot
Rebar3 versions 3.0.0-beta.3 to 3.13.2 are vulnerable to OS command injection via URL parameter of dependency specificat
Multiple CRLF injection vulnerabilities in the FTP module in Erlang/OTP R15B03 allow context-dependent attackers to inje
A local privilege escalation vulnerability was discovered in Erlang/OTP prior to version 23.2.3. Rated high severity (CV
An issue was discovered in Erlang/OTP 18.x. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitab
In Erlang/OTP before 23.3.4.15, 24.x before 24.3.4.2, and 25.x before 25.0.2, there is a Client Authentication Bypass in
Erlang/OTP's ssl application in affected releases (OTP 22.2 through the fixed 27.3.4.18, 28.5.0.7 and 29.1.1) will compl
RabbitMQ brokers that use the OAuth2 plugin can silently fall back to disabled TLS certificate verification when no CA b
Improper certificate validation in the Erlang HTTP client hackney (1.24.0 through 4.8.x) lets an on-path attacker impers
TLS client-authentication bypass in the RabbitMQ trust-store plugin lets a remote unauthenticated attacker whose forged
EUVD-2026-134149
NVD
CVE.org
EPSS
GitHub
Exploit-DB