CVE-2025-52991
The Nix, Lix, and Guix package managers default to using temporary build directories in a world-readable and world-writable location. This allows standard users to deceive the package manager into using directories with pre-existing content, potentially leading to unauthorized actions or data manipulation. 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.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | guix | Fix pending | UBUNTU-CVE-2025-52991 | |
| Ubuntu 22.04 | guix | Fix pending | UBUNTU-CVE-2025-52991 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- NixOS Nix: affected: before 2.24.15, 2.25.0 to before 2.26.4, 2.27.0 to before 2.28.4, 2.29.0 to before 2.29.1; fixed in
2.24.15,2.26.4,2.28.4,2.29.1
References
- https://discourse.nixos.org/t/security-advisory-privilege-escalations-in-nix-lix-and-guix/66017
- https://lix.systems/blog/2025-06-24-lix-cves/
- https://guix.gnu.org/en/blog/2025/privilege-escalation-vulnerabilities-2025/
- https://security.snyk.io/vuln/?search=CVE-2025-52991
- https://security-tracker.debian.org/tracker/CVE-2025-52991
- https://labs.snyk.io
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.