CVE-2026-61512: 
NixOS analisi e mitigazione delle vulnerabilità

Panoramica

CVE-2026-61512 is an OS command injection vulnerability in VeraCrypt's CoreUnix::CheckFilesystem function on Linux that allows a local attacker with same-UID access and an active elevated CoreService session to execute arbitrary commands as root. It affects all VeraCrypt versions before 1.26.30 on Linux (vendor: IDRIX). The vulnerability was reported privately on July 12, 2026 by researcher Haitam Lazaar, with a 120-day embargo expiring November 9, 2026, and publicly disclosed on November 24, 2026. It carries a CVSS v3.1 base score of 7.0 (High) and a CVSS v4.0 base score of 7.3 (High) (GitHub Advisory, Feedly).

Dettagli tecnici

The root cause (CWE-78: Improper Neutralization of Special Elements used in an OS Command) lies in CoreUnix::CheckFilesystem, where the VirtualDevice field from a CheckFilesystemRequest is concatenated unsanitized into a shell command string passed to a terminal emulator via sh -c. The vulnerable code constructs a string such as fsck -n <VirtualDevice>; echo '[Done]'; read W, which is then evaluated by a root-owned shell when a terminal (e.g., urxvt, xterm) is launched by the elevated CoreService. An attacker exploits this by reopening the VeraCrypt GUI process's writable pipe descriptor via /proc/<pid>/fd/<n> — accessible because the pipe is not protected against same-UID inspection — and writing a crafted serialized CheckFilesystemRequest with a payload like /dev/null; <command> as the VirtualDevice value (PoC Repo, GitHub Advisory). Exploitation requires: (1) local access as the same UID as the running VeraCrypt GUI process, (2) an active elevated CoreService session (i.e., a volume mount operation in progress or recently completed), (3) a suitable terminal emulator installed and a usable display connection.

Impatto

Successful exploitation grants the attacker arbitrary command execution with root privileges via the VeraCrypt CoreService. This results in full confidentiality, integrity, and availability compromise of the affected Linux system — an attacker can read or exfiltrate any file, modify system configuration (e.g., write a passwordless sudoers entry to /etc/sudoers.d/), install persistent backdoors, or disrupt system operation. The scope is limited to the local system (no subsequent system impact per CVSS v4.0), but root access enables lateral movement within the environment and full control over any encrypted volumes managed by VeraCrypt (GitHub Advisory, PoC Repo).

Sfruttabilità

A public proof-of-concept exploit written in C (exploit/poc_checkfs_inject.c) is available on GitHub, with build and run instructions; its default payload writes a passwordless sudoers entry to /etc/sudoers.d/vc_pwned and then spawns a root shell via sudo su - (PoC Repo). As of the disclosure date, there is no evidence of in-the-wild exploitation, and no threat actor attribution has been reported. The EPSS score is approximately 1.003% (62nd percentile), and the vulnerability is not listed in the CISA KEV catalog. NVD classifies exploitation status as "poc" with non-automatable exploitation (GitHub Advisory).

Fasi di sfruttamento

  1. Reconnaissance: Confirm the target Linux system is running VeraCrypt before version 1.26.30 with an active elevated CoreService session (i.e., a volume is mounted or a mount operation is in progress). Verify you are running as the same UID as the VeraCrypt GUI process.
  2. Locate the VeraCrypt process: Enumerate /proc/<pid>/status for the Uid field and /proc/<pid>/exe to identify VeraCrypt processes owned by the same UID (as implemented in is_veracrypt_pid() in the PoC).
  3. Identify the writable pipe: Parse /proc/<pid>/fdinfo/<fd> for O_WRONLY flags and confirm the file descriptor target begins with pipe:, then open /proc/<pid>/fd/<fd> with O_WRONLY to gain access to the IPC pipe between the GUI and the root CoreService (find_veracrypt_pipe() in the PoC).
  4. Craft the malicious request: Serialize a CheckFilesystemRequest with ElevateUserPrivileges=1 and set the VolumeInfo.VirtualDevice field to an injected payload such as /dev/null; echo '<user> ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/vc_pwned; chmod 440 /etc/sudoers.d/vc_pwned (build_checkfs_req() and build_volume_info() in the PoC).
  5. Write the payload to the pipe: Use write_all() to send the serialized packet to the opened pipe file descriptor, then close it. The root CoreService reads the request and passes the unsanitized VirtualDevice value into a shell command string executed via a terminal emulator.
  6. Achieve root shell: Poll for the creation of /etc/sudoers.d/vc_pwned (up to 10 seconds), then execute sudo su - to obtain an interactive root shell (PoC Repo).

Indicatori di compromissione

  • File System: Presence of /etc/sudoers.d/vc_pwned or other unexpected files in /etc/sudoers.d/ with NOPASSWD:ALL entries; unexpected new files in /tmp or system directories created by the VeraCrypt service account.
  • Process: Unusual child processes spawned by the VeraCrypt CoreService (e.g., /bin/bash, sudo, su, xterm, urxvt) with root privileges; sudo su - invocations immediately following VeraCrypt activity.
  • Logs: Entries in /var/log/auth.log or /var/log/sudo.log showing sudo su executed by a non-root user without password authentication; unexpected fsck invocations with anomalous device arguments containing semicolons or shell metacharacters.
  • Network: Outbound connections from the system initiated by processes running as root shortly after VeraCrypt CoreService activity (potential reverse shell indicator).
  • File System: Unexpected executables or scripts written to world-writable directories by a process running as root during or after a VeraCrypt mount operation (PoC Repo).

Mitigazione e soluzioni alternative

Upgrade VeraCrypt to version 1.26.30 or later, which introduces a Linux CheckFilesystem override that verifies volume ownership against auxiliary mount metadata and validates the underlying device-mapper/loop device before delegating to the Unix checker, blocking the original injection vector (VeraCrypt Releases, Patch Commit). Version 1.26.31 additionally prevents programs launched by VeraCrypt from inheriting the pipes between its interface and service, extending the protection. As a workaround where immediate upgrade is not possible: restrict access to /proc/<pid>/fd/ for VeraCrypt processes (e.g., via kernel hardening settings such as kernel.yama.ptrace_scope), limit which users can run VeraCrypt, and avoid leaving elevated CoreService sessions active when not in use. Note that as of 1.26.31, the underlying shell command construction in shared Unix code remains, and the draft IPC authentication and process hardening (prctl(PR_SET_DUMPABLE, 0)) changes have not yet been fully integrated into public releases (PoC Repo).

Reazioni della comunità

The VeraCrypt maintainer engaged in coordinated disclosure with the researcher, sharing a private draft patch on July 20, 2026 that proposed two defenses: disabling process dumpability via prctl(PR_SET_DUMPABLE, 0) and adding per-instance IPC authentication tokens. The researcher confirmed these protections would effectively close the attack surface, though the full draft changes were not included in the public 1.26.30 or 1.26.31 releases (PoC Repo). No significant broader media coverage or notable social media reactions have been identified beyond the technical disclosure.

Risorse aggiuntive


Fonte: Questo report è stato generato tramite IA

Vulnerabilità correlate di NixOS:

CVE ID

Gravità

Punteggio

Tecnologie

Nome del componente

Exploit CISA KEV

Dispone di patch

Data di pubblicazione

CVE-2026-136716CRITICAL9.8
  • NixOS logoNixOS
  • drupal
SìSìNov 26, 2026
CVE-2026-132165CRITICAL9.8
  • NixOS logoNixOS
  • drupal
SìSìNov 26, 2026
CVE-2026-61513HIGH7.3
  • NixOS logoNixOS
  • veracrypt
NoNoNov 24, 2026
CVE-2026-61512HIGH7.3
  • NixOS logoNixOS
  • veracrypt
NoSìNov 24, 2026
CVE-2026-125283MEDIUM6.9
  • NGINX logoNGINX
  • nginx-mod-headers-more
NoSìNov 18, 2026

Valutazione gratuita delle vulnerabilità

Valuta la tua postura di sicurezza del cloud

Valuta le tue pratiche di sicurezza del cloud in 9 domini di sicurezza per stabilire un benchmark del tuo livello di rischio e identificare le lacune nelle tue difese.

Richiedi valutazione

Ulteriori risorse Wiz

Richiedi una demo personalizzata

Pronti a vedere Wiz in azione?

"La migliore esperienza utente che abbia mai visto offre piena visibilità ai carichi di lavoro cloud."
David EstlickCISO (CISO)
"Wiz fornisce un unico pannello di controllo per vedere cosa sta succedendo nei nostri ambienti cloud."
Adam FletcherResponsabile della sicurezza
"Sappiamo che se Wiz identifica qualcosa come critico, in realtà lo è."
Greg PoniatowskiResponsabile della gestione delle minacce e delle vulnerabilità