CVE-2026-125658
What it is
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.
At a glance
- Exploitability
- Can be exploited locally on the machine with a low-privilege account. High risk of service disruption.
- Exploit odds
- 0.4% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- ReservedThe CVE id was reserved by its CNA
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 0.4% in the next 30 days (EPSS).
- Severity: 5.7 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 0.4% · EPSS, next 30 days
- Weakness
- CWE-416 · Use after free
- Record status
- Awaiting Analysis
Affected
- Erlang OTP < *
- Erlang OTP < 322b04488d9445c7258abce3e7f3bc79aa7c45d8
Attack profile CVSS 4.0 · 5.7
- Attack vector
- Local
- Complexity
- Low
- Attack requirements
- Present
- Privileges needed
- Low
- User interaction
- None
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Raw vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2026-125658.md and follow it. Check whether this project is affected by CVE-2026-125658. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/erlang/otp/commit/322b04488d9445c7258abce3e7f3bc79aa7c45d8
- https://github.com/erlang/otp/commit/9622ab2132e2501ee5769357a914dcc6635e515c
- https://github.com/erlang/otp/security/advisories/GHSA-2pqq-qr2r-wgcc
References
- https://cna.erlef.org/cves/CVE-2026-125658.html
- https://github.com/erlang/otp/commit/322b04488d9445c7258abce3e7f3bc79aa7c45d8
- https://github.com/erlang/otp/commit/9622ab2132e2501ee5769357a914dcc6635e515c
- https://github.com/erlang/otp/security/advisories/GHSA-2pqq-qr2r-wgcc
- https://osv.dev/vulnerability/EEF-CVE-2026-125658
- https://www.erlang.org/doc/system/versions.html#order-of-versions