Medium severity · published Mar 11, 2024
CVE-2024-27297
Nix is a package manager for Linux and other Unix systems
5.9
CVSS
0.6%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 48% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
NI
Nix · Nixos
before 2.3.18; 2.4 before 2.18.2; 2.19.0 before 2.19.4; 2.20.0 before 2.20.5 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-27297
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-27297
Patch
https://github.com/NixOS/nix/commit/f8170ce9f119e5e6724eb81ff1b5a2d4c0024000
Vendor Advisory
https://github.com/NixOS/nix/security/advisories/GHSA-2ffj-w4mj-pg37
Exploit
https://hackmd.io/03UGerewRcy3db44JQoWvw
guix.gnu.org
https://guix.gnu.org/en/blog/2025/privilege-escalation-vulnerabilities-2025/
More from Nix
8.8
CVE-2024-45593
Nix affected by unsafe NAR unpacking
8.4
CVE-2026-39860
Nix sandbox escape: file write via symlink at FOD `.tmp` copy destination
8.0
CVE-2026-110450
Nix before 2.35.3 and Lix before 2.95.4 allow privilege escalation via a repair operation because it could destroy and then replace a store path before content verification
7.9
CVE-2025-53819
Nix's privilege dropping to build user broke for macOS
7.8
CVE-2019-17365
Nix through 2.3 allows local users to gain access to an arbitrary user's account because the parent directory of the user-profile directories is world writable
