Security mailing lists by PureSourceCode

CVE-2026-39860

HIGH 8.4CVSS 3.1

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
8 Apr 2026
Last modified
24 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-61
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 CRITICAL 9.0 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.4 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD nixos nix
cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*
>= 2.18.2, <= 2.18.9
NVD nixos nix
cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*
>= 2.19.4, <= 2.19.7
NVD nixos nix
cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*
>= 2.20.5, <= 2.20.9
NVD nixos nix
cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*
>= 2.21.0, < 2.28.6 2.28.6
NVD nixos nix
cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*
>= 2.29.0, < 2.29.3 2.29.3
NVD nixos nix
cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*
>= 2.30.0, < 2.30.4 2.30.4
NVD nixos nix
cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*
>= 2.31.0, < 2.31.4 2.31.4
NVD nixos nix
cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*
>= 2.32.0, < 2.32.7 2.32.7
NVD nixos nix
cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*
>= 2.33.0, < 2.33.4 2.33.4
NVD nixos nix
cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*
>= 2.34.0, < 2.34.5 2.34.5

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 8 Apr 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.