VeraCrypt Linux Flaw Allows Root Command Injection via Unsanitized Device Values

VeraCrypt versions prior to 1.26.30 on Linux contain a high-severity command injection vulnerability (CVE-2026-61512) that allows local attackers to execute arbitrary commands as root. The flaw exists in the CoreUnix::CheckFilesystem function, where an unsanitized VirtualDevice value is injected into a shell command string. Attackers can exploit this by reopening the request pipe through /proc//fd/ and supplying a crafted value, such as /dev/null;, to achieve full system compromise. The issue has been patched in version 1.26.30.
Key points
- The vulnerability affects VeraCrypt versions earlier than 1.26.30 specifically on Linux systems.
- It is classified as a command injection flaw (CWE-78) with a CVSS 4.0 score of 7.3 (High).
- Exploitation requires a local attacker with same-UID access and an active elevated CoreService session.
- The attack involves injecting an unsanitized VirtualDevice value into a shell command string within CoreUnix::CheckFilesystem.
- Attackers can reopen the request pipe via /proc//fd/ to supply crafted inputs like /dev/null; for arbitrary command execution.
- Successful exploitation grants root-level access, impacting confidentiality, integrity, and availability.
Background
This disclosure follows a recent wave of high-severity injection vulnerabilities in other software, including SQL injection in Formance Ledger and remote code execution flaws in Super Magic PHPSandbox and Mozilla Thunderbird. While those issues involved remote or unauthenticated vectors, the VeraCrypt flaw is local and requires specific privilege conditions, highlighting ongoing risks in command construction within desktop applications.
Why it matters
Local privilege escalation vulnerabilities in widely used encryption tools like VeraCrypt pose significant risks for multi-user Linux environments. If an attacker gains low-level access to a system running an older version of VeraCrypt, they can leverage this flaw to execute commands as root, potentially bypassing security controls and accessing encrypted data. Prompt updates to version 1.26.30 are critical to mitigate this high-severity threat.
What to watch
Users of VeraCrypt on Linux should immediately update to version 1.26.30 or later to patch the vulnerability. System administrators should audit their environments for any instances of VeraCrypt prior to 1.26.30 and ensure that local users do not have unnecessary access to elevated CoreService sessions. Monitoring for unusual activity in /proc//fd/ pipes may help detect exploitation attempts.
Want the full story? Read the original reporting
Read on CVEs | Zero Wire | Cloudflare Radar