Skip to main content

Erlang OTP EUVDEUVD-2026-134148

| CVE-2026-116293 HIGH
Out-of-bounds Read (CWE-125)
2026-11-24 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
7.0
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
    Deliver crafted binary to a deserialization endpoint
  2. Delivery
    Application calls binary_to_term on attacker-controlled input
  3. Exploit
    Zero-Len NEWER_REFERENCE_EXT passes decoded_size but dec_term reads 4 bytes ahead
  4. Execution
    Out-of-bounds write past reserved process heap
  5. Impact
    Erlang VM aborts, every process on the node is killed

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the application to call binary_to_term/1,2 or enif_binary_to_term() on data the attacker controls from an untrusted source; the Erlang distribution protocol reaches the same decoder but is assumed to run only on trusted networks. The precise trigger is a reference term - NEWER_REFERENCE_EXT (90) or NEW_REFERENCE_EXT (114) - whose 16-bit Len (ID words) field is encoded as zero. Limiting factors: there is no network service exposed by default (the runtime itself does not listen), so the attacker needs a code path that feeds untrusted bytes into the decoder; the [safe] option does NOT prevent the crash (it only restricts atom creation), and neither supervision nor try/catch can intercept the node abort. The one-word-past-heap write and the data-leak-past-input variant are specific to 32-bit builds with a zero-length reference at the end of the input followed by trailing bytes; on all builds the condition reliably aborts the whole VM. Affected: OTP 17.0 up to the patched releases (erts 6.0 up to 15.2.7.15 / 16.4.0.8 / 17.1.2).

Impact

Signals point to a moderately-high but conditional denial-of-service risk rather than a mass-exploitation emergency. The supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:N) scores 7.0 (High) with the dominant impact being availability (VA:H) - a whole-node VM abort - plus a minor confidentiality leak (VC:L) from terms returned with bytes read past the input buffer; integrity is unaffected. The vuln.today decision label is 'this_week', not act_now/emergency, and no CISA KEV listing or EPSS score is present in the input, so there is no evidence of active or widespread exploitation. The fix commit ships a regression test (bad_binary_to_term_3) that reproduces the crash, so a public PoC reference exists, but it is not verified as a weaponized exploit beyond causing the abort. The most important nuance is the attack vector: the official rating is AV:L because the Erlang runtime is not network-facing on its own and exploitation requires an application to pass attacker-controlled data into binary_to_term/1,2 or enif_binary_to_term() - yet any service that decodes untrusted network input through that call is effectively remotely reachable, so real-world exposure can be higher than AV:L implies; verify how the specific application feeds the decoder. This is a genuine priority for Erlang/Elixir services that deserialize untrusted data (and cannot be caught by supervision, try/catch, or the [safe] option), but a low priority for deployments that already follow the OTP Secure Coding Guidelines (DSG-011) and never call binary_to_term on untrusted input.

Exploit ScenarioDerived

An attacker who can supply serialized data to an application that deserializes it with binary_to_term/1,2 (or enif_binary_to_term) sends a malformed NEWER_REFERENCE_EXT (90) or NEW_REFERENCE_EXT (114) term whose 16-bit Len field is zero; decoded_size validates it but dec_term reads one ID word ahead, decoding unsized trailing bytes and writing past the reserved process heap, aborting the entire node and killing every process regardless of supervision, try/catch, or the [safe] option. On 32-bit builds a zero-length reference at the end of input followed by trailing bytes can also leak data read past the buffer or write one word past the heap. A public PoC reference exists as a regression test in the fix commit; it is not verified as working weaponized exploit code.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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 releases from 17.0 up to OTP 27.3.4.20, 28.5.0.9 and 29.1.3 (erts 6.0 up to 15.2.7.15, 16.4.0.8 and 17.1.2) can be aborted - taking down every process on the node - when an application passes attacker-controlled bytes to binary_to_term/1,2, enif_binary_to_term() or the distribution decoder. A NEWER_REFERENCE_EXT (90) or NEW_REFERENCE_EXT (114) term whose 16-bit ID-word count is encoded as zero is accepted by decoded_size but read as a one-word reference by dec_term, so the decoder runs four bytes ahead of the validated region, interprets unsized following bytes as terms and writes past the reserved process heap; on 32-bit builds the same input can additionally return a term containing binary data read past the end of the input buffer. No public exploit code was identified at time of analysis and the issue is not in CISA KEV, but the practical exposure is real wherever untrusted serialized data reaches binary_to_term, and neither supervision, try/catch nor the safe option can intercept the abort.

RemediationAI

