# CVE-2026-120961: binary\_to\_term Heap Overrun via FLOAT\_EXT Without Terminating Zero Byte May Abort the VM

- **Severity:** MEDIUM 6.9
- **CVSS:** 6.9 (v4.0, CNA) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: None; 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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-28)
- **CWE:** CWE-125
- **Published:** 2026-11-24T15:10:40.813Z
- **Modified:** 2026-11-24T19:12:16.707Z

## Who should check

- Anyone running Erlang OTP \>= 6.0, \< \*
- Anyone running Erlang OTP \>= 17.0, \< \*
- Anyone running Erlang OTP \>= 84adefa331c4159d432d22840663c38f155cd4c1, \< 4b954b8aa0f601a0d8d45f0953c77585afb6f853

## 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.

## Affected and fixed versions

- Erlang OTP: \>= 6.0, \< \* (cvelist)
- Erlang OTP: \>= 17.0, \< \* (cvelist)
- Erlang OTP: \>= 84adefa331c4159d432d22840663c38f155cd4c1, \< 4b954b8aa0f601a0d8d45f0953c77585afb6f853 (cvelist)

## Mitigation

- Upgrade OTP to 4b954b8aa0f601a0d8d45f0953c77585afb6f853 or later.
- Vendor workaround: \* 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.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-120961.md
Affected: Erlang OTP >= 6.0, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 84adefa331c4159d432d22840663c38f155cd4c1, < 4b954b8aa0f601a0d8d45f0953c77585afb6f853
Fixed in: Erlang OTP 4b954b8aa0f601a0d8d45f0953c77585afb6f853

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.
```

## FAQ

### Is CVE-2026-120961 being exploited?

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

### How serious is CVE-2026-120961?

Medium: CVSS 6.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-120961?

Erlang OTP \>= 6.0, \< \*; Erlang OTP \>= 17.0, \< \*; Erlang OTP \>= 84adefa331c4159d432d22840663c38f155cd4c1, \< 4b954b8aa0f601a0d8d45f0953c77585afb6f853.

### Is there a fix for CVE-2026-120961?

Yes. Fixed in Erlang OTP 4b954b8aa0f601a0d8d45f0953c77585afb6f853. Upgrade OTP to 4b954b8aa0f601a0d8d45f0953c77585afb6f853 or later. Vendor workaround: \* 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.

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

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.

## References

- vendor: <https://github.com/erlang/otp/security/advisories/GHSA-r7pf-rpq8-5pf4>
- patch: <https://github.com/erlang/otp/commit/4b954b8aa0f601a0d8d45f0953c77585afb6f853>
- other: <https://cna.erlef.org/cves/CVE-2026-120961.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-120961>
- other: <https://www.erlang.org/doc/system/versions.html#order-of-versions>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-120961>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-120961> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-120961>
