CVE-2026-61513: 
NixOS vulnerability analysis and mitigation

Overview

CVE-2026-61513 is a local privilege escalation (LPE) vulnerability in VeraCrypt's Linux elevated CoreService, caused by an improper path restriction in the SetFileOwner IPC handler. The vulnerability affects VeraCrypt through version 1.26.31 on Linux; Windows and macOS are not affected (macOS includes a validation branch absent on Linux). It was discovered by researcher Haitam Lazaar and reported privately on July 12, 2026, with coordinated disclosure reaching its 120-day embargo deadline on November 9, 2026, and public CVE publication on November 24, 2026. The CVE carries a CVSS v3.1 base score of 7.0 (High) and a CVSS v4.0 base score of 7.3 (High) (GitHub Advisory, PoC Repository).

Technical details

The root cause is classified as CWE-73 (External Control of File Name or Path). VeraCrypt's elevated CoreService on Linux accepts serialized SetFileOwnerRequest IPC messages containing a target file path and owner UID, passing both values directly to chown() via CoreUnix::SetFileOwner without any path validation. The macOS code path includes a ValidateMacOSXSetFileOwnerTarget() call, but no equivalent guard exists for Linux. An attacker who shares the same UID as a running VeraCrypt process with an active elevated session can reopen the service's writable request pipe via /proc/<pid>/fd/<n> and inject a crafted SetFileOwnerRequest targeting arbitrary system files such as /etc/passwd or /etc/shadow. Exploitation requires: (1) an active elevated CoreService session (i.e., a volume is mounted and administrator authentication has completed), (2) a process running as the same UID as the VeraCrypt process, and (3) the kernel allowing same-UID /proc fd access (affected by process dumpability settings) (PoC Repository, GitHub Advisory).

Impact

Successful exploitation grants the attacker ownership of arbitrary privileged system files, enabling full root compromise. The demonstrated attack path changes ownership of /etc/passwd and /etc/shadow to the attacker's UID, allowing them to append a UID-0 backdoor account and obtain an interactive root shell via su. This results in complete loss of confidentiality, integrity, and availability on the affected Linux system, with potential for persistent access and lateral movement within the environment (PoC Repository, GitHub Advisory).

Exploitability

A functional proof-of-concept exploit (exploit/poc_pipe_inject.c) is publicly available on GitHub, written in C and assessed with high confidence as a real, working exploit by Feedly threat intelligence. The PoC enumerates VeraCrypt process pipe descriptors, injects serialized SetFileOwnerRequest messages, and creates a UID-0 backdoor account. There is no evidence of in-the-wild exploitation at this time, and the vulnerability is not listed in the CISA KEV catalog. The EPSS score is approximately 0.283% (13th percentile), reflecting low but non-negligible near-term exploitation probability. Exploitation is not automatable and requires specific local preconditions (PoC Repository, GitHub Advisory).

Exploitation steps

  1. Prerequisite — Establish same-UID foothold: Obtain local code execution as the same UID as a user who has an active VeraCrypt elevated CoreService session (i.e., a VeraCrypt volume is currently mounted and administrator authentication was completed).
  2. Enumerate VeraCrypt processes: Walk /proc, filter entries by matching UID in /proc/<pid>/status and executable name containing veracrypt via /proc/<pid>/exe.
  3. Identify writable pipe descriptors: For each VeraCrypt process, inspect /proc/<pid>/fdinfo/<fd> for O_WRONLY flag and confirm the /proc/<pid>/fd/<fd> symlink resolves to a pipe: target.
  4. Build and inject SetFileOwnerRequest: Serialize a SetFileOwnerRequest IPC message in the VeraCrypt big-endian, length-prefixed wire format (UTF-32LE for wide strings) with Path=/etc/passwd and Owner=<attacker_UID>. Open /proc/<pid>/fd/<fd> with O_WRONLY and write the serialized request.
  5. Verify ownership change: After a ~450ms delay, call stat() on /etc/passwd to confirm the owner UID has changed to the attacker's UID. Repeat for all candidate pipe descriptors until a hit is confirmed.
  6. Repeat for /etc/shadow: Re-serialize the request with Path=/etc/shadow and write it to the successful pipe descriptor, then verify with stat().
  7. Plant backdoor account: Generate a SHA-512 crypt hash (e.g., via openssl passwd -6 -salt VCpoc2026 toor). Open /etc/passwd and /etc/shadow in append mode and write a UID-0 entry (e.g., haxor:<hash>:0:0:root:/root:/bin/bash).
  8. Obtain root shell: Execute su - haxor and authenticate with the known password (toor) to obtain an interactive root shell.

Build command: gcc -O2 -Wall exploit/poc_pipe_inject.c -o poc_pipe_inject (PoC Repository).

Indicators of compromise

  • File System:

    • Unexpected ownership change on /etc/passwd or /etc/shadow to a non-root UID
    • New UID-0 entries appended to /etc/passwd (e.g., haxor:...:0:0:root:/root:/bin/bash)
    • Corresponding new entries in /etc/shadow with a recently generated SHA-512 hash
    • Presence of compiled binary poc_pipe_inject or source file poc_pipe_inject.c on disk
  • Process:

    • Unexpected su or su - haxor invocations from a non-root user process
    • Processes opening /proc/<pid>/fd/<n> of a VeraCrypt process (same-UID access)
    • openssl passwd invoked by a non-privileged user process
  • Logs:

    • PAM/auth logs (/var/log/auth.log) showing successful su authentication for an unknown UID-0 account
    • Audit logs (auditd) recording chown syscalls on /etc/passwd or /etc/shadow attributed to the VeraCrypt CoreService process
    • Audit logs showing open() of /proc/<veracrypt_pid>/fd/<n> by a sibling process
  • Network:

    • No network-based IOCs expected; this is a local privilege escalation (PoC Repository).

Mitigation and workarounds

No patched VeraCrypt release has been publicly issued as of the disclosure date; source inspection of versions 1.26.30 and 1.26.31 confirms the Linux SetFileOwner implementation remains unvalidated. During coordinated disclosure, the VeraCrypt maintainer shared a draft patch proposing three mitigations: (1) disabling frontend process dumpability via prctl(PR_SET_DUMPABLE, 0) to prevent same-UID /proc fd inspection, (2) requiring a random per-instance session token on incoming IPC requests before deserialization, and (3) canonicalizing target paths to block devices under /dev/. Until a patched release is available, administrators should restrict VeraCrypt usage to trusted users only, avoid leaving elevated CoreService sessions active longer than necessary, and consider enabling hidepid=2 on the /proc mount to limit cross-process /proc access. Monitor for unauthorized changes to /etc/passwd and /etc/shadow (PoC Repository, GitHub Advisory).

Community reactions

The vulnerability was assigned by VulnCheck during coordinated disclosure and published to the GitHub Advisory Database on November 24, 2026. The VeraCrypt maintainer engaged during the 120-day coordinated disclosure period and provided a private draft patch, though it had not been merged into public releases as of disclosure. No significant public commentary from major security researchers or media outlets has been identified beyond the PoC repository and standard vulnerability database entries (PoC Repository, GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

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

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management