CVE-2024-27297
published medium CVSS 3.1 · 6.3Nix Corruption of fixed-output derivations
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| NixOS | — | nix>= 2.3.0, < 2.3.18 · >= 2.4.0, < 2.18.2 · >= 2.19.0, < 2.19.4 · >= 2.20.0, < 2.20.5 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | nix | Fixed | 2.20.5-r0 | Package fix record |
| Ubuntu | noble | nix | Advisory build | 2.18.1+dfsg-1ubuntu5+esm2 | USN-7633-1 |
| Debian | bookworm | guix | Advisory build | 1.4.0-3+deb12u1 | DSA-5669-1 |
| Alpine Linux | v3.20 | nix | Fixed | 2.20.5-r0 | Package fix record |
| Alpine Linux | v3.21 | nix | Fixed | 2.20.5-r0 | Package fix record |
| Alpine Linux | v3.22 | nix | Fixed | 2.20.5-r0 | Package fix record |
| Alpine Linux | v3.23 | nix | Fixed | 2.20.5-r0 | Package fix record |
Show 12 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.24 | nix | Fixed | 2.20.5-r0 | Package fix record |
| Alpine Linux | edge | guix | Fixed | 1.4.0-r5 | Package fix record |
| Alpine Linux | v3.19 | guix | Fixed | 1.4.0-r5 | Package fix record |
| Alpine Linux | v3.20 | guix | Fixed | 1.4.0-r5 | Package fix record |
| Alpine Linux | v3.21 | guix | Fixed | 1.4.0-r5 | Package fix record |
| Alpine Linux | v3.22 | guix | Fixed | 1.4.0-r5 | Package fix record |
| Alpine Linux | v3.23 | guix | Fixed | 1.4.0-r5 | Package fix record |
| Alpine Linux | v3.24 | guix | Fixed | 1.4.0-r5 | Package fix record |
| Debian | bullseye | guix | Advisory build | 1.2.0-4+deb11u2 | DSA-5669-1 |
| Ubuntu | jammy | guix | Advisory build | 1.3.0-4ubuntu0.1~esm1 | USN-8773-1 |
| Ubuntu | noble | nix-bin | Advisory build | 2.18.1+dfsg-1ubuntu5+esm2 | USN-7633-1 |
| Ubuntu | noble | nix-setup-systemd | Advisory build | 2.18.1+dfsg-1ubuntu5+esm2 | USN-7633-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| NixOS | nix | >= 2.3.0, < 2.3.18 (affected)>= 2.4.0, < 2.18.2 (affected)>= 2.19.0, < 2.19.4 (affected)>= 2.20.0, < 2.20.5 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-367 CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
References
4Provider assertions
3GitHub_M · cna
Nix Corruption of fixed-output derivations
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- d89a809cc73883be9a2514cdc84c1c01c933d4576edcf8646df2aaa3aa4a0ec9
- Ingested
- 23 Sep 2026, 08:20:47 UTC
- Source record
- Official CVE record