{"id":"CVE-2025-52991","state":"PUBLISHED","title":"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 pack","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.","publishedAt":"2025-06-27T00:00:00.000Z","updatedAt":"2025-06-27T15:46:39.932Z","severity":{"score":3.2,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N","source":"mitre"},"assigner":"mitre","products":["NixOS Nix"],"affected":[{"vendor":"NixOS","product":"Nix","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.24.15","versionType":"semver"},{"version":"2.25.0","status":"affected","lessThan":"2.26.4","versionType":"semver"},{"version":"2.27.0","status":"affected","lessThan":"2.28.4","versionType":"semver"},{"version":"2.29.0","status":"affected","lessThan":"2.29.1","versionType":"semver"}]}],"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"],"weaknesses":["CWE-276"],"ingestedAt":"2026-10-29T20:09:31.862Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/52xxx/CVE-2025-52991.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-52991","state":"PUBLISHED","datePublished":"2025-06-27T00:00:00.000Z","dateUpdated":"2025-06-27T15:46:39.932Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2025-06-23T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"NixOS","product":"Nix","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.24.15","versionType":"semver"},{"version":"2.25.0","status":"affected","lessThan":"2.26.4","versionType":"semver"},{"version":"2.27.0","status":"affected","lessThan":"2.28.4","versionType":"semver"},{"version":"2.29.0","status":"affected","lessThan":"2.29.1","versionType":"semver"}]}],"references":[{"url":"https://discourse.nixos.org/t/security-advisory-privilege-escalations-in-nix-lix-and-guix/66017"},{"url":"https://lix.systems/blog/2025-06-24-lix-cves/"},{"url":"https://guix.gnu.org/en/blog/2025/privilege-escalation-vulnerabilities-2025/"},{"url":"https://security.snyk.io/vuln/?search=CVE-2025-52991"},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-52991"},{"url":"https://labs.snyk.io"}],"metrics":[{"cvssV3_1":{"version":"3.1","baseScore":3.2,"baseSeverity":"LOW","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-276","description":"CWE-276 Incorrect Default Permissions","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2025-06-27T13:30:32.480Z"},"x_generator":{"engine":"enrichogram 0.0.1"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*","versionEndExcluding":"2.24.15"},{"vulnerable":true,"criteria":"cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*","versionStartIncluding":"2.25.0","versionEndExcluding":"2.26.4"},{"vulnerable":true,"criteria":"cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*","versionStartIncluding":"2.27.0","versionEndExcluding":"2.28.4"},{"vulnerable":true,"criteria":"cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*","versionStartIncluding":"2.29.0","versionEndExcluding":"2.29.1"}]}]}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-06-27T15:21:20.719431Z","id":"CVE-2025-52991","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-06-27T15:46:39.932Z"}}]}}}