CVE-2026-39860: CWE-61: UNIX Symbolic Link (Symlink) Following in NixOS nix
CVE-2026-39860 is a critical vulnerability in the Nix package manager affecting Linux sandboxed builds. It arises from a flaw in the fix for a previous vulnerability (CVE-2024-27297) that allows arbitrary file overwrites by following symbolic links during fixed-output derivation output registration. This can be exploited by users who can submit builds to the Nix daemon, potentially leading to root privilege escalation by overwriting sensitive files. The issue does not affect sandboxed macOS builds. Multiple versions of Nix prior to specific fixed releases are vulnerable. The vulnerability has a CVSS score of 9. A fix is available in Nix versions 2. 28. 6, 2. 29.
AI Analysis
Technical Summary
Nix, a package manager for Unix-like systems, contains a critical vulnerability (CVE-2026-39860) due to improper handling of symbolic links during fixed-output derivation output registration in sandboxed Linux builds. The flaw allows an attacker who can submit builds to the Nix daemon (running as root in multi-user setups) to create symlinks pointing to arbitrary filesystem locations inside the build chroot. When the Nix process follows these symlinks during output registration, it overwrites files writable by the daemon, enabling privilege escalation to root. This vulnerability is a regression from a previous fix (CVE-2024-27297). It affects multiple versions of Nix prior to the fixed releases 2.28.6, 2.29.3, 2.30.4, 2.31.4, 2.32.7, 2.33.4, and 2.34.5. Sandboxed macOS builds are not affected. The CVSS v3.1 base score is 9.0, indicating critical severity.
Potential Impact
Exploitation of this vulnerability allows any user authorized to submit builds to the Nix daemon in multi-user installations to overwrite arbitrary files writable by the daemon, including sensitive system files. This can lead to full root privilege escalation on affected Linux systems. The impact is critical due to the potential for complete system compromise. Sandboxed macOS builds are unaffected, limiting the impact to Linux environments.
Mitigation Recommendations
A fix for this vulnerability is available in Nix versions 2.28.6, 2.29.3, 2.30.4, 2.31.4, 2.32.7, 2.33.4, and 2.34.5. Users should upgrade to one of these versions to remediate the issue. There is no vendor advisory content indicating alternative mitigations or that no action is required. Patch status is confirmed by the provided version information. Users running affected versions should prioritize updating to a fixed release to prevent exploitation.
CVE-2026-39860: CWE-61: UNIX Symbolic Link (Symlink) Following in NixOS nix
Description
CVE-2026-39860 is a critical vulnerability in the Nix package manager affecting Linux sandboxed builds. It arises from a flaw in the fix for a previous vulnerability (CVE-2024-27297) that allows arbitrary file overwrites by following symbolic links during fixed-output derivation output registration. This can be exploited by users who can submit builds to the Nix daemon, potentially leading to root privilege escalation by overwriting sensitive files. The issue does not affect sandboxed macOS builds. Multiple versions of Nix prior to specific fixed releases are vulnerable. The vulnerability has a CVSS score of 9. A fix is available in Nix versions 2. 28. 6, 2. 29.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Nix, a package manager for Unix-like systems, contains a critical vulnerability (CVE-2026-39860) due to improper handling of symbolic links during fixed-output derivation output registration in sandboxed Linux builds. The flaw allows an attacker who can submit builds to the Nix daemon (running as root in multi-user setups) to create symlinks pointing to arbitrary filesystem locations inside the build chroot. When the Nix process follows these symlinks during output registration, it overwrites files writable by the daemon, enabling privilege escalation to root. This vulnerability is a regression from a previous fix (CVE-2024-27297). It affects multiple versions of Nix prior to the fixed releases 2.28.6, 2.29.3, 2.30.4, 2.31.4, 2.32.7, 2.33.4, and 2.34.5. Sandboxed macOS builds are not affected. The CVSS v3.1 base score is 9.0, indicating critical severity.
Potential Impact
Exploitation of this vulnerability allows any user authorized to submit builds to the Nix daemon in multi-user installations to overwrite arbitrary files writable by the daemon, including sensitive system files. This can lead to full root privilege escalation on affected Linux systems. The impact is critical due to the potential for complete system compromise. Sandboxed macOS builds are unaffected, limiting the impact to Linux environments.
Mitigation Recommendations
A fix for this vulnerability is available in Nix versions 2.28.6, 2.29.3, 2.30.4, 2.31.4, 2.32.7, 2.33.4, and 2.34.5. Users should upgrade to one of these versions to remediate the issue. There is no vendor advisory content indicating alternative mitigations or that no action is required. Patch status is confirmed by the provided version information. Users running affected versions should prioritize updating to a fixed release to prevent exploitation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-07T19:13:20.379Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d6c32c1cc7ad14dab1ab39
Added to database: 4/8/2026, 9:05:48 PM
Last enriched: 4/16/2026, 12:22:29 PM
Last updated: 5/23/2026, 6:43:41 PM
Views: 135
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.