Skip to main content
Vulnerability Database/CVE-2026-110449

CVE-2026-110449: Nix Buffer Overflow Vulnerability

CVE-2026-110449 is a buffer overflow vulnerability in Nix and Lix package managers caused by integer overflow during list allocation. This flaw allows out-of-bounds writes when evaluating untrusted expressions. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-110449 Overview

CVE-2026-110449 affects the Nix and Lix package managers when they evaluate untrusted expressions. The vulnerability stems from an integer overflow in list allocation logic that results in an out-of-bounds write. Nix versions before 2.35.3 and Lix versions before 2.95.4 are vulnerable. The flaw is network-reachable because evaluators routinely process expressions sourced from remote flakes, channels, and shared derivations. Successful exploitation can corrupt evaluator memory, break integrity guarantees, and degrade availability of build infrastructure. The issue is tracked under CWE-190: Integer Overflow or Wraparound.

Critical Impact

An attacker who controls an evaluated Nix or Lix expression can trigger memory corruption via an out-of-bounds write, undermining the integrity of builds and the evaluator process.

Affected Products

  • Nix package manager versions prior to 2.35.3
  • Lix package manager versions prior to 2.95.4
  • Build pipelines and CI systems that evaluate untrusted Nix or Lix expressions

Discovery Timeline

  • 2026-10-14 - CVE-2026-110449 published to the National Vulnerability Database (NVD)
  • 2026-10-14 - Last updated in the NVD database
  • October 2026 - NixOS Security Advisory published by the Nix and Lix maintainers (NixOS Security Advisory - October 2026)

Technical Details for CVE-2026-110449

Vulnerability Analysis

The vulnerability occurs during evaluation of Nix language expressions that construct lists. The evaluator calculates allocation sizes for list objects using arithmetic that can overflow for large or crafted inputs. When the computed size wraps, the allocator returns an undersized buffer. Subsequent writes populate the full logical list, producing an out-of-bounds write beyond the allocated region.

Because the Nix evaluator is memory-safe only when its internal size calculations hold, the overflow violates core allocator invariants. The resulting write can corrupt adjacent heap metadata or evaluator state. This affects both the official Nix implementation and the Lix fork, which share evaluator lineage.

Root Cause

The root cause is mishandled list allocation sizing when evaluating untrusted expressions. The length used to size the backing storage is not validated against the limits of the integer type used in the multiplication. An attacker-controlled length multiplied by the per-element size overflows, producing a small allocation followed by a large write.

Attack Vector

The attack vector is network-adjacent through any workflow that evaluates attacker-influenced Nix or Lix expressions. Common exposure paths include evaluating third-party flakes, consuming channels, importing remote expressions, and processing pull requests in Nix-based continuous integration. User interaction is not required beyond triggering normal evaluation. No verified public proof-of-concept is listed in the enriched data; refer to the NixOS Security Advisory - October 2026 for maintainer-provided technical details.

Detection Methods for CVE-2026-110449

Indicators of Compromise

  • Unexpected crashes or SIGSEGV terminations of the nix or lix evaluator process on build hosts
  • Evaluation of flakes or expressions from untrusted sources that trigger abnormally large list constructions
  • Build or CI jobs that fail during evaluation with heap corruption, abort traps, or allocator diagnostics

Detection Strategies

  • Inventory all hosts running Nix or Lix and compare installed versions against 2.35.3 and 2.95.4 respectively
  • Review CI/CD logs for evaluator aborts, out-of-memory conditions, or allocator assertion failures correlated with external inputs
  • Audit flake inputs and channel sources to identify evaluation of third-party expressions on sensitive hosts

Monitoring Recommendations

  • Forward evaluator stderr and systemd journal entries from Nix build servers into a centralized logging pipeline for anomaly review
  • Alert on repeated evaluator crashes on nix-daemon, nix eval, nix build, or Lix equivalents
  • Monitor outbound fetches performed during evaluation to detect introduction of unexpected remote expressions

How to Mitigate CVE-2026-110449

Immediate Actions Required

  • Upgrade Nix to version 2.35.3 or later and Lix to version 2.95.4 or later on all build, developer, and CI hosts
  • Restrict evaluation of expressions from untrusted sources until patched versions are deployed
  • Rebuild or re-evaluate any artifacts produced during the exposure window where expression provenance is uncertain

Patch Information

Maintainers released fixed versions as described in the NixOS Security Advisory - October 2026. Upgrade Nix to 2.35.3 or later and Lix to 2.95.4 or later. Package channels, container base images, and CI runner images should be rebuilt to include the patched evaluator.

Workarounds

  • Avoid evaluating untrusted flakes, channels, or third-party expressions on unpatched systems
  • Isolate Nix and Lix evaluation in ephemeral, unprivileged sandboxes with strict resource limits
  • Pin flake inputs to known-good revisions and require review before accepting new remote sources
bash
# Verify installed evaluator versions after upgrade
nix --version
lix --version

# Example: pin flake inputs to vetted revisions before evaluation
nix flake lock --update-input nixpkgs
nix flake metadata

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.