Skip to main content
VulnerabilityPublished

CVE-2025-52991: NixOS Nix · Incorrect Default Permissions

Affects NixOS NixSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 3.2 Low.

Data as of 2 Nov 2026, 10:57 UTC

CVSS 3.1 base score
3.2Low
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Jun 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 2 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
NixOS NixAffected
  • 0 – 2.29.0
4 affected builds
Fixed in–

AI-suggested

To mitigate CVE-2025-52991, European organizations should implement the following specific measures: 1) Upgrade all affected package managers (Nix, Lix, Guix) to the latest patched versions where the default permissions for temporary build directories are corrected to restrict access appropriately. 2) Enforce strict file system permissions on temporary build directories, ensuring they are accessible only to the user performing the build process. 3) Isolate build environments using containerization or sandboxing techniques to prevent unauthorized users from accessing or manipulating build directories. 4) Implement robust access controls and user segregation on build servers and developer workstations to minimize the risk of untrusted users interfering with build processes. 5) Monitor build logs and artifacts for anomalies that could indicate tampering or unauthorized modifications. 6) Incorporate integrity verification mechanisms such as reproducible builds and cryptographic signing of build outputs to detect unauthorized changes. 7) Educate developers and system administrators about the risks of improper permissions and the importance of secure build environments. These targeted actions go beyond generic advice by focusing on build environment hardening and process integrity specific to the affected package managers.

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.

References

Community reviews

Loading reviews…