CVE-2024-27297: Nix Corruption of fixed-output derivations
Last updated 16 September 2026
Other sources
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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/guixto a version that resolves this vulnerability.Fixed in 1.4.0-9 - Upgrade
Upgrade
debian/nixto a version that resolves this vulnerability.Fixed in 2.26.3+dfsg-1Fixed in 2.34.8+dfsg-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.3.18 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.18.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.19.4 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.20.5
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.