Skip to main content

Nix CVE-2026-39860

| EUVDEUVD-2026-20626 HIGH
UNIX Symbolic Link (Symlink) Following (CWE-61)
2026-04-08 security-advisories@github.com
8.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Create symlink in build chroot
  2. Exploit
    Register fixed-output derivation
  3. Execution
    Follow symlink during output registration
  4. Impact
    Overwrite arbitrary files as root

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling UNIX symlink resolution
Exploitation Conditions

Requires multi-user Nix installation on Linux with Nix daemon running as root. Attacker must control build inputs for fixed-output derivations in sandboxed builds. Local access needed to create malicious symlinks in build chroot during output registration phase.

Impact

Critical privilege escalation in multi-user Nix installations. Unauthenticated local attackers can exploit symlink-following during output registration to overwrite arbitrary files as root. CVSS 9.0 reflects severe impact (confidentiality, integrity) across system scope. High priority for any multi-user Nix deployment; single-user and macOS installations unaffected.

Exploit ScenarioDerived

Attacker submits a sandboxed derivation creating a symlink at the temporary output path pointing to sensitive system file (e.g., /etc/sudoers). During registration, Nix daemon follows symlink and overwrites target with derivation contents, achieving root-level file modification. No public exploit identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 08, 2026

Local privilege escalation in Nix package manager daemon (versions prior to 2.34.5/2.33.4/2.32.7/2.31.4/2.30.4/2.29.3/2.28.6) allows unprivileged users to gain root access in multi-user Linux installations. Incomplete fix for CVE-2024-27297 permits symlink attacks during fixed-output derivation registration, enabling arbitrary file overwrites as root. Attackers exploit sandboxed build registration by placing symlinks in temporary output paths, causing the daemon to follow symlinks and overwrite sensitive system files with controlled content. Affects default configurations where all users can submit builds. No public exploit identified at time of analysis.

RemediationAI

Vendor-released patches: upgrade to Nix 2.34.5, 2.33.4, 2.32.7, 2.31.4, 2.30.4, 2.29.3, or 2.28.6 depending on installed branch. Primary fix commits available at https://github.com/NixOS/nix/commit/244f3eee0bbc7f11e9b383a15ed7368e2c4becc9, https://github.com/NixOS/nix/commit/4bc5a3510fa3735798f9ed3a2a30a3ea7b32343a, https://github.com/NixOS/nix/commit/7794354a982449927ee7401cdeb573ddd16c4688, and https://github.com/NixOS/nix/commit/a3163b9eabb952b4aa96e376dea95ebcca97b31a. Official security advisory: https://github.com/NixOS/nix/security/advisories/GHSA-g3g9-5vj6-r3gj. Temporary mitigation for multi-user installations: restrict allowed-users in nix.conf to trusted administrators only, preventing untrusted build submissions. Single-user installations (daemon not running as root) have reduced impact. Verify patched version post-upgrade via nix --version.

Affected VersionsENISA

nix 2.32.0, < 2.32.7
nix 2.18.2, ≤ 2.18.9
nix 2.31.0, < 2.31.4
nix 2.33.0, < 2.33.4
nix 2.30.0, < 2.30.4
nix 2.19.4, ≤ 2.19.7
nix 2.21, < 2.28.6
nix 2.20.5, ≤ 2.20.9
nix 2.34.0, < 2.34.5
nix 2.29.0, < 2.29.3

Affected Packages

euvd nix_2_18_2 no fix
euvd nix_2_19_4 no fix
euvd nix_2_20_5 no fix
euvd nix_2_21 fix: 2.28.6
euvd nix_2_29_0 fix: 2.29.3
euvd nix_2_30_0 fix: 2.30.4
euvd nix_2_31_0 fix: 2.31.4
euvd nix_2_32_0 fix: 2.32.7
euvd nix_2_33_0 fix: 2.33.4
euvd nix_2_34_0 fix: 2.34.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 10 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CWE-61 path traversal via symlink during output registration. The Nix daemon operates in host mount namespace while temporary output resides inside build chroot. Builder creates symlink at predictable temporary path; daemon follows symlink during file copy, writing derivation output to arbitrary filesystem locations. Sandboxing isolation failure between builder and daemon contexts enables privilege boundary violation.

Know when Nix gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 8.4 HIGH
AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
SUSE HIGH

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

4
Severity Changed
Jul 24, 2026 - 21:22 NVD
CRITICAL HIGH
CVSS changed
Jul 24, 2026 - 21:22 NVD
9.0 (CRITICAL) 8.4 (HIGH)
Patch available
Apr 16, 2026 - 05:29 EUVD
2.32.7,2.31.4,2.33.4
CVE Published
Apr 08, 2026 - 21:17 nvd
CRITICAL 9.0

DescriptionNVD

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.

Executive ViewAI

Why It Matters

Nix package manager versions prior to 2.34.5 (and corresponding earlier branch versions) contain a local privilege escalation vulnerability that allows unprivileged users to gain root access on multi-user Linux systems. This directly undermines access controls in shared development and build environments, enabling attackers to compromise system integrity and install persistent backdoors. Organizations running Nix in multi-user configurations must prioritize immediate patching.

Business Impact: Severe
Compensating Controls

Apply vendor patch. If immediate patching is not possible: disable multi-user daemon access by restricting build submission permissions to root-only accounts; implement filesystem monitoring on /nix/store and system critical paths to detect unauthorized symlink creation or file overwrites; isolate affected Nix systems from production workloads until patched.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

62
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: High

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy