{"id":"CVE-2025-52993","state":"PUBLISHED","title":"A race condition in the Nix, Lix, and Guix package managers enables changing the ownership of arbitrary files to the UID and GID of the build user (e.g., nixbld* or guixbuild*). Th","description":"A race condition in the Nix, Lix, and Guix package managers enables changing the ownership of arbitrary files to the UID and GID of the build user (e.g., nixbld* or guixbuild*). 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:04:24.269Z","severity":{"score":5.6,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L","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://labs.snyk.io","https://security.snyk.io/vuln/?search=CVE-2025-52993","https://security-tracker.debian.org/tracker/CVE-2025-52993"],"weaknesses":["CWE-362"],"ingestedAt":"2026-10-29T20:09:31.862Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/52xxx/CVE-2025-52993.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-52993","state":"PUBLISHED","datePublished":"2025-06-27T00:00:00.000Z","dateUpdated":"2025-06-27T15:04:24.269Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2025-06-23T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"A race condition in the Nix, Lix, and Guix package managers enables changing the ownership of arbitrary files to the UID and GID of the build user (e.g., nixbld* or guixbuild*). 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://labs.snyk.io"},{"url":"https://security.snyk.io/vuln/?search=CVE-2025-52993"},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-52993"}],"metrics":[{"cvssV3_1":{"version":"3.1","baseScore":5.6,"baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-362","description":"CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2025-06-27T13:36:03.468Z"},"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-27T14:59:31.536727Z","id":"CVE-2025-52993","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:04:24.269Z"}}]}}}