CVE catalog

CVE-2026-39860

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

[CVE catalog]

Severity
Critical · CVSS 9
Published
Source
[NVD] · [CVE record]
EPSS
0.19% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannixsid2.34.8+dfsg-1fixed
Debiannixforky2.34.8+dfsg-1fixed
Debiannixtrixie2.26.3+dfsg-1vulnerable
Debiannixbookworm2.8.0-1.1not affected
CpenixNot reportedNot reportedvulnerable
CpenixNot reportedNot reportedunknown
CpenixNot reported2.28.6fixed
CpenixNot reported2.29.3fixed
CpenixNot reported2.30.4fixed
CpenixNot reported2.31.4fixed
CpenixNot reported2.32.7fixed
CpenixNot reported2.33.4fixed
CpenixNot reported2.34.5fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannixsourcesid2.34.6+dfsg-1not yet assignedNot reported[1133004]
Debiannixsourceforky2.34.6+dfsg-1not yet assignedNot reported[1133004]
Debiannixsourcetrixie(unfixed)not yet assignedNot reported[1133004]
DebiannixsourcebookwormNot affectedunimportantNot reported[1133004]
CpenixcpeNot reported2.28.6Not reportedNot reportedNot reported
CpenixcpeNot reported2.29.3Not reportedNot reportedNot reported
CpenixcpeNot reported2.30.4Not reportedNot reportedNot reported
CpenixcpeNot reported2.31.4Not reportedNot reportedNot reported
CpenixcpeNot reported2.32.7Not reportedNot reportedNot reported
CpenixcpeNot reported2.33.4Not reportedNot reportedNot reported
CpenixcpeNot reported2.34.5Not reportedNot reportedNot reported

[Debian bug #1133004]

Notes

[trixie] nix: Minor issue

OpenFactory catalog packages

[Debian 13 (Trixie)]

  • [nix-bin]Affected

    Source package: [nix]

    Details (2)
    • 2.26.3+dfsg-1 · amd64 · trixie

      Affected

      nvd · nix · debian · 13

    • 2.26.3+dfsg-1 · arm64 · trixie

      Affected

      nvd · nix · debian · 13

  • Source package: [nix]

    Details (2)
    • 2.26.3+dfsg-1 · all · trixie

      Affected

      nvd · nix · debian · 13

    • 2.26.3+dfsg-1 · all · trixie

      Affected

      nvd · nix · debian · 13

[Debian 12 (Bookworm)]

  • [nix-bin]Not affected

    Source package: [nix]

    Details (2)
    • 2.8.0-1.1 · arm64 · bookworm

      Not affected

      nvd · nix · debian · bookworm

    • 2.8.0-1.1+b1 · amd64 · bookworm

      Not affected

      nvd · nix · debian · bookworm

  • [nix-setup-systemd]Not affected

    Source package: [nix]

    Details (2)
    • 2.8.0-1.1 · all · bookworm

      Not affected

      nvd · nix · debian · bookworm

    • 2.8.0-1.1 · all · bookworm

      Not affected

      nvd · nix · debian · bookworm

Observed:

References