grub-btrfs initramfs hook Command Injection

2026.02.19
Credit: cardosource
Risk: Medium
Local: Yes
Remote: No
CWE: CWE-78

CVE-2026-25828 is a critical command injection vulnerability in the grub-btrfs package used in Arch Linux and derivative distributions. The issue exists in the initramfs hook "grub-btrfs-overlayfs" which passes the $root kernel parameter directly into resolve_device() without proper sanitization, allowing an attacker with local or bootloader access to inject shell commands during early boot. Affected Product: - grub-btrfs – all versions up to 2026-01-31 on Arch and derivatives Vulnerability: Unsanitized usage of the $root variable from the kernel command line allows shell metacharacter injection and arbitrary code execution as root during boot. Proof of Concept: Example exploit modifying GRUB kernel line: linux /vmlinuz-linux root="/dev/sda1; echo 'root::0:0:root:/root:/bin/bash' >> /etc/passwd; #" rw quiet Impact: - Arbitrary command execution as root - Privilege escalation - System compromise during boot stage

References:

References:
https://github.com/cardosource/CVE-2026-25828


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2026, cxsecurity.com

 

Back to Top