Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted untrusted Nix expression
-
ExploitTrigger integer overflow in list allocation
-
ExecutionCause out-of-bounds write in evaluator
-
ImpactCorrupt memory for code execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target to evaluate an attacker-controlled (untrusted) Nix expression that triggers the mishandled list allocation - e.g., a Hydra or CI evaluator processing externally submitted expressions, a multi-user Nix daemon evaluating untrusted code, or any service that accepts and evaluates third-party Nix input. The primary limiting factor is that standard single-user workflows evaluate only trusted, self-authored expressions and are therefore not exposed via a network vector; additionally, the high attack complexity (AC:H) means the attacker must precisely craft allocation sizes to drive the integer overflow, and only Nix before 2.35.3 and Lix before 2.95.4 are vulnerable. |
| Impact | The input CVSS of 7.5 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L) describes a network-reachable but high-complexity flaw requiring no privileges or user interaction, with a scope change and high integrity impact but no confidentiality and only low availability impact - consistent with a memory-corruption (integer overflow → out-of-bounds write, CWE-190) primitive rather than a trivial crash. No EPSS score, CISA KEV listing, or public POC was provided, so there is no public exploit identified at time of analysis and no evidence of active exploitation; the AC:H rating and the need to specifically trigger a mishandled list allocation suggest exploitation is non-trivial and not yet commoditized. The most important caveat is the attack vector: CVSS marks this AV:N, but the description's precondition is 'evaluating untrusted expressions,' which only maps to a network vector in deployments that accept attacker-supplied Nix code (e.g., Hydra/CI evaluation of pull requests or remote build submissions) - in ordinary single-user or trusted-expression workflows the realistic vector is local, so the AV:N rating likely reflects the worst-case service scenario and should be verified against actual deployment mode. Net: a genuine but conditional high-severity issue (memory write primitive in a build/package tool), not a drop-everything internet-wide emergency, because exploitation depends on the target evaluating untrusted input and the attack complexity is high. |
| Exploit ScenarioDerived | An attacker submits a malicious Nix expression to a system that evaluates untrusted input - for example a shared Hydra/CI evaluator processing a pull request or a multi-user build server - crafted to overflow an integer during list allocation. The resulting out-of-bounds write corrupts evaluator memory, potentially leading to code execution in the context of the evaluation process. No public exploit code is known, and the high attack complexity (AC:H) means reliable exploitation requires precise control over allocation sizes. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 14, 2026
An integer overflow in list allocation inside the Nix expression evaluator - and in the Lix fork - can drive an out-of-bounds write when an attacker-supplied Nix expression is evaluated, allowing memory corruption in the evaluating process. Only Nix before 2.35.3 and Lix before 2.95.4 are affected, and the flaw is remotely reachable and requires no authentication or user interaction (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L, base 7.5), though the high attack complexity means allocation sizes must be crafted precisely. Our assessment is consistent with a memory-corruption primitive rather than a trivial crash - high integrity impact, low availability impact, no confidentiality impact; no public exploit identified at time of analysis, and the issue is not listed as confirmed actively exploited (CISA KEV).
RemediationAI
Vendor-released patch: upgrade to Nix 2.35.3 or later, or Lix 2.95.4 or later; these are the first versions stated to be free of the flaw, and the combined advisory is at https://discourse.nixos.org/t/security-advisory-for-nix-and-lix-october-2026/80547. Until upgrades are complete, the most effective control is to stop feeding untrusted expressions to an evaluator: restrict Hydra jobset creation and any CI endpoint that accepts external Nix input to vetted submitters, since that removes the attack path entirely at the cost of blocking untrusted contribution workflows. On multi-user hosts, tighten the trusted-users setting in nix.conf so only administrators can have the root-running nix-daemon evaluate or substitute on their behalf (this prevents low-privileged local users from reaching the vulnerable privileged evaluator, but breaks delegated build/substitution for ordinary users), and run any evaluator that must handle external expressions under a sandboxed, unprivileged account with resource limits so that a corrupted process cannot leverage the daemon's authority - the trade-off is reduced parallelism and slower evaluation. Because exploitation requires precisely crafted allocation sizes (AC:H) and no public exploit code has been identified, these compensating controls buy meaningful time, but they should be treated as temporary given that the underlying bug is a memory-corruption primitive with high integrity impact.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Nix is a purely functional package manager whose build recipes are written in a lazy, dynamically typed expression language evaluated by a C++ component (libexpr) that stores values on a garbage-collected heap. Lists are represented as contiguous arrays of Value elements, so the evaluator computes an element count, multiplies it by the element size, and allocates the resulting buffer before writing each element into place. The vulnerability is a classic CWE-190 integer overflow in that size computation: for an expression that produces a list whose allocation size wraps, the evaluator reserves a buffer smaller than the number of elements it then writes, producing a heap out-of-bounds write. The affected CPE, cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*, identifies the upstream NixOS/Nix code base, and the same evaluator lineage is carried by the Lix fork named in the advisory. The S:C scope change in the assessed vector reflects the fact that the evaluator frequently runs inside the privileged multi-user nix-daemon or a CI worker whose authority exceeds that of the user submitting the expression, so corruption of that process can affect resources beyond the vulnerable component; the AC:H rating reflects the difficulty of arranging allocation sizes that overflow yet still pass the evaluator's ordinary list-construction paths.
Know when Nix gets its next vulnerability
- 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
AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L
AV:N and PR:N/UI:N reflect services evaluating untrusted expressions; AC:H because the integer overflow needs precise allocation control; I:H/A:L for the OOB-write memory corruption with no confidentiality disclosure.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.org
Nix before 2.35.3 and Lix before 2.95.4 have an integer overflow and resultant out-of-bounds write when evaluating untrusted expressions because list allocation is mishandled.
Executive ViewAI
Organizations using the Nix package manager or its Lix fork for software builds and CI/CD pipelines face a high-severity memory corruption vulnerability that could allow unauthenticated attackers to compromise build integrity. The flaw is remotely reachable without user interaction, though exploitation requires precise crafting, and no public exploit identified at time of analysis. Leadership should prioritize immediate upgrades to Nix 2.35.3 or later and Lix 2.95.4 or later to prevent potential supply chain attacks.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Local privilege escalation in Nix package manager daemon (versions prior to 2.34.5/2.33.4/2.32.7/2.31.4/2.30.4/2.29.3/2.
Nix through 2.3 allows local users to gain access to an arbitrary user's account because the parent directory of the use
An issue was discovered in the nix crate 0.16.0 and later before 0.20.2, 0.21.x before 0.21.2, and 0.22.x before 0.22.2
Nix is a package manager for Linux and other Unix systems. Rated high severity (CVSS 8.8), this vulnerability is remotel
Local privilege escalation in Nix (before 2.35.3) and Lix (before 2.95.4) allows an unprivileged local user to escalate
Nix releases before 2.35.3 in unsandboxed macOS or FreeBSD deployments permit a local authenticated build user to establ
Seatbelt sandbox escape on macOS in Nix before 2.35.3 and Lix before 2.95.4 lets a local attacker cause a crafted build
Local privilege escalation in Nix before 2.35.3 allows a local attacker with access to the user account that installed t
Sandbox escape in Nix versions before 2.35.0 allows a malicious build derivation - executed under the experimental `recu
EUVD-2026-100802
GHSA-5jjg-xg55-6mw3
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB