{"id":"CVE-2026-64846","published":"2026-08-20T16:18:06Z","modified":"2026-08-20T19:32:22Z","title":"Nix: Arbitrary file truncation outside the sandbox with recursive-nix experimental feature","vendor":"NixOS","product":"nix","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.8,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00108,"percentile":0.01221,"provenance":"source"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"},{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://github.com/NixOS/nix/security/advisories/GHSA-6h4g-g5j9-fm5f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/NixOS/nix/pull/15401","tags":["x_refsource_MISC"]},{"url":"https://github.com/NixOS/nix/commit/26679828f74ee6e82a4100904e6361f993ff5390","tags":["x_refsource_MISC"]}],"priority":{"score":2.2,"factors":[{"name":"EPSS percentile","points":0.24},{"name":"CVSS severity","points":1.96}]},"vendorSlug":"nixos","affectedVersions":[{"vendor":"NixOS","product":"nix","versions":["< 2.35.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-20T19:32:14.918442Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-63424","exploited":false,"provenance":"source"}}