Skip to main content

Erlang OTP CVE-2026-117642

| EUVDEUVD-2026-134149 MEDIUM
Uncontrolled Recursion (CWE-674)
2026-11-24 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
6.9
CVSS 4.0 · Vendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted External Term Format to binary_to_term
  2. Exploit
    Nest funs in OldIndex/OldUniq/Arity integer fields
  3. Execution
    dec_term recurses per level, exhausts scheduler C-stack
  4. Impact
    VM 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

otp 17.0 <*
otp 6.0 <*
otp 84adefa331c4159d432d22840663c38f155cd4c1 <30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076

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

Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db) PRIMARY 6.9 MEDIUM
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
vuln.today AI 6.2 MEDIUM

Application-dependent local vector feeding binary_to_term, no privileges or user interaction, availability-only impact (VM abort) with no confidentiality or integrity effect.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 6.2 MEDIUM

Primary rating from Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db).

CVSS VectorVendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 24, 2026 - 16:02 EUVD
CVE Published
Nov 24, 2026 - 15:17 cve.org
MEDIUM 6.9

DescriptionCVE.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

EPSS Score
0.3%
Top 89% exploitable
Prevalence
High
Erlang/OTP runtime underlies RabbitMQ and major messaging/telecom infrastructure
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Erlang

View all
CVE-2025-32433 CRITICAL POC
10.0 Apr 16

Erlang/OTP SSH server allows unauthenticated remote code execution by exploiting a flaw in SSH protocol message handling

CVE-2017-1000385 MEDIUM POC
5.9 Dec 12

The Erlang otp TLS server answers with different TLS alerts to different error types in the RSA PKCS #1 1.5 padding. Rat

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2020-13802 CRITICAL POC
9.8 Sep 02

Rebar3 versions 3.0.0-beta.3 to 3.13.2 are vulnerable to OS command injection via URL parameter of dependency specificat

CVE-2014-1693 HIGH POC
7.5 Dec 08

Multiple CRLF injection vulnerabilities in the FTP module in Erlang/OTP R15B03 allow context-dependent attackers to inje

CVE-2021-29221 HIGH POC
7.0 Apr 09

A local privilege escalation vulnerability was discovered in Erlang/OTP prior to version 23.2.3. Rated high severity (CV

CVE-2016-10253 CRITICAL
9.8 Mar 18

An issue was discovered in Erlang/OTP 18.x. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitab

CVE-2022-37026 CRITICAL
9.8 Sep 21

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

CVE-2026-89422 CRITICAL
9.3 Sep 22

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

CVE-2026-67404 CRITICAL
9.2 Sep 23

RabbitMQ brokers that use the OAuth2 plugin can silently fall back to disabled TLS certificate verification when no CA b

CVE-2026-115693 CRITICAL
9.1 Oct 26

Improper certificate validation in the Erlang HTTP client hackney (1.24.0 through 4.8.x) lets an on-path attacker impers

CVE-2026-67231 CRITICAL
9.1 Sep 23

TLS client-authentication bypass in the RabbitMQ trust-store plugin lets a remote unauthenticated attacker whose forged

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy