Skip to content
Threat Feed
low advisory

Erlang OTP: Out-of-bounds write in binary_to_term (CVE-2026-55737)

An inconsistent signed versus unsigned interpretation of 32-bit arity fields during LARGE_TUPLE_EXT term decoding in Erlang OTP allows an attacker to supply a crafted binary to binary_to_term/1, resulting in an out-of-bounds heap write and virtual machine crash.

CVE search metadata

CVE search record: CVE-2026-55737. Severity: high. CVSS: 7.5. EPSS: 0.31%. KEV: no. Product: Erlang OTP, erts. Brief: Erlang OTP: Out-of-bounds write in binary_to_term (CVE-2026-55737). Brief link: https://feed.craftedsignal.io/briefs/2026-11-erlang-otp-vulnerability-cve-2026-55737/

Triage facts

Revision 1
Applicability
Erlang OTP, erts
Evidence
Unknown
Severity
Low
Sources
2 public sources
Freshness
Revision 1Nov 21, 17:21 UTC
Vulnerabilities
1 CVE
Source quality
A2Roughly even chance

Overview

Erlang OTP erts contains an out-of-bounds write vulnerability triggered during the decoding of Erlang external term format (ETF) binaries. The vulnerability arises from an inconsistent interpretation of the 32-bit arity field when decoding a LARGE_TUPLE_EXT term. The validation pass (decoded_size() in erts/emulator/beam/external.c) reads the field as an unsigned 32-bit integer (get_uint32()), while the decode pass (dec_term() in the same file) reads the same field as a signed 32-bit integer (get_int32()). A crafted arity value of 0x80000000 passes validation but is interpreted as a negative value during decoding, causing the heap allocation pointer to move backward.

Attack Chain

An attacker may trigger the vulnerability by providing a crafted Erlang external term format (ETF) binary to the binary_to_term/1 function. Neither the validation nor the decoding pass enforces the runtime tuple-arity limit MAX_ARITYVAL. This results in an out-of-bounds heap write.

Impact

The virtual machine (BEAM) detects an impossible heap size and aborts, leading to a denial-of-service condition.

Recommendation

Users should upgrade to releases where the parser inconsistency is addressed. Affected releases include versions of OTP from 25.0 before 27.3.4.15, 28.5.0.4, and 29.0.4, and erts from 13.0 before 15.2.7.11, 16.4.0.4, and 17.0.4.