p PatchFirst

CVE-2026-64846

CVE-2026-64846 · Nix: Arbitrary file truncation outside the sandbox with recursive-nix experimental feature

This page contains facts from public vulnerability sources. Check the original advisory before updating.

Nix is a package manager for Linux and other Unix systems. Prior to 2.35.0, a malicious derivation executed with the recursive-nix experimental feature can exploit a time-of-check/time-of-use race involving final symlink handling in the LocalStore restore path. The race can cause writeFile to follow a substituted final symlink when opening a path with O_TRUNC instead of enforcing FinalSymlink::DontFollow, allowing the Nix process or nix-daemon to create or truncate an empty file outside the build sandbox with the daemon user's permissions. The primitive does not provide arbitrary-content writes and requires winning the race. This issue is fixed in version 2.35.0.

CVSS 2.8 · Low · EPSS 0.1%

Published
Updated

Stack: system

Affected products and versions

  • nix

    Versions
    • < 2.35.0: Affected

    No fix published

  • nix Debian:12

    Versions
    • 2.16.1+dfsg-1
    • 2.16.1+dfsg-2
    • 2.16.1+dfsg-3
    • 2.17.1+dfsg-1
    • 2.18.1+dfsg-1
    • 2.22.1+dfsg-1
    • 2.23.3+dfsg-1
    • 2.23.3+dfsg-2
    • 2.24.12+dfsg-1
    • 2.24.8+dfsg-1
    • 2.24.9+dfsg-1
    • 2.24.9+dfsg-2
    • 2.25.4+dfsg-1
    • 2.26.3+dfsg-1
    • 2.32.5+dfsg-1
    • 2.32.5+dfsg-2
    • 2.34.3+dfsg-1
    • 2.34.6+dfsg-1
    • 2.34.8+dfsg-1
    • 2.8.0-1.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nix Debian:13

    Versions
    • 2.26.3+dfsg-1
    • 2.32.5+dfsg-1
    • 2.32.5+dfsg-2
    • 2.34.3+dfsg-1
    • 2.34.6+dfsg-1
    • 2.34.8+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nix Debian:14

    Versions
    • 2.26.3+dfsg-1
    • 2.32.5+dfsg-1
    • 2.32.5+dfsg-2
    • 2.34.3+dfsg-1
    • 2.34.6+dfsg-1
    • 2.34.8+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nix Ubuntu:Pro:22.04:LTS

    Versions
    • 2.3.10+dfsg1-1
    • 2.3.10+dfsg1-1build1
    • 2.6.0+dfsg-2
    • 2.6.0+dfsg-3
    • 2.6.0+dfsg-3ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nix Ubuntu:Pro:24.04:LTS

    Versions
    • 2.16.1+dfsg-3ubuntu1
    • 2.18.1+dfsg-1ubuntu1
    • 2.18.1+dfsg-1ubuntu2
    • 2.18.1+dfsg-1ubuntu4
    • 2.18.1+dfsg-1ubuntu5
    • 2.18.1+dfsg-1ubuntu5+esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nix Ubuntu:26.10

    Versions
    • 2.34.3+dfsg-1
    • 2.34.6+dfsg-1
    • 2.34.6+dfsg-1build1
    • 2.34.8+dfsg-1
    • 2.34.8+dfsg-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nix Ubuntu:26.04:LTS

    Versions
    • 2.26.3+dfsg-1ubuntu4
    • 2.26.3+dfsg-1ubuntu5
    • 2.32.5+dfsg-1ubuntu3
    • 2.32.5+dfsg-2ubuntu1
    • 2.34.3+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →