Skip to main content
Network Thinking Solutions Logo

CVE-2026-39860

Nix sandbox escape: file write via symlink at FOD .tmp copy destination

All CVEs
CVE-2026-39860Published 4/8/2026

Nix sandbox escape: file write via symlink at FOD .tmp copy destination

Vendor advisory
CVSS9.0Critical

Overview

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.

Published
4/8/2026
Last modified
7/24/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
nix
nixos
≥ 2.18.2, ≤ 2.18.9

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
nix
nixos
≥ 2.19.4, ≤ 2.19.7

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
nix
nixos
≥ 2.20.5, ≤ 2.20.9

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
nix
nixos
≥ 2.21.0, < 2.28.6

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
nix
nixos
≥ 2.29.0, < 2.29.3

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
nix
nixos
≥ 2.30.0, < 2.30.4

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
nix
nixos
≥ 2.31.0, < 2.31.4

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
nix
nixos
≥ 2.32.0, < 2.32.7

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
nix
nixos
≥ 2.33.0, < 2.33.4

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
nix
nixos
≥ 2.34.0, < 2.34.5

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
nix
NixOS
>= 2.21, < 2.28.6

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
nix
NixOS
>= 2.29.0, < 2.29.3

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
nix
NixOS
>= 2.30.0, < 2.30.4

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
nix
NixOS
>= 2.31.0, < 2.31.4

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
nix
NixOS
>= 2.32.0, < 2.32.7

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
nix
NixOS
>= 2.33.0, < 2.33.4

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
nix
NixOS
>= 2.34.0, < 2.34.5

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
nix
NixOS
>= 2.20.5, <= 2.20.9

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
nix
NixOS
>= 2.19.4, <= 2.19.7

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
nix
NixOS
>= 2.18.2, <= 2.18.9

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 9. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.