Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

Skip to content
Check your stack
CVE-2026-120961

binary_to_term Heap Overrun via FLOAT_EXT Without Terminating Zero Byte May Abort the VM

Products / packages Erlang OTP

Published

Share

Severity and exploitation

Not in CISA KEV

KEV coverage does not rule out exploitation.

KEV checked 28/11/2026, 20:45:32 UTC
EEF · CVSS:4.0 · 6.9
Assessment vectorCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Severity

medium6.9

CVSS measures technical severity, not the likelihood of an attack.

Known exploitation

Not listed in the checked CISA KEV catalog

Absence from CISA KEV does not rule out attacks.

Public exploit

Not established by this record

Missing evidence does not mean no public exploit exists.

Remediation

Source guidance available

Review the recorded instructions. Guidance may be a workaround rather than a fixed version.

What this means

Erlang OTP erts versions 6.0 to 15.2.7.14, 16.4.0.7, and 17.1.1 have an out-of-bounds read vulnerability in the external term format decoder, allowing an attacker controlling input to binary_to_term/1,2 to read memory and change one byte. The issue affects OTP from 17.0 before 27.3.4.20, 28.5.0.9, and 29.1.3.

Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.

Attack conditions

No attack-condition excerpt has been identified here. Review the full source description and references for authentication, network access, and configuration requirements.

Review supporting sources →

Affected versions

Check the exact model, release, and any platform requirements against your installation.

Erlang · EEF

OTP

1 range

Package identity

pkg:otp/erts?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git

Identity supplied by EEF. Version matching requires compatible range evidence.

Compare with this publisher’s ranges. This does not inspect your installation.

affected

6.0 → before *

otp versions

From 15.2.7.15: unaffected

From 16.4.0.8: unaffected

From 17.1.2: unaffected

Source order retained; this version scheme requires manual review.

unaffected

unknown

Other versions: unknown

Product identifiers (CPE)cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*

Erlang · EEF

OTP

1 range

Package identity

pkg:software-id/erlang.org/otp

Identity supplied by EEF. Version matching requires compatible range evidence.

Compare with this publisher’s ranges. This does not inspect your installation.

affected

17.0 → before *

otp versions

From 27.3.4.20: unaffected

From 28.5.0.9: unaffected

From 29.1.3: unaffected

Source order retained; this version scheme requires manual review.

unaffected

unknown

Other versions: unknown

Product identifiers (CPE)cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*

Erlang · EEF

OTP

2 ranges

Package identity

pkg:github/erlang/otp

Identity supplied by EEF. Version matching requires compatible range evidence.

Compare with this publisher’s ranges. This does not inspect your installation.

affected

84adefa331c4159d432d22840663c38f155cd4c1 → before 4b954b8aa0f601a0d8d45f0953c77585afb6f853

git versions

unaffected

4b954b8aa0f601a0d8d45f0953c77585afb6f853 → before *

git versions

unknown

Other versions: unknown

Product identifiers (CPE)cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
Automatic dependency matching is unavailable for this record. Use the product evidence and publisher’s instructions to check your installation.

What to do

Compare your installed product and version with the affected versions above. A matching product name alone does not confirm exposure.

  • Do not call binary_to_term/1,2 on data from untrusted sources. The OTP Secure Coding Guidelines (DSG-011) recommend avoiding these functions altogether on untrusted data.
  • If distribution is exposed to untrusted networks, configure it to use TLS with client certificate verification.
  • Use alternative serialization formats (JSON, Protocol Buffers) for untrusted external input. Note: the [safe] option to binary_to_term/2 does NOT protect against this issue. It only restricts atom creation, not structural validation of binary encodings.
EEF guidance ↗

cve.new guidance unless attributed to a publisher. This page does not inspect your installation.

Public exploit evidence

No public exploit reference is identified in the imported evidence. This is not a claim that no exploit exists.

Original source description

Read the full publisher description

Out-of-bounds Read vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to binary_to_term/1,2 to read memory after the input, and to change one byte there, via a FLOAT_EXT term without a terminating zero byte. decoded_size in erts/emulator/beam/external.c checks only that the 31 bytes of the FLOAT_EXT field are present. dec_term then passes the field to sys_chars_to_double, which scans to a NUL byte without a length limit. When the field has no NUL, the scan continues into the bytes after the field, and those bytes change the decoded float. When the radix character is found after the field and strtod does not accept it, sys_chars_to_double overwrites that byte (a , becomes a .). The VM can fault if the scan reaches an unmapped page.

The safe option does not prevent this. enif_binary_to_term() and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only. The write is limited to the one radix byte. No arbitrary write or code execution was shown.

This issue affects OTP from OTP 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP 17.0, corresponding to erts before 6.0, is affected is unknown.

References

5 sources

Inside the record

Evidence available

Package identity
Version evidence
Remediation guidance
Weakness classification
Additional publishers · not supplied

