Absolute Path Traversal in nix - #VU129557
Published: May 4, 2026
nix
Detailed vulnerability description
The vulnerability allows a remote attacker to modify files outside the intended extraction directory.
The vulnerability exists due to absolute path traversal in the archive unpacking functionality of nix-prefetch-url --unpack, nix store prefetch-file --unpack, and builtin:unpack-channel when processing archives containing entries with absolute paths. A remote attacker can supply a specially crafted archive to modify files outside the intended extraction directory.
User interaction is required to unpack an untrusted archive. The builtin:unpack-channel builder is sandboxed in sandboxed builds.