CVE-2024-27297Nix 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.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | nix | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | nix | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | nix | Fix pending | 2.18.1+dfsg-1ubuntu5+esm2 (Ubuntu Pro) | UBUNTU-CVE-2024-27297 |
| Ubuntu 22.04 | guix | Fix pending | 1.3.0-4ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-27297 |
| Debian 14 | nix | Fixed | 2.22.1+dfsg-1 | DEBIAN-CVE-2024-27297 |
| Debian 13 | nix | Fixed | 2.22.1+dfsg-1 | DEBIAN-CVE-2024-27297 |
| Debian 12 | nix | Fix pending | DEBIAN-CVE-2024-27297 | |
| Alpine Linux 3.24 | guix | Fixed | 1.4.0-r5 | ALPINE-CVE-2024-27297 |
| Alpine Linux 3.24 | nix | Fixed | 2.20.5-r0 | ALPINE-CVE-2024-27297 |
| Alpine Linux 3.23 | guix | Fixed | 1.4.0-r5 | ALPINE-CVE-2024-27297 |
| Alpine Linux 3.23 | nix | Fixed | 2.20.5-r0 | ALPINE-CVE-2024-27297 |
| Alpine Linux 3.22 | guix | Fixed | 1.4.0-r5 | ALPINE-CVE-2024-27297 |
| Alpine Linux 3.22 | nix | Fixed | 2.20.5-r0 | ALPINE-CVE-2024-27297 |
| Alpine Linux 3.21 | guix | Fixed | 1.4.0-r5 | ALPINE-CVE-2024-27297 |
| Alpine Linux 3.21 | nix | Fixed | 2.20.5-r0 | ALPINE-CVE-2024-27297 |
| Alpine Linux 3.20 | guix | Fixed | 1.4.0-r5 | ALPINE-CVE-2024-27297 |
| Alpine Linux 3.20 | nix | Fixed | 2.20.5-r0 | ALPINE-CVE-2024-27297 |
| Alpine Linux 3.19 | guix | Fixed | 1.4.0-r5 | ALPINE-CVE-2024-27297 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- NixOS nix: affected: >= 2.3.0, < 2.3.18, >= 2.4.0, < 2.18.2, >= 2.19.0, < 2.19.4, >= 2.20.0, < 2.20.5
References
- https://github.com/NixOS/nix/security/advisories/GHSA-2ffj-w4mj-pg37
- https://github.com/NixOS/nix/commit/f8170ce9f119e5e6724eb81ff1b5a2d4c0024000
- https://hackmd.io/03UGerewRcy3db44JQoWvw
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.