CVE-2026-116293 in OTPinfo

Summary

by MITRE • 11/24/2026

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.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/25/2026

The vulnerability described constitutes a critical out-of-bounds write flaw within the Erlang Open Telecom Platform external term format decoder, specifically located in the handling of NEWER_REFERENCE_EXT terms. This security defect arises from an inconsistency between size validation and actual memory access operations during the deserialization process. When the binary_to_term/1 or binary_to_term/2 functions encounter a reference with a zero-length ID field, the decoded_size function correctly accepts this input as valid because it does not strictly enforce non-zero length constraints for references in all code paths. However, the subsequent dec_term execution logic unconditionally reads one word of data to process the identifier, regardless of whether the declared length is zero. This discrepancy causes the decoder pointer to advance four bytes beyond the boundary that was originally validated by decoded_size. Consequently, the system proceeds to interpret and write past the reserved heap space into adjacent memory regions that were not allocated for this operation.

The operational impact of this vulnerability is severe due to its ability to cause a denial of service through process termination. Because Erlang processes operate within isolated heaps but share certain runtime structures, writing beyond the reserved heap corrupts critical internal state or triggers immediate protection faults in the virtual machine. This corruption results in an abort that takes down every single process on the affected node, effectively crashing the entire application cluster rather than just a single worker. Standard resilience mechanisms such as supervision trees, try/catch blocks, and safe binary decoding options are ineffective against this specific flaw because the error occurs at the low-level virtual machine execution layer before higher-level Erlang code can intercept or manage exceptions. The vulnerability is particularly dangerous in distributed environments where nodes communicate over networks that may be assumed to be trusted, as attackers controlling input data via enif_binary_to_term() or through distribution protocols can exploit this logic error remotely if network segmentation fails or insider threats exist.

From a technical classification perspective, this issue aligns with CWE-787: Out-of-bounds Write, where memory is written beyond the intended buffer boundaries due to improper boundary checks. The attack vector involves providing crafted binary data that exploits the mismatch between declared size and actual read operations during term decoding. In terms of adversarial tactics, this vulnerability facilitates Denial of Service (DoS) attacks as defined in MITRE ATT&CK technique T1499: Endpoint Denial of Service. An attacker can leverage this flaw to disrupt service availability by triggering a virtual machine crash without requiring code execution privileges or complex exploitation chains beyond the ability to submit maliciously formatted binary terms for deserialization. The vulnerability persists across multiple versions, affecting OTP releases from 17.0 up to specific patch levels in the 27.x, 28.x, and 29.x series, corresponding to ERTS versions prior to 15.2.7.15, 16.4.0.8, and 17.1.2 respectively.

Mitigation strategies must prioritize immediate patching of the Erlang runtime environment to the specified safe versions where the decoder logic has been corrected to enforce strict length validation before memory access. For systems that cannot be immediately updated, input sanitization at the application layer is essential; developers should validate binary inputs for structural integrity and reject any terms containing references with zero-length identifiers or malformed size fields before passing them to binary_to_term functions. Additionally, deploying network segmentation policies to restrict distribution protocol traffic to strictly trusted sources can reduce the attack surface, although this does not eliminate risk from internal threats or compromised nodes within the cluster. Monitoring system logs for unexpected node crashes and implementing automated restart procedures with health checks can help minimize downtime during the transition period until full remediation is achieved across all affected infrastructure components.

Responsible

EEF

Reservation

10/26/2026

Disclosure

11/24/2026

Moderation

accepted

CPE

ready

EPSS

0.00262

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!