Arbitrary File Overwrite Vulnerability in Nix Package Manager
CVE-2026-39860
9CRITICAL
What is CVE-2026-39860?
A flaw in the Nix package manager allows arbitrary file overwrites due to improper symlink handling in multi-user environments. When users submit builds to the Nix daemon, they can manipulate symlinks that point to sensitive files in the filesystem. This vulnerability enables unauthorized access and modification of files that could lead to escalated privileges, as the Nix process may inadvertently overwrite critical system files. This issue specifically affects sandboxed Linux builds and requires prompt attention to mitigate risks.
Affected Version(s)
nix >= 2.21, < 2.28.6 < 2.21, 2.28.6
nix >= 2.29.0, < 2.29.3 < 2.29.0, 2.29.3
nix >= 2.30.0, < 2.30.4 < 2.30.0, 2.30.4
