CVE-2024-27297

Name
CVE-2024-27297
Description
Nix is a package manager for Linux and other Unix systems. A fixed-output derivations on Linux can send file descriptors to files in the Nix store to another program running on the host (or another fixed-output derivation) via Unix domain sockets in the abstract namespace. This allows to modify the output of the derivation, after Nix has registered the path as "valid" and immutable in the Nix database. In particular, this allows the output of fixed-output derivations to be modified from their expected content. This issue has been addressed in versions 2.3.18 2.18.2 2.19.4 and 2.20.5. Users are advised to upgrade. There are no known workarounds for this vulnerability.
NVD Severity
medium
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
MISC https://github.com/NixOS/nix/commit/f8170ce9f119e5e6724eb81ff1b5a2d4c0024000
CONFIRM https://github.com/NixOS/nix/security/advisories/GHSA-2ffj-w4mj-pg37
MISC https://hackmd.io/03UGerewRcy3db44JQoWvw
af854a3a-2127-422b-91ae-364da2661108 https://guix.gnu.org/en/blog/2025/privilege-escalation-vulnerabilities-2025/

Match rules

CPE URI Source package Min version Max version
nix >= 2.3.0 < 2.3.18
nix >= 2.4.0 < 2.18.2
nix >= 2.19.0 < 2.19.4
nix >= 2.20.0 < 2.20.5

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
nix edge-community 2.20.5-r0 Hoang Nguyen <folliekazetani@protonmail.com> fixed
nix 3.22-community 2.20.5-r0 None fixed
nix 3.21-community 2.20.5-r0 None fixed
nix 3.20-community 2.20.5-r0 None fixed
guix edge-community 1.4.0-r5 Sören Tempel <soeren+alpine@soeren-tempel.net> fixed
guix 3.22-community 1.4.0-r5 None fixed
guix 3.21-community 1.4.0-r5 None fixed
guix 3.20-community 1.4.0-r5 Sören Tempel <soeren+alpine@soeren-tempel.net> fixed
guix 3.19-community 1.4.0-r5 Sören Tempel <soeren+alpine@soeren-tempel.net> fixed