CVE-2026-64846
published low CVSS 3.1 · 2.8Nix: Arbitrary file truncation outside the sandbox with recursive-nix experimental feature
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| NixOS | — | nix< 2.35.0 | Affected | Not stated | GitHub_M |
Description
Nix is a package manager for Linux and other Unix systems. Prior to 2.35.0, a malicious derivation executed with the recursive-nix experimental feature can exploit a time-of-check/time-of-use race involving final symlink handling in the LocalStore restore path. The race can cause writeFile to follow a substituted final symlink when opening a path with O_TRUNC instead of enforcing FinalSymlink::DontFollow, allowing the Nix process or nix-daemon to create or truncate an empty file outside the build sandbox with the daemon user's permissions. The primitive does not provide arbitrary-content writes and requires winning the race. This issue is fixed in version 2.35.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 2.8 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| NixOS | nix | < 2.35.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-61 CWE-61: UNIX Symbolic Link (Symlink) Following
- CWE-367 CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
References
3Provider assertions
2GitHub_M · cna
Nix: Arbitrary file truncation outside the sandbox with recursive-nix experimental feature
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6f3c66679f81b2c952bf0b2f3bbfc48b8a3eeac10544088dbd8935b73aeba760
- Ingested
- 23 Sep 2026, 09:26:10 UTC
- Source record
- Official CVE record