cbcvebase.
CVE-2024-27297
published 2026-04-08

CVE-2024-27297: Nix is a package manager for Linux and other Unix systems. A bug in the fix for CVE-2024-27297 allowed for arbitrary overwrites of files writable by the Nix…

PriorityP433medium5.9CVSS 3.1
AVNACHPRNUINSUCNIHAN
EPSS
0.59%
43.9th percentile
Nix is a package manager for Linux and other Unix systems. A bug in the fix for CVE-2024-27297 allowed for arbitrary overwrites of files writable by the Nix process orchestrating the builds (typically the Nix daemon running as root in multi-user installations) by following symlinks during fixed-output derivation output registration. This affects sandboxed Linux builds - sandboxed macOS builds are unaffected. The location of the temporary output used for the output copy was located inside the build chroot. A symlink, pointing to an arbitrary location in the filesystem, could be created by the derivation builder at that path. During output registration, the Nix process (running in the host mount namespace) would follow that symlink and overwrite the destination with the derivation's output contents. In multi-user installations, this allows all users able to submit builds to the Nix daemon (allowed-users - defaulting to all users) to gain root privileges by modifying sensitive files. This vulnerability is fixed in 2.34.5, 2.33.4, 2.32.7, 2.31.4, 2.30.4, 2.29.3, and 2.28.6.

Affected

32 ranges· showing 25
VendorProductVersion rangeFixed in
debianguix< guix 1.2.0-4+deb11u2 (bullseye)guix 1.2.0-4+deb11u2 (bullseye)
debiannix< guix 1.2.0-4+deb11u2 (bullseye)guix 1.2.0-4+deb11u2 (bullseye)
debiannix
gnuguix>= 0 < 1.2.0-4+deb11u21.2.0-4+deb11u2
nixosnix< 2.3.182.3.18
nixosnix
nixosnix
nixosnix
nixosnix
nixosnix
nixosnix
nixosnix
nixosnix
nixosnix
nixosnix
nixosnix>= 0 < 2.22.1+dfsg-12.22.1+dfsg-1
nixosnix>= 0 < 2.22.1+dfsg-12.22.1+dfsg-1
nixosnix>= 0 < 2.6.0+dfsg-3ubuntu0.1~esm12.6.0+dfsg-3ubuntu0.1~esm1
nixosnix>= 0 < 2.18.1+dfsg-1ubuntu5+esm22.18.1+dfsg-1ubuntu5+esm2
nixosnix2.18.2 – 2.18.9
nixosnix>= 2.19.0 < 2.19.42.19.4
nixosnix2.19.4 – 2.19.7
nixosnix>= 2.20.0 < 2.20.52.20.5
nixosnix2.20.5 – 2.20.9
nixosnix>= 2.21.0 < 2.28.62.28.6

CVSS provenance

nvdv3.15.9MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
osv5.9MEDIUM
vendor_debian6.3MEDIUM
vendor_ubuntu6.3MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.