Skip to content
FlawDB
Sign in

CVE-2026-125658

MEDIUM 5.7PoCEPSS 23%

Use after free in erts file name normalization on macOS

Mitigation

  • Upgrade OTP to 322b04488d9445c7258abce3e7f3bc79aa7c45d8 or later.
  • Vendor workaround: Start the VM with the +fnl flag, for example through ERL_FLAGS. The VM then does not decode or normalize file names. This changes the result of file name functions for names outside ASCII: the VM returns each byte of the name as one Latin-1 character.

Who should check

  • Anyone running Erlang OTP >= 6.0, < *
  • Anyone running Erlang OTP >= 17.0, < *
  • Anyone running Erlang OTP >= 9622ab2132e2501ee5769357a914dcc6635e515c, < 322b04488d9445c7258abce3e7f3bc79aa7c45d8

Vulnerability facts

Affected
Erlang OTP >= 6.0, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 9622ab2132e2501ee5769357a914dcc6635e515c, < 322b04488d9445c7258abce3e7f3bc79aa7c45d8
Fixed in
Erlang OTP 322b04488d9445c7258abce3e7f3bc79aa7c45d8
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.7 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: Low
  • 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.37% chance of exploitation in 30 days (percentile 23, 2026-11-28)
CWE
CWE-416
Published
Modified

Description

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. On macOS, the VM decodes file names with do_utf8_to_list_normalize in erts/emulator/beam/erl_unicode.c. When a name starts with a combining mark, such as U+0301, cleanup_norm builds the first list cells but does not return its advanced heap pointer. The caller then releases the heap words that hold those cells, and the returned list refers to released process heap memory that the next allocation overwrites. file:list_dir/1, file:list_dir_all/1, file:del_dir_r/1 and filelib:wildcard/1 on a directory that contains such a name do not return, and the VM does not stop on SIGTERM. file:read_link/1 on a symbolic link with such a target aborts the VM with size_object: bad tag. Only loss of availability was demonstrated. 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.

Affected and fixed versions

Package / productAffectedFixedSource
Erlang OTP>= 6.0, < *—cvelist
Erlang OTP>= 17.0, < *—cvelist
Erlang OTP>= 9622ab2132e2501ee5769357a914dcc6635e515c, < 322b04488d9445c7258abce3e7f3bc79aa7c45d8—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-125658. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-125658.md
Affected: Erlang OTP >= 6.0, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 9622ab2132e2501ee5769357a914dcc6635e515c, < 322b04488d9445c7258abce3e7f3bc79aa7c45d8
Fixed in: Erlang OTP 322b04488d9445c7258abce3e7f3bc79aa7c45d8

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-125658 being exploited?

There is no confirmed exploitation: CVE-2026-125658 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.37% chance of exploitation in the next 30 days (as of 2026-11-28).

How serious is CVE-2026-125658?

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

Which versions are affected by CVE-2026-125658?

Erlang OTP >= 6.0, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 9622ab2132e2501ee5769357a914dcc6635e515c, < 322b04488d9445c7258abce3e7f3bc79aa7c45d8.

Is there a fix for CVE-2026-125658?

Yes. Fixed in Erlang OTP 322b04488d9445c7258abce3e7f3bc79aa7c45d8. Upgrade OTP to 322b04488d9445c7258abce3e7f3bc79aa7c45d8 or later. Vendor workaround: Start the VM with the +fnl flag, for example through ERL_FLAGS. The VM then does not decode or normalize file names. This changes the result of file name functions for names outside ASCII: the VM returns each byte of the name as one Latin-1 character.

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

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.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
MEDIUM 5.9CVE-2026-115747

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

Erlang
PoCEPSS 27%
CRITICAL 9.1CVE-2026-124286

TLS 1.2 Client Completes Handshake Without a Server Certificate

Erlang
EPSS 14%
MEDIUM 6.9CVE-2026-120961

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

Erlang
EPSS 13%
MEDIUM 6.9CVE-2026-117642

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

Erlang
EPSS 20%
HIGH 7.0CVE-2026-116293

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

Erlang
EPSS 11%
Sponsors