CVE-2025-52991 Details
Description
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.
A vulnerability exists in the Nix, Lix, and Guix package managers due to the use of temporary build directories in a location that is world-readable and world-writable. This configuration allows standard users to manipulate the package manager into using directories with pre-existing content, which could lead to unauthorized actions or data manipulation. The issue is present in Nix versions prior to 2.24.15, 2.26.4, 2.28.4, and 2.29.1; Lix versions prior to 2.91.2, 2.92.2, and 2.93.1; and Guix versions prior to 1.4.0-38.0e79d5b.
Users are advised to upgrade to Nix versions 2.24.15, 2.26.4, 2.28.4, or 2.29.1; Lix versions 2.91.2, 2.92.2, or 2.93.1; and Guix version 1.4.0-38.0e79d5b.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 27, 2025CISA-ADP
Assessed Jun 27, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://discourse.nixos.org/t/security-advisory-privilege-escalations-in-nix-lix-and-guix/66017 | [email protected] | AdvisoryBundleMailing List |
| https://guix.gnu.org/en/blog/2025/privilege-escalation-vulnerabilities-2025/ | [email protected] | BundleRemedyVendor |
| https://labs.snyk.io | [email protected] | Not Applicable |
| https://lix.systems/blog/2025-06-24-lix-cves/ | [email protected] | AdvisoryBundleRemedy |
| https://security.snyk.io/vuln/?search=CVE-2025-52991 | [email protected] | AdvisoryBundle |
| https://security-tracker.debian.org/tracker/CVE-2025-52991 | [email protected] | AdvisoryBundleVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-276 | Incorrect Default Permissions | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Nix | <= 2.24.14 (semver) <= 2.26.3 (semver) <= 2.28.3 (semver) <= 2.29.0 (semver) |
CPE
Remediation
| |
| Lix | <= 2.91.1 (semver) <= 2.92.1 (semver) <= 2.93.0 (semver) |
CPE
Remediation
| |
| Guix | <= 1.4.0-37.096dedd (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 27, 2025 | New CVE Received | [email protected] |
Volerion