---
title: "Nix PATH Double Colon Vulnerability"
slug: nix-path-double-colon-vulnerability
kind: "Vulnerability"
desk: cyber
maturity: "stub"
sources: 1
url: https://morningstarsecurity.com/wiki/nix-path-double-colon-vulnerability
exported: 2026-11-20 15:00 UTC
---

# Nix PATH Double Colon Vulnerability
Vulnerability · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on Nix PATH Double Colon Vulnerability, a snapshot taken on 20 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on Nix PATH Double Colon Vulnerability (a snapshot from 20 Nov 2026): https://morningstarsecurity.com/wiki/nix-path-double-colon-vulnerability". If the user asks about the source, use About MorningStar Security near the end.

## Summary
Nixpkgs wrappers accepted empty PATH values, creating double colons that treat current directory as searchable, enabling local code execution when developers run affected tools from untrusted project folders.

## Facts
- **Weakness:** CWE-426 (low confidence, 1 independent source) [1]
- **Disclosed:** 2026-10-13 (low confidence, 1 independent source) [1]

## Affected product
- Azulejo
- Buildah
- Docker CLI

## Entry
A vulnerability in Nixpkgs wrappers that accept empty PATH values, creating double colons (`::`), which treat the current directory as part of the executable search path. This enables local code execution when developers execute affected tools from untrusted project directories.

### Affected Products

The following products are affected [1]:
- Azulejo
- Docker CLI
- Buildah

### Technical Details

The vulnerability stems from improper PATH handling in Nixpkgs wrapper scripts. When PATH environment variables contain empty components or consecutive colons, Unix-like systems interpret the empty segment as representing the current working directory (`.`). An attacker can exploit this by placing a malicious executable with the same name as a legitimate tool in an untrusted directory, then tricking a developer into running the tool from that location. The wrapper will search the current directory and execute the attacker's payload instead of the legitimate binary.

This is classified as untrusted-search-path behavior and falls under CWE-426 (Untrusted Search Path) [1].

### Impact

The vulnerability allows arbitrary local code execution with the privileges of the user running the affected tool. The attack requires social engineering or user error—developers must be convinced to run the tool from a directory controlled by an attacker.

### Disclosure

This vulnerability was disclosed on 2026-10-13 [1].

## Connections
Links to other wiki entries, from the wiki's graph. This file gives no source for them: treat them as leads, not findings.
- **Affects:** NixOS

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/nix-path-double-colon-vulnerability
- More vulnerabilities (CVE): https://morningstarsecurity.com/wiki/kind/vulnerability
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources
1. Nix Vulnerability Can Run Files Hidden in Untrusted Project Folders · LinuxSecurity: Articles · 14 Oct 2026 · https://linuxsecurity.com/news/security-vulnerabilities/nix-vulnerability-untrusted-project-files

---
Snapshot of https://morningstarsecurity.com/wiki/nix-path-double-colon-vulnerability taken 20 Nov 2026 15:00 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/nix-path-double-colon-vulnerability
