CVE-2024-27297 in Nixos Nix
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 der...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Nixos | Nix | < 2.3.18 ≥ 2.4, < 2.18.2 ≥ 2.19.0, < 2.19.4 ≥ 2.20.0, < 2.20.5 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-27297 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-051386-M |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| Published | 2024-03-11 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-367: CWE-367
Related attack patterns (CAPEC)
CAPEC-27 Leveraging Race Conditions via Symbolic Links via CWE-367
CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions via CWE-367
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2024-27297 affects Nix, a package manager for Linux and Unix systems, by allowing fixed-output derivations to send file descriptors to files in the Nix store via Unix domain sockets, potentially modifying the output of the derivation after it has been registered as valid and immutable.
An attacker can exploit this vulnerability by sending malicious file descriptors to fixed-output derivations via Unix domain sockets in the abstract namespace, which can lead to the modification of files in the Nix store.
Questions
What is CVE-2024-27297?
CVE-2024-27297 affects Nix, a package manager for Linux and Unix systems, by allowing fixed-output derivations to send file descriptors to files in the Nix store via Unix domain sockets, potentially modifying the output of the derivation after it has been registered as valid and immutable.
What is the CVSS score for CVE-2024-27297?
CVE-2024-27297 has CVSS 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 0.7%.
Is CVE-2024-27297 actively exploited?
No confirmed active exploitation of CVE-2024-27297 as of 2026-09-25.
How do I remediate CVE-2024-27297?
Priority: MEDIUM. PSIRT: [email protected]
What systems are affected by CVE-2024-27297?
CVE-2024-27297 affects Nixos Nix.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Nixos","product":"Nix","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.