Improper access control in nix - CVE-2024-27297
Published: March 7, 2024 / Updated: April 8, 2026
Vulnerability details
The vulnerability allows a remote user to modify the output of fixed-output derivations.
The vulnerability exists due to improper access control in fixed-output derivations when sending file descriptors to files in the Nix store to another program via Unix domain sockets in the abstract namespace. A remote user can send file descriptors to another program running on the host to modify the output of fixed-output derivations.
This issue affects Linux systems and can occur after Nix has registered the path as valid and immutable in the Nix database.
Affected software
Debian Linux
Ubuntu
nix-bin (Ubuntu package)
guix (Debian package)
How to mitigate CVE-2024-27297
nix-bin (Ubuntu package) - update to 2.18.1+dfsg-1ubuntu5+esm2
guix (Debian package) - addressed in versions 1.2.0-4+deb11u2, 1.4.0-3+deb12u1