Skip to main content
EPSS 0.4%top 65%

CVE-2026-54890: CWE-191 Integer Underflow (Wrap or Wraparound) in Erlang OTP

0
High
VulnerabilityCVE-2026-54890cvecve-2026-54890cwe-191cwe-789cwe-1284
Published: 07/27/2026 (07/27/2026, 15:39:03 UTC)
Source: CVE Database V5
Vendor/Project: Erlang
Product: OTP

Description

Integer Underflow (Wrap or Wraparound) vulnerability in erlang otp erlang/otp (erts modules), erlang otp erts (erts modules) allows Forced Integer Overflow, Excessive Allocation. This vulnerability is associated with program files erts/emulator/beam/external.c, emulator/beam/external.c. The BIT_BINARY_EXT tag (77) handler in the External Term Format (ETF) decoder accepts an encoding with both length and trailing-bits fields set to zero. The subsequent computation of the bitstring size underflows an unsigned integer, producing a value of roughly 2^64 that is then passed as a memory allocation size. The allocator aborts the entire node with a message such as "Cannot allocate 2305843009213693951 bytes of memory (of type binary)". The crash is a VM-level abort, not an Erlang-level exception. It cannot be intercepted by supervision trees, by try/catch, or by passing the [safe] option to binary_to_term/2 (which only restricts atom creation and does not perform structural validation of binary encodings). Any application that decodes ETF from untrusted sources via binary_to_term/1,2 or enif_binary_to_term() is exposed. The Erlang distribution protocol also decodes incoming terms through the same code path, but distribution is expected to run on trusted networks per the OTP Secure Coding Guidelines (DSG-011). This issue affects OTP from OTP 27.0 before OTP 29.0.4, OTP 28.5.0.4 and OTP 27.3.4.15, corresponding to erts from 15.0 before 17.0.4, 16.4.0.4 and 15.2.7.11.

CVSS v4.0

Score 8.2high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Affected software

Erlang

OTP

Affected versions
>=15.0 <15.2.7.11

Erlang

OTP

Affected versions
>=27.0 <27.3.4.15
GitHub Actionsmore threats →cve
erts
pkg:github/erts
Affected versions
>=15.0 <15.2.7.11
GitHub Actionsmore threats →cve
erlang/otp
pkg:github/erlang/otp
Affected versions
>=27.0 <27.3.4.15
CPE configurations
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 00:10:28 UTC

Technical Analysis

This vulnerability involves an integer underflow in the BIT_BINARY_EXT tag handler of the ETF decoder in Erlang OTP's erts modules. When decoding a specially crafted ETF binary with length and trailing-bits fields set to zero, the calculation of the bitstring size underflows an unsigned integer, resulting in a very large allocation size (~2^64). This triggers the allocator to abort the entire Erlang node with an out-of-memory error. The crash is a VM-level abort, not an Erlang exception, and cannot be intercepted by typical Erlang error handling or the safe option in binary_to_term/2. The vulnerability affects OTP versions from 27.0 before 29.0.4, including OTP 28.5.0.4 and OTP 27.3.4.15, corresponding to erts versions from 15.0 before 17.0.4, 16.4.0.4, and 15.2.7.11. Applications decoding ETF from untrusted sources are exposed, while the Erlang distribution protocol is expected to operate on trusted networks per OTP Secure Coding Guidelines.

Potential Impact

Exploitation causes a VM-level abort due to an out-of-memory allocation request triggered by integer underflow in ETF decoding. This results in denial of service by crashing the Erlang node. The crash cannot be caught or handled by Erlang-level error handling or supervision trees, leading to potential service disruption for applications decoding untrusted ETF data.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid decoding ETF data from untrusted sources using binary_to_term/1,2 or enif_binary_to_term(). The Erlang distribution protocol is not considered vulnerable in typical trusted network deployments. No mitigation via the safe option in binary_to_term/2 is effective against this issue.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
EEF
Date Reserved
2026-06-16T10:47:13.915Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a6786039c2644c7f861a508

Added to database: 07/27/2026, 16:23:31 UTC

Last enriched: 07/30/2026, 00:10:28 UTC

Last updated: 09/10/2026, 20:02:52 UTC

Views: 71

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses