Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
NixOS nix
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Nix是Nix组织开源的一个可复现构建与包管理的系统工具。 Nix 2.35.0之前版本存在安全漏洞,该漏洞源于LocalStore恢复路径中最终符号链接处理的检查时间/使用时间竞争条件,可能导致Nix进程或nix-daemon在构建沙箱外以守护进程用户权限创建或截断空文件。

CVSS 2.8 · Low EPSS 0.11% · P1

Possible ATT&CK Techniques 1 AI

T1068 · Exploitation for Privilege Escalation

Affected Version Matrix 1

VendorProduct Version RangeStatus
NixOS nix < 2.35.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-64846

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Nix: Arbitrary file truncation outside the sandbox with recursive-nix experimental feature
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
CWE-61
Source: CVE Program / CVE List V5
Vulnerability Title
Nix 竞争条件问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Nix是Nix组织开源的一个可复现构建与包管理的系统工具。 Nix 2.35.0之前版本存在安全漏洞,该漏洞源于LocalStore恢复路径中最终符号链接处理的检查时间/使用时间竞争条件,可能导致Nix进程或nix-daemon在构建沙箱外以守护进程用户权限创建或截断空文件。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
NixOS nix < 2.35.0 -

II. Public POCs for CVE-2026-64846

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-64846

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-64846 (2)

Vendor Advisories for CVE-2026-64846 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-64846

No comments yet


Leave a comment