cve.bz

CVE-2026-39860 nixos nix: UNIX Symbolic Link (Symlink) Following

8.4 highEPSS 0.2%Fix available

High (8.4) in nixos nix. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.4 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 9th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-04-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-61 UNIX Symbolic Link (Symlink) Following
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-39860 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-39860?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-39860?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-39860 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
nixos:nixfrom 2.18.2 through 2.18.9
nixos:nixfrom 2.19.4 through 2.19.7
nixos:nixfrom 2.20.5 through 2.20.9
nixos:nixfrom 2.21.0 before 2.28.6
nixos:nixfrom 2.29.0 before 2.29.3
nixos:nixfrom 2.30.0 before 2.30.4
nixos:nixfrom 2.31.0 before 2.31.4
nixos:nixfrom 2.32.0 before 2.32.7
nixos:nixfrom 2.33.0 before 2.33.4
nixos:nixfrom 2.34.0 before 2.34.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13nixno fix listedDEBIAN-CVE-2026-39860
Debian14nix2.34.6+dfsg-1DEBIAN-CVE-2026-39860
Ubuntu25.10, 26.04:LTS, 26.10 and 2 morenixno fix listedUBUNTU-CVE-2026-39860

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON