Skip to main content

Nix / Lix EUVDEUVD-2026-27163

| CVE-2026-44028 HIGH
Uncontrolled Recursion (CWE-674)
2026-05-05 cve@mitre.org
7.5
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain local user access
  2. Delivery
    Craft malicious NAR archive
  3. Exploit
    Submit to nix-daemon
  4. Install
    Trigger unbounded recursion
  5. C2
    Overflow coroutine stack to heap
  6. Execute
    Bypass ASLR via information leakage
  7. Impact
    Overwrite heap memory structures
  8. Step 8
    Achieve code execution as root

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

Exploitation requires local system access with permissions to connect to nix-daemon, which by default is granted to all users in multi-user Nix installations (configurable via allowed-users in /etc/nix/nix.conf). The attacker must be able to submit maliciously crafted NAR archives for processing by the daemon, achievable through normal Nix operations like nix-store --import, nix copy, or build processes that reference malicious inputs. Multi-user installation mode is required for privilege escalation impact-single-user installations where the daemon runs as the invoking user are not vulnerable to privilege boundary crossing. Successful exploitation demands bypassing ASLR (Address Space Layout Randomization), which increases attack complexity but is feasible for local attackers with repeated attempts or information leakage vectors. The target system must be running vulnerable versions (Nix 2.24.4-2.34.6 or Lix 2.93.0-2.95.1) with the coroutine-based NAR parser. Exploitation is limited by the AC:H (high complexity) rating due to ASLR bypass requirements and precise heap manipulation needed for reliable code execution.

Impact

Real-world risk is significant but nuanced. The CVSS score of 7.5 (High) reflects local attack vector with high complexity (AC:H) requiring low privileges (PR:L) but achieving cross-scope impact (S:C) with high confidentiality and integrity breach. The AC:H rating accounts for ASLR bypass requirements, making exploitation non-trivial but achievable by skilled attackers. EPSS exploitation probability data is not provided, but the vendor's coordinated disclosure via GHSA, NixOS Discourse, and oss-security mailing lists indicates serious treatment. The attack requires local access and allowed-users daemon permissions (default: all system users), limiting exposure compared to network-based vulnerabilities. However, the privilege escalation from unprivileged user to root represents complete system compromise. Multi-user Nix installations in shared environments (build farms, CI/CD infrastructure, multi-tenant development servers) face elevated risk. Single-user installations where the daemon runs as the user account are not vulnerable to privilege escalation. No CISA KEV listing or public POC is identified at time of analysis, suggesting exploitation remains theoretical or targeted. The complexity of crafting NAR archives to precisely control stack overflow makes automated exploitation unlikely, consistent with SSVC framework assessment of low automatability but high technical impact. Priority should be given to patching multi-user daemon installations, particularly those accessible to untrusted local users.

Exploit ScenarioDerived

A malicious developer with local access to a shared build server running multi-user Nix submits a build job containing a specially crafted NAR archive with deeply nested directory structures. When nix-daemon (running as root) parses this archive, unbounded recursion exhausts the coroutine stack without triggering guard page protections. The attacker leverages ASLR bypass techniques (e.g., heap spraying combined with information leakage from timing side-channels or shared libraries) to precisely overwrite heap memory with malicious data structures. This corrupts daemon control flow to execute arbitrary code as root, granting the attacker complete control over the build infrastructure, access to secrets in the Nix store, and ability to inject backdoors into all subsequent package builds.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 05, 2026

Stack-to-heap overflow in Nix and Lix daemon's NAR parser enables local privilege escalation to root in multi-user installations. Low-privileged users with daemon access can trigger unbounded recursion in the coroutine-based parser to overwrite heap memory and achieve arbitrary code execution as the Nix daemon (root), provided ASLR can be bypassed. Vulnerability affects Nix 2.24.4-2.34.6 and Lix 2.93.0-2.95.1, with vendor-confirmed patches released across multiple version branches. CVSS vector indicates local attack with high complexity but cross-scope privilege escalation, consistent with the EPSS score suggesting targeted exploitation scenarios rather than mass scanning.

RemediationAI

