Heap pointer corruption via signed/unsigned mismatch in LARGE_TUPLE_EXT decoding in erts external term format decoder
CVE-2026-55737Published 27 Jul 2026, 15:13 UTC
Real-world risk
1.3/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
5.1
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from EEF)
Signed to Unsigned Conversion Error and Out-of-bounds Write vulnerability in Erlang OTP erts allows an attacker who can supply a crafted Erlang external term format (ETF) binary to binary_to_term/1 to corrupt the BEAM heap pointer and crash the virtual machine. When decoding a LARGE_TUPLE_EXT term, the validation pass decoded_size() in erts/emulator/beam/external.c reads the 32-bit arity field as unsigned (get_uint32()), while the decode pass dec_term() reads the same field as a signed 32-bit integer (get_int32()) into an int. An arity wire value of 0x80000000 passes validation as 2147483648 but decodes as -2147483648, so the subsequent hp += n moves the heap allocation pointer backward. Neither pass enforces the runtime tuple-arity limit MAX_ARITYVAL. The result is an out-of-bounds heap write; in practice the VM detects an impossible heap size and aborts, denying service. The required padding is large when uncompressed but the compressed-ETF envelope shrinks it to a small payload on the wire. This issue affects OTP from OTP 25.0 before OTP 27.3.4.15, OTP 28.5.0.4, and OTP 29.0.4, corresponding to erts from 13.0 before 15.2.7.11, 16.4.0.4, and 17.0.4.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Erlang/OTPWidespread | >= 13.0, < *; >= 25.0, < * | — |
What to do
Check the vendor advisory in the references below for fixed versions and workarounds.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.4% chance of exploitation in 30 days (percentile 39), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.500
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.5 × threat 0.851.275
- Rounded to one decimal between 0.1 and 101.3
Exploitation and evidence timeline
- 27 Jul 2026 Published
- 3 Dec 2026 Risk 1.3 (cvss fallback)
Weakness
CWE-195, CWE-787
References
- https://github.com/erlang/otp/security/advisories/GHSA-446w-268v-9462related, vendor-advisory
- https://cna.erlef.org/cves/CVE-2026-55737.htmlrelated
- https://osv.dev/vulnerability/EEF-CVE-2026-55737related
- https://www.erlang.org/doc/system/versions.html#order-of-versionsx-version-scheme
- https://github.com/erlang/otp/commit/ebcbb97b4ec223464cac3d94375739a248ddef6erelated
- https://github.com/erlang/otp/commit/c5210b42a9d3d96f3d25601942ce8122be0f3761patch
- CVE-2026-55737 on CVE.org