Describes the evidence in this view, not whether the product is safe.

Original records

CVE-2026-120961

View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.

cve.new JSON →

Underlying weaknesses

The source’s classification of what caused the vulnerability.

CWE-125 ↗

CWE-125 Out-of-bounds Read

EEF

Related →

Environment requirements

These conditions apply together as specified by the publisher. A matching product name alone does not establish exposure.

EEF · platform conditions

All conditions must hold

Any condition may hold

Vulnerable product

cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*

Before: 27.3.4.20

Vulnerable product

cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*

From (inclusive): 28.0

Before: 28.5.0.9

Vulnerable product

cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*

From (inclusive): 29.0

Before: 29.1.3

Applicability preview
[
  {
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "27.3.4.20",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "28.5.0.9",
            "versionStartIncluding": "28.0",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "29.1.3",
            "versionStartIncluding": "29.0",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "AND"
  }
]
Contributing organizations · 1
EEF

Assigning organization

2026-11-24

Timeline

All times UTC
  1. Advisory published

    Publication date supplied by the source.

  2. Last imported by cve.new

    Latest catalog import, not the date we first saw this advisory.

What changed

Follow changes
No substantive changes have been recorded here yet. History starts when cve.new observes a change after tracking is enabled; earlier edits are not reconstructed.

Large field values are marked as truncated previews. Original source snapshots remain retained.

Recent advisories affecting the same package or the same recorded vendor and product. These are separate vulnerabilities, not additional evidence for this advisory.

medium5.9
CVE-2026-115747

AArch64 JIT register-cache bug allows VM denial of service via XML

Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in the AArch64 JIT in Erlang OTP erts allows an attacker to crash the BEAM virtual machine via input that reaches a chained integer range guard, such as an oversized numeric character reference parsed by xmerl_sax_parser.

Review the recorded instructions. Guidance may be a workaround rather than a fixed version.

Public exploit reference

Erlang · OTP / Erlang · OTP
medium5.7
CVE-2026-125658

Use after free in erts file name normalization on macOS

Use After Free vulnerability in Erlang/OTP erts allows an attacker who can create a file system entry with a chosen name to hang or abort the Erlang VM on macOS.

Review the recorded instructions. Guidance may be a workaround rather than a fixed version.

Public exploit reference

Erlang · OTP / Erlang · OTP
critical9.1
CVE-2026-124286

TLS 1.2 Client Completes Handshake Without a Server Certificate

Improper Verification of Cryptographic Signature vulnerability in Erlang OTP ssl (ssl_handshake module) allows an on-path attacker to impersonate any server to a TLS 1.2 or DTLS client.

Review the recorded instructions. Guidance may be a workaround rather than a fixed version.

Exploitation not established

Erlang · OTP / Erlang · OTP
medium6.9
CVE-2026-117642

binary_to_term Stack Exhaustion via Nested Funs in NEW_FUN_EXT and EXPORT_EXT Aborts the VM

Uncontrolled Recursion vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to binary_to_term/1,2 to abort the Erlang VM via a fun term with funs nested in its integer fields. dec_term in erts/emulator/beam/external.c decodes terms iteratively, except for the OldIndex and OldUniq fields of NEW_FUN_EXT and the Arity field of EXPORT_EXT. For these fields it calls itself, and it checks that the result is a small integer only after the call returns. An input that places another fun in such a field, nested to sufficient depth, recurses once per level, exhausts the stack of the scheduler thread and crashes the VM. The input must be large enough to reach that depth.

Review the recorded instructions. Guidance may be a workaround rather than a fixed version.

Exploitation not established

Erlang · OTP / Erlang · OTP
high7.0
CVE-2026-116293

binary_to_term Heap Overrun via NEWER_REFERENCE_EXT with Zero ID Words Aborts the VM

Out-of-bounds Write vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to binary_to_term/1,2 to abort the Erlang VM via a NEWER_REFERENCE_EXT term with a zero-length ID. decoded_size in erts/emulator/beam/external.c accepts a reference whose 16-bit Len field is zero, but dec_term always reads one ID word. dec_term then runs 4 bytes ahead of the position that decoded_size validated. It decodes the bytes that follow as terms that were never sized, and writes past the reserved process heap.

Review the recorded instructions. Guidance may be a workaround rather than a fixed version.

Exploitation not established

Erlang · OTP / Erlang · OTP
high8.7
CVE-2026-116225

OTP: Denial of service

Improper Validation of Specified Quantity in Input vulnerability in the BER decoder in Erlang/OTP snmp allows an unauthenticated remote attacker to exhaust CPU via an SNMP message that contains an OBJECT IDENTIFIER with a very long sub-identifier.

Review the recorded instructions. Guidance may be a workaround rather than a fixed version.

Exploitation not established

Erlang · OTP / Erlang · OTP