CVE-2024-27297: Nix Corruption of fixed-output derivations
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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-27297?
CVE-2024-27297 has been classified as a high severity vulnerability due to the potential for unauthorized file descriptor access.
How do I fix CVE-2024-27297?
To fix CVE-2024-27297, update your Nix package manager to a version above 2.20.5.
What versions of Nix are affected by CVE-2024-27297?
CVE-2024-27297 affects Nix versions from 2.3.18 to 2.20.5.
What is the impact of CVE-2024-27297?
The impact of CVE-2024-27297 includes potential exposure of file descriptors leading to data leakage or unauthorized operations.
Who is vulnerable to CVE-2024-27297?
Any system running an affected version of the Nix package manager on Linux or Unix-like operating systems is vulnerable to CVE-2024-27297.