Erlang/OTP: Integer underflow in External Term Format decoder (CVE-2026-54890)
An integer underflow vulnerability in the Erlang/OTP External Term Format (ETF) decoder allows unauthenticated remote attackers to trigger a VM-level abort by providing malformed BIT_BINARY_EXT data, resulting in a denial-of-service.
CVE search metadata
CVE search record: CVE-2026-54890. Severity: high. CVSS: 7.5. EPSS: 0.45%. KEV: no. Product: Erlang/OTP (>= 27.0, < 27.3.4.15; >= 28.0, < 28.5.0.4; >= 29.0, < 29.0.4), erts (>= 15.0, < 15.2.7.11; >= 16.0, < 16.4.0.4; >= 17.0, < 17.0.4). Brief: Erlang/OTP: Integer underflow in External Term Format decoder (CVE-2026-54890). Brief link: https://feed.craftedsignal.io/briefs/2026-11-erlang-otp-integer-underflow-cve-2026-54890/
Triage facts
Revision 1- Applicability
- Erlang/OTP (>= 27.0, < 27.3.4.15; >= 28.0, < 28.5.0.4; >= 29.0, < 29.0.4), erts (>= 15.0, < 15.2.7.11; >= 16.0, < 16.4.0.4; >= 17.0, < 17.0.4)
- Evidence
- Unknown
- Severity
- Low
- Action
- Elevated
- Sources
- 2 public sources
- Freshness
- Revision 1Nov 21, 17:21 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Likely
Overview
An integer underflow vulnerability exists in the External Term Format (ETF) decoder within Erlang/OTP's erts modules, specifically in the handler for the BIT_BINARY_EXT tag (77). By supplying an encoding with length and trailing-bits fields set to zero, an attacker can trigger an unsigned integer underflow, forcing the Erlang Virtual Machine to request a massive memory allocation (approximately 2^64 bytes). This results in an immediate, non-recoverable VM-level abort.
This crash cannot be intercepted by standard application-level exception handling (try/catch) or by the [safe] option in binary_to_term/2. Any application that processes ETF data from untrusted sources is vulnerable.
Impact
Successful exploitation results in an immediate denial-of-service (DoS) as the entire Erlang node terminates. This vulnerability affects applications that decode external term data from untrusted network sources.
Recommendation
- Upgrade Erlang/OTP to one of the following patched versions:
- OTP 27.3.4.15 or later
- OTP 28.5.0.4 or later
- OTP 29.0.4 or later
- Upgrade Erlang erts to one of the following patched versions:
- erts 15.2.7.11 or later
- erts 16.4.0.4 or later
- erts 17.0.4 or later
- Immediately audit applications to ensure that
binary_to_term/1,2orenif_binary_to_term()are not called on data originating from untrusted sources, as recommended by the OTP Secure Coding Guidelines (DSG-011). Use alternative serialization formats such as JSON or Protocol Buffers for untrusted input.
Threat Hunt
Identify applications using binary_to_term or enif_binary_to_term on untrusted inputs
Data: Application source code analysis, Static analysis reports, Erlang application logs for unexpected VM crashes
Mitigations
Patch Erlang/OTP and erts to recommended versions