BreachSpiderVerified, not vibes

CVE-2025-52991 in Nixos Nix

Low 3.2

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 affe...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.13.2
EPSS0.2%
EPSS percentile9th
FixUnknown

Requires local access, high complexity, no authentication required, no user interaction needed, can impact systems beyond the vulnerable component, no confidentiality impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Nixos Nix < 2.24.15 ≥ 2.25.0, < 2.26.4 ≥ 2.27.0, < 2.28.4 ≥ 2.29.0, < 2.29.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-52991
BreachSpider IDBS-2025-GLOBAL-262732-L
CVSS vectorCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N
Published2025-06-27
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-276: Incorrect Default Permissions

Software sets overly permissive default access rights during installation or resource creation.

Related attack patterns (CAPEC)

CAPEC-81 Web Server Logs Tampering via CWE-276

CAPEC-127 Directory Indexing via CWE-276

CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-276

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

The Nix, Lix, and Guix package managers use world-readable and world-writable temporary build directories, which can be exploited by standard users to manipulate build processes and potentially execute unauthorized actions.

Standard users can create or manipulate pre-existing content in the world-readable and world-writable temporary build directories used by the package managers. This can lead to unauthorized code execution or data manipulation during the build process.

Questions

What is CVE-2025-52991?

The Nix, Lix, and Guix package managers use world-readable and world-writable temporary build directories, which can be exploited by standard users to manipulate build processes and potentially execute unauthorized actions.

What is the CVSS score for CVE-2025-52991?

CVE-2025-52991 has CVSS 3.2 (Low). Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N. EPSS: 0.2%.

Is CVE-2025-52991 actively exploited?

No confirmed active exploitation of CVE-2025-52991 as of 2026-09-25.

How do I remediate CVE-2025-52991?

Priority: HIGH.

What systems are affected by CVE-2025-52991?

CVE-2025-52991 affects Nixos Nix.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Nixos","product":"Nix","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.