Skip to main content
CVE-2025-46415VulnerabilityPublished

CVE-2025-46415: NixOS Nix · Time-of-check Time-of-use (TOCTOU) Race Condition

Affects NixOS NixSource CVE Database V5

0

Not known to be exploited · CVSS 3.2 Low.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
3.2Low
How severe the flaw is on the 0–10 CVSS scale.
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:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Jun 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
NixOS NixAffected
  • =0
  • =2.25.0
  • =2.27.0
  • =2.29.0
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

Community reviews

Loading reviews…