CVE-2024-27297: Nixos Nix
Medium severity, CVSS 5.9. EPSS: 0.7% probability of exploitation activity in the next 30 days.
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.
What to do
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- Nixos Nix, before 2.3.18: fixed in 2.3.18
- Nixos Nix, from 2.4, before 2.18.2: fixed in 2.18.2
- Nixos Nix, from 2.19.0, before 2.19.4: fixed in 2.19.4
- Nixos Nix, from 2.20.0, before 2.20.5: fixed in 2.20.5
Affected products
- Nixos Nix: before 2.3.18 (fixed in 2.3.18); from 2.4, before 2.18.2 (fixed in 2.18.2); from 2.19.0, before 2.19.4 (fixed in 2.19.4); from 2.20.0, before 2.20.5 (fixed in 2.20.5)
Published 2024-03-11. Last modified 2026-06-17.