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
guix (Debian package)
nix (Ubuntu package)
How to mitigate CVE-2024-27297
guix (Debian package) - addressed in versions 1.2.0-4+deb11u2, 1.4.0-3+deb12u1
nix (Ubuntu package) - addressed in versions 2.6.0+dfsg-3ubuntu0.1~esm1, 2.18.1+dfsg-1ubuntu5+esm2