Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-54890

HIGH 8.2EPSS 50%

BEAM VM crash via integer underflow in binary_to_term BIT_BINARY_EXT decoding

Mitigation

  • Vendor workaround: Do not call binary_to_term/1,2 or enif_binary_to_term() on data from untrusted sources. The OTP Secure Coding Guidelines (DSG-011) recommend avoiding these functions altogether on untrusted input and using an alternative serialization format (for example JSON or Protocol Buffers) instead.

Who should check

  • Anyone running Erlang OTP >= 15.0, < *
  • Anyone running Erlang OTP >= 27.0, < *
  • Anyone running Erlang OTP >= 24ef4cbaeda9b9c26682cba75f2f15b0c58722aa, < dc1bf9344c0ce62717cf60866590cea0242780fd

Vulnerability facts

Affected
Erlang OTP >= 15.0, < *; Erlang OTP >= 27.0, < *; Erlang OTP >= 24ef4cbaeda9b9c26682cba75f2f15b0c58722aa, < dc1bf9344c0ce62717cf60866590cea0242780fd
Fixed in
No fix listed yet
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.2 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.72% chance of exploitation in 30 days (percentile 50, 2026-11-26)
CWE
CWE-191, CWE-789, CWE-1284
Published
Modified

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 27.3.4.15, OTP 28.5.0.4, and OTP 29.0.4, corresponding to erts from 15.0 before 15.2.7.11, 16.4.0.4, and 17.0.4.

Affected and fixed versions

Package / productAffectedFixedSource
Erlang OTP>= 15.0, < *—cvelist
Erlang OTP>= 27.0, < *—cvelist
Erlang OTP>= 24ef4cbaeda9b9c26682cba75f2f15b0c58722aa, < dc1bf9344c0ce62717cf60866590cea0242780fd—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-54890. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-54890.md
Affected: Erlang OTP >= 15.0, < *; Erlang OTP >= 27.0, < *; Erlang OTP >= 24ef4cbaeda9b9c26682cba75f2f15b0c58722aa, < dc1bf9344c0ce62717cf60866590cea0242780fd
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Erlang OTP: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-54890 being exploited?

There is no confirmed exploitation: CVE-2026-54890 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.72% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-54890?

High: CVSS 8.2 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-54890?

Erlang OTP >= 15.0, < *; Erlang OTP >= 27.0, < *; Erlang OTP >= 24ef4cbaeda9b9c26682cba75f2f15b0c58722aa, < dc1bf9344c0ce62717cf60866590cea0242780fd.

Is there a fix for CVE-2026-54890?

No fixed version is listed in the sources yet. Vendor workaround: Do not call binary_to_term/1,2 or enif_binary_to_term() on data from untrusted sources. The OTP Secure Coding Guidelines (DSG-011) recommend avoiding these functions altogether on untrusted input and using an alternative serialization format (for example JSON or Protocol Buffers) instead.

How do I check if I'm affected by CVE-2026-54890?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors