PT-2026-79064 · Nix · Nix

CVE-2026-64846

·

Published

2026-08-20

·

Updated

2026-08-21

CVSS v3.1

2.8

Low

VectorAV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N
Name of the Vulnerable Software and Affected Versions Nix versions prior to 2.35.0
Description A time-of-check/time-of-use (TOCTOU) race condition exists in the LocalStore restore path when using the experimental recursive-nix feature. This occurs because the writeFile function may follow a substituted final symlink when opening a path with O TRUNC instead of enforcing FinalSymlink::DontFollow. An attacker can exploit this to cause the Nix process or nix-daemon to create or truncate an empty file outside the build sandbox using the permissions of the daemon user. This issue does not allow for arbitrary-content writes and requires winning the race condition.
Recommendations Update to version 2.35.0. As a temporary mitigation, avoid using the recursive-nix experimental feature.

Exploit

Fix

Time Of Check To Time Of Use

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-64846
GHSA-6H4G-G5J9-FM5F

Affected Products

Nix