# CVE-2026-125658: Use after free in erts file name normalization on macOS

- **Severity:** MEDIUM 5.7
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.37% (percentile 23, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2026-11-24T15:28:21.735Z
- **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 \>= 9622ab2132e2501ee5769357a914dcc6635e515c, \< 322b04488d9445c7258abce3e7f3bc79aa7c45d8

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

- Erlang OTP: \>= 6.0, \< \* (cvelist)
- Erlang OTP: \>= 17.0, \< \* (cvelist)
- Erlang OTP: \>= 9622ab2132e2501ee5769357a914dcc6635e515c, \< 322b04488d9445c7258abce3e7f3bc79aa7c45d8 (cvelist)

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

## Check your systems with an agent

Paste this into a coding agent:

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

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

## References

- vendor: <https://github.com/erlang/otp/security/advisories/GHSA-2pqq-qr2r-wgcc>
- patch: <https://github.com/erlang/otp/commit/9622ab2132e2501ee5769357a914dcc6635e515c>
- patch: <https://github.com/erlang/otp/commit/322b04488d9445c7258abce3e7f3bc79aa7c45d8>
- exploit: <https://cna.erlef.org/cves/CVE-2026-125658.html>
- exploit: <https://osv.dev/vulnerability/EEF-CVE-2026-125658>
- 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-125658>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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