Upgrade to OTP 27.3.4.20, 28.5.0.9 or 29.1.3 matching your release branch (erts 15.2.7.15, 16.4.0.8 or 17.1.2 respectively); the upstream fix is commit e5a9d3d141b8b5609803c3b78c8b420cd294ca82, which adds the missing 'id_words < 1' rejection in decoded_size(), and full version mappings are documented at https://github.com/erlang/otp/security/advisories/GHSA-6qhv-446c-985v and https://cna.erlef.org/cves/CVE-2026-116293.html. Because the abort is a VM-level failure, patching is the only complete fix; the vendor's documented workarounds are to stop calling binary_to_term/1,2 (and enif_binary_to_term) on any data from untrusted sources and to switch untrusted external input to an alternative serialization format such as JSON or Protocol Buffers, which removes the decoder from the attacker's reach at the cost of rewriting the wire format. If the distribution protocol is reachable from networks you do not fully trust, configure TLS with client certificate verification so only authenticated peers can feed terms into the decoder. Note that the safe option to binary_to_term/2 does not mitigate this at all - it only restricts atom creation, not structural validation - so passing safe must not be treated as a compensating control while an upgrade is pending.

Affected VersionsENISA

otp 84adefa331c4159d432d22840663c38f155cd4c1 <e5a9d3d141b8b5609803c3b78c8b420cd294ca82
otp 17.0 <*
otp 6.0 <*

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

The flaw lives in the Erlang external term format decoder in erts/emulator/beam/external.c, which works in two phases: decoded_size() walks the input to compute the exact amount of process heap to reserve, and dec_term() then decodes the term into that pre-sized heap. The two phases disagreed on reference terms. decoded_size() validated the 16-bit Len (ID words) field only against the upper bound ERTS_MAX_REF_NUMBERS, so a Len of zero passed; dec_term() always consumed one ID word unconditionally. The supplied upstream fix resolves exactly this asymmetry - the decoded_size check becomes 'id_words < 1 || id_words > ERTS_MAX_REF_NUMBERS' and the dec_term branch is converted to an ASSERT(ref_words >= 1 && ref_words <= ERTS_MAX_REF_NUMBERS). The resulting four-byte drift makes dec_term decode bytes that were never sized as if they were terms (the upstream regression test builds a LARGE_TUPLE_EXT out of the low byte of a binary length plus a run of SMALL_INTEGER_EXT elements), so heap that was reserved for a reference and a refc binary is overrun. CWE-125 (out-of-bounds read) is the primary classification because the phase mismatch causes reads ahead of the validated position; the advisory additionally assigns CWE-787 (out-of-bounds write) and CWE-1284 (improper validation of a specified quantity), reflecting the heap overrun and the unvalidated Len field respectively. NEW_REFERENCE_EXT also tolerates a zero length, but its range check on the first ID word rejects the shifted input, so the reliable abort path is NEWER_REFERENCE_EXT; the one-word-past-heap write and the past-the-buffer data disclosure are described as specific to 32-bit builds where a zero-length reference sits at the end of the input followed by trailing bytes. The same decoder is reachable through enif_binary_to_term() and the distribution protocol, although distribution is assumed to run on trusted networks per the OTP Secure Coding Guidelines.

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 7.0 HIGH
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 6.8 MEDIUM

The runtime is not network-facing itself and needs the app to feed attacker data to binary_to_term (AV:L), no privileges or interaction, impact is node-wide abort (A:H) with a minor data leak (C:L).

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 6.8 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
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Out-of-bounds Write 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 NEWER_REFERENCE_EXT term with a zero-length ID. decoded_size in erts/emulator/beam/external.c accepts a reference whose 16-bit Len field is zero, but dec_term always reads one ID word. dec_term then runs 4 bytes ahead of the position that decoded_size validated. It decodes the bytes that follow as terms that were never sized, and writes past the reserved process heap.

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. NEW_REFERENCE_EXT also accepts a zero length, but its range check on the first ID word rejects the shifted input. On 32-bit builds, a zero-length reference of either type at the end of the input, followed by trailing bytes, can write one word past the reserved heap.

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.

Technical POC Analysis

CWE-787 / CWE-125 (advisory also tags CWE-1284); the supplied description labels it CWE-125 Out-of-bounds Read, but the abort mechanism is an out-of-bounds write.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-116293 is a high-severity flaw in Erlang OTP that can crash entire application nodes and potentially leak memory when decoding maliciously crafted serialized data. Any service that deserializes untrusted input using Erlang's binary_to_term or distribution protocol is at risk, threatening availability and data confidentiality. Leadership should prioritize remediation because a single malicious payload could take down multiple processes and expose sensitive information.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 89% exploitable
Prevalence
High
Erlang/OTP runtime underpins telecom, messaging, RabbitMQ and Elixir backends
Data Quality
5 sources
Confidence: Medium

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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
High

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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