CVE-2026-39860 in Nixos Nix and 1 more product
Nix is a package manager for Linux and other Unix systems. A bug in the fix for CVE-2024-27297 allowed for arbitrary overwrites of files writable by the Nix process orchestrating the builds (typically the Nix daemon running as root in multi-user installations) by following symlinks during fixed-output derivation out...
Affects 2 products from 2 vendors. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Nixos | Nix | ≥ 2.18.2, ≤ 2.18.9 ≥ 2.19.4, ≤ 2.19.7 ≥ 2.20.5, ≤ 2.20.9 ≥ 2.21.0, < 2.28.6 ≥ 2.29.0, < 2.29.3 ≥ 2.30.0, < 2.30.4+4 more≥ 2.31.0, < 2.31.4 ≥ 2.32.0, < 2.32.7 ≥ 2.33.0, < 2.33.4 ≥ 2.34.0, < 2.34.5 |
Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Linux Linux Kernel
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 bug in the fix for CVE-2024-27297 allowed for arbitrary overwrites of files writable by the Nix process orchestrating the builds (typically the Nix daemon running as root in multi-user installations) by following symlinks during fixed-output derivation output registration. This affects sandboxed Linux builds - sandboxed macOS builds are unaffected. The location of the temporary output used for the output copy was located inside the build chroot. A symlink, pointing to an arbitrary location in the filesystem, could be created by the derivation builder at that path. During output registration, the Nix process (running in the host mount namespace) would follow that symlink and overwrite the destination with the derivation's output contents. In multi-user installations, this allows all users able to submit builds to the Nix daemon (allowed-users - defaulting to all users) to gain root privileges by modifying sensitive files. This vulnerability is fixed in 2.34.5, 2.33.4, 2.32.7, 2.31.4, 2.30.4, 2.29.3, and 2.28.6.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-39860 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-151815-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N |
| Published | 2026-04-08 |
| Last modified | 2026-07-24 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-61: CWE-61
Related attack patterns (CAPEC)
CAPEC-27 Leveraging Race Conditions via Symbolic Links via CWE-61
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A vulnerability in Nix, a package manager for Linux and Unix systems, allows for arbitrary overwrites of files writable by the Nix process during fixed-output derivation output registration by following symlinks. This affects sandboxed Linux builds.
An attacker can exploit this vulnerability by creating malicious symlinks that point to critical files writable by the Nix process. When the Nix process follows these symlinks during the registration of fixed-output derivations, it can overwrite the targeted files, potentially leading to privilege escalation or other malicious actions.
Questions
What is CVE-2026-39860?
A vulnerability in Nix, a package manager for Linux and Unix systems, allows for arbitrary overwrites of files writable by the Nix process during fixed-output derivation output registration by following symlinks. This affects sandboxed Linux builds.
What is the CVSS score for CVE-2026-39860?
CVE-2026-39860 has CVSS 8.4 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N. EPSS: 0.2%.
Is CVE-2026-39860 actively exploited?
No confirmed active exploitation of CVE-2026-39860 as of 2026-07-25.
How do I remediate CVE-2026-39860?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2026-39860?
CVE-2026-39860 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-07-24.