Nixpkgs security tracker

Login with GitHub

Details of issue NIXPKGS-2026-2381

NIXPKGS-2026-2381
published 8 hours ago
Dracut: dracut: root code execution via unescaped error message written to sourced emergency hook script in die()
Permalink CVE-2026-15816
7.5 HIGH
  • CVSS version (CVSS): 3.1
  • Attack Vector (AV): Adjacent (A)
  • Attack Complexity (AC): High (H)
  • Privileges Required (PR): None (N)
  • User Interaction (UI): None (N)
  • Scope (S): Unchanged (U)
  • Confidentiality (C): High (H)
  • Integrity (I): High (H)
  • Availability (A): High (H)
  • Modified Attack Vector (MAV): Adjacent (A)
  • Modified Attack Complexity (MAC): High (H)
  • Modified Privileges Required (MPR): None (N)
  • Modified User Interaction (MUI): None (N)
  • Modified Confidentiality (MC): High (H)
  • Modified Scope (MS): Unchanged (U)
  • Modified Integrity (MI): High (H)
  • Modified Availability (MA): High (H)
updated 8 hours ago by @LeSuisse Activity log
  • Created suggestion
  • @LeSuisse ignored reference https://b…
  • @LeSuisse accepted
  • @LeSuisse published on GitHub
Dracut: dracut: root code execution via unescaped error message written to sourced emergency hook script in die()

A flaw was found in dracut. The die() error-handling function writes its message into a shell script under the initramfs emergency-hook directory without properly shell-quoting it. When the message contains data derived from the DHCP ROOT_PATH option, an attacker on the adjacent network who controls a rogue DHCP server can inject a command-substitution sequence that executes as root the next time dracut sources its emergency hook scripts during standard boot-failure handling.

Affected products

rhcos
dracut

Matching in nixpkgs

pkgs.dracut

Event driven initramfs infrastructure

  • nixos-unstable 111
    • nixpkgs-unstable 111
    • nixos-unstable-small 111
  • nixos-26.05 059
    • nixos-26.05-small 059
    • nixpkgs-26.05-darwin 059

Package maintainers

Not yet fixed upstream (2026-08-10)