Immediately upgrade to patched versions: For Nix, upgrade to 2.34.7, 2.33.6, 2.32.8, 2.31.5, 2.30.5, 2.29.4, or 2.28.7 depending on your current major/minor branch. For Lix, upgrade to 2.95.2, 2.94.2, or 2.93.4. Patches are available via normal distribution channels (nixpkgs, system package managers, or direct installation from https://nixos.org). If immediate patching is not feasible, restrict nix-daemon access by modifying the allowed-users configuration in /etc/nix/nix.conf to limit daemon connections to only trusted administrative users rather than the default of all system users-this significantly reduces attack surface but breaks workflows requiring unprivileged Nix operations. Alternatively, convert multi-user installations to single-user mode on systems where all users are equally trusted, though this eliminates the shared store benefits and may require significant reconfiguration. For high-security environments, consider running Nix operations in isolated containers or VMs until patching is complete. Review audit logs for suspicious NAR file processing or unexpected daemon activity, though exploitation may be difficult to detect post-facto. The allowed-users restriction trades off convenience for security and may disrupt CI/CD pipelines or development workflows.

Affected VersionsENISA

nix 2.31.0 <2.31.5
Lix 2.95.0 <2.95.2
nix 2.32.0 <2.32.8
nix 2.34.0 <2.34.7
nix 2.24.4 <2.28.7
Lix 2.94.0 <2.94.2
nix 2.29.0 <2.29.4
Lix 2.93.0 <2.93.4
nix 2.33.0 <2.33.6
nix 2.30.0 <2.30.5

Affected Packages

euvd lix fix: 2.93.4, 2.94.2, 2.95.2
euvd nix fix: 2.28.7, 2.29.4, 2.30.5, 2.31.5, 2.32.8, 2.33.6, 2.34.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in the NAR (Nix Archive) format parser, a critical component of both Nix and Lix package managers used for serializing filesystem objects. The parser runs on a coroutine stack allocated without guard pages-a memory protection mechanism that normally triggers faults on overflow. When processing maliciously crafted NAR archives with deeply nested structures, unbounded recursion exhausts the coroutine stack, causing it to overflow into adjacent heap memory. This is a CWE-674 (Uncontrolled Recursion) vulnerability that manifests as memory corruption. In multi-user Nix installations, the nix-daemon process runs with root privileges to manage the shared /nix/store, making it a high-value target. The coroutine implementation detail is specific to the asynchronous I/O architecture introduced in Nix 2.24.4 and Lix 2.93.0, explaining why earlier versions are unaffected. ASLR (Address Space Layout Randomization) bypass is required for reliable exploitation, but local attackers often have sufficient information leakage vectors to defeat ASLR.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 7.5 HIGH
AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
SUSE HIGH
Red Hat 7.8 HIGH

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

1
Patch available
May 05, 2026 - 02:01 EUVD

DescriptionCVE.org

An issue was discovered in Nix before 2.34.7 and Lix before 2.95.2. Unbounded recursion in the NAR (Nix Archive) parser could lead to a stack-to-heap overflow when the parser is run on a coroutine stack. The stack is allocated without a guard page, which means that a stack overflow could overwrite memory on the heap and could allow arbitrary code execution as the Nix daemon (run as root in multi-user installations) if ASLR hardening is bypassed. This can be exploited by all users able to connect to the daemon (e.g., in Nix, this is configurable via the allowed-users setting, defaulting to all users). The fixed versions are 2.34.7, 2.33.6, 2.32.8, 2.31.5, 2.30.5, 2.29.4, and 2.28.7 for Nix (introduced in 2.24.4); and 2.95.2, 2.94.2, and 2.93.4 for Lix (introduced in 2.93.0).

Executive ViewAI

Why It Matters

A stack-to-heap overflow in the Nix and Lix daemon NAR parser allows local users to escalate privileges to root on multi-user installations, creating a direct path for unauthorized system takeover. Organizations running Nix 2.24.4 through 2.34.6 or Lix 2.93.0 through 2.95.1 face risk of complete system compromise if local access controls are insufficient. Immediate patching is critical for any environment where untrusted users have local access to these package managers.

Business Impact: High
Compensating Controls

Vendor-released patch available. Until patching: (1) Restrict daemon access via Nix configuration to trusted users only; (2) disable multi-user mode if operationally feasible; (3) implement kernel ASLR enforcement (if not already enabled) to increase exploitation complexity; (4) monitor and audit local user activity on systems running affected versions; (5) segment networks to limit lateral movement from compromised daemons.

Threat Intelligence Overview

EPSS Score
0.0%
Top 100% exploitable
Social Media
3
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Related Vulnerabilities in Nix Path Traversal and Recursion Issues

View all 2

Vendor StatusVendor

SUSE

Severity: High
Product Status
openSUSE Tumbleweed Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy