CVE-2025-46415: NixOS Nix · Time-of-check Time-of-use (TOCTOU) Race Condition
Affects NixOS NixSource CVE Database V5
Not known to be exploited · CVSS 3.2 Low.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 3% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 27 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| NixOS Nix | Affected
| Fixed in– |
AI-suggested
To mitigate this vulnerability effectively, European organizations should: 1) Upgrade affected package managers to the fixed versions beyond those listed as vulnerable (e.g., Nix 2.24.15 or later, Lix 2.91.2 or later, Guix 1.4.0-38.0e79d5b or later) as soon as patches become available. 2) Implement strict access controls to limit local user permissions, ensuring only trusted users can execute package management operations. 3) Employ file system monitoring and integrity checking tools to detect unauthorized deletions or modifications of critical directories used by these package managers. 4) Harden CI/CD and development environments by isolating build and deployment processes, minimizing the risk of exploitation by compromised local accounts. 5) Educate system administrators and developers about the risks of TOCTOU race conditions and encourage secure coding and operational practices to avoid similar issues. 6) Monitor vendor advisories and security bulletins for updates or patches related to this vulnerability. 7) Consider deploying runtime protection mechanisms or sandboxing to contain potential damage from race condition exploits. These measures go beyond generic advice by focusing on operational controls, environment hardening, and proactive monitoring tailored to the nature of this vulnerability.
Description
A race condition in the Nix, Lix, and Guix package managers allows the removal of content from arbitrary folders. This affects Nix before 2.24.15, 2.26.4, 2.28.4, and 2.29.1; Lix before 2.91.2, 2.92.2, and 2.93.1; and Guix before 1.4.0-38.0e79d5b.
References
- discourse.nixos.org/t/security-advisory-privilege-escalations-in-nix-lix-and-guix/66017 (opens in a new tab)
- lix.systems/blog/2025-06-24-lix-cves/ (opens in a new tab)
- guix.gnu.org/en/blog/2025/privilege-escalation-vulnerabilities-2025/ (opens in a new tab)
- labs.snyk.io (opens in a new tab)
- security.snyk.io/vuln/?search=CVE-2025-46415 (opens in a new tab)
- security-tracker.debian.org/tracker/CVE-2025-46415 (opens in a new tab)