CVE-2025-52992: NixOS Nix · Incorrect Permissions
Affects NixOS NixSource CVE Database V5
Not known to be exploited · CVSS 3.2 Low.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 6% 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:L/A:NExploitation 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-26.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| NixOS Nix | Affected
| Fixed in– |
AI-suggested
To mitigate this vulnerability, European organizations should promptly upgrade to the fixed versions of Nix, Lix, and Guix as specified: Nix versions 2.24.15, 2.26.4, 2.28.4, or 2.29.1 and later; Lix versions 2.91.2, 2.92.2, or 2.93.1 and later; and Guix version 1.4.0-38.0e79d5b or later. Until upgrades are applied, organizations should restrict local access to build environments and ensure that only trusted users have permissions to initiate builds or access store paths. Implement strict sandboxing and isolation of build processes to prevent unauthorized modification of store contents. Regularly audit file permissions on store directories and monitor for unexpected changes. Employ integrity verification mechanisms such as cryptographic hashes or signatures on build outputs to detect tampering. Additionally, consider using mandatory access controls (e.g., SELinux, AppArmor) to enforce strict policies around build and store directories. Educate developers and system administrators about the risk and ensure that build failure handling does not leave residual insecure permissions. Finally, maintain up-to-date monitoring and incident response capabilities to detect and respond to any suspicious activity related to package management and build systems.
Description
The Nix, Lix, and Guix package managers fail to properly set permissions when a derivation build fails. This may allow arbitrary processes to modify the content of a store outside of the build sandbox. 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-52992 (opens in a new tab)
- security-tracker.debian.org/tracker/CVE-2025-52992 (opens in a new tab)