CVE-2026-145606 in Contrast
Summary
by MITRE • 12/06/2026
Contrast before 1.26.2 ships guest images with systemd-gpt-auto-generator enabled, which at boot mounts or activates plaintext, unverified swap, home, srv, var, and var/tmp partitions found on the root disk. A malicious host can append such partitions to inject filesystem content into the guest, or add swap and induce memory pressure to read guest memory, including workload secrets.
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Analysis
by VulDB Data Team • 12/06/2026
The vulnerability identified in Contrast versions prior to 1.26.2 stems from a misconfiguration of the systemd-gpt-auto-generator within virtual machine guest images. This system utility is designed to automatically detect and mount partitions based on their GPT partition type codes during the boot process. In this specific context, the generator was enabled by default in shipped guest images, causing it to indiscriminately mount or activate various filesystem types such as swap, home, srv, var, and var/tmp from the root disk without performing any integrity verification or access control checks. This behavior creates a critical security gap because it assumes that the underlying block devices are trusted and immutable, an assumption that is frequently violated in virtualized environments where host-level administrators have direct access to virtual disks.
The technical flaw lies in the lack of validation mechanisms for partitions presented by the hypervisor or host system. When the guest operating system boots, systemd-gpt-auto-generator scans the disk layout and automatically mounts any partition with a recognized type code. A malicious actor with control over the host infrastructure can manipulate this process by appending fake or modified partitions to the virtual disk image that represents the root filesystem of the guest VM. By assigning these injected partitions standard GPT type codes corresponding to home, srv, var, or swap areas, the attacker tricks the automated mounting service into integrating unverified content directly into the guest's active file system hierarchy. This effectively bypasses traditional perimeter defenses because the malicious files appear as legitimate parts of the operating system structure rather than external intrusions.
The operational impact of this vulnerability is severe and multifaceted, primarily affecting data confidentiality and integrity. By injecting filesystem content through mounted partitions, an attacker can plant backdoors, modify configuration files to alter security policies, or exfiltrate sensitive data by placing it in accessible directories like var/tmp which may have broader write permissions. Furthermore, the ability to add swap partitions introduces a significant risk of memory disclosure. When a guest system utilizes swap space located on untrusted media controlled by an adversary, the operating system may page out sensitive information from RAM to disk. This includes encryption keys, session tokens, and other workload secrets that are transiently stored in memory for processing. An attacker with host-level access can then read this swapped-out data directly from the virtual disk file, leading to a complete compromise of confidential workloads running within the guest environment.
This vulnerability aligns closely with CWE-250, which describes execution under incorrect privileges or context, as well as CWE-732, concerning improper permission assignment for critical resources. The attack vector is consistent with MITRE ATT&CK technique T1496, Resource Hijacking, where an adversary uses a victim's computing resources to conduct cryptomining or other resource-intensive activities, although in this case the primary goal is data theft and persistence rather than computational abuse. Additionally, it relates to T1505.003, Server Software Component: Rootkits, as the injected partitions can be used to establish persistent access mechanisms that survive reboots by modifying system binaries or configurations through the mounted filesystems.
Mitigation strategies must focus on disabling automatic partition mounting for untrusted media and enforcing strict integrity checks before any block device is integrated into the operating system environment. Administrators should disable systemd-gpt-auto-generator specifically for swap and other sensitive partitions within guest images, ensuring that only explicitly configured and verified storage devices are mounted at boot time. Implementing disk encryption with keys managed outside of the VM's direct control can also mitigate memory disclosure risks associated with swap usage. Furthermore, organizations should adopt a zero-trust architecture for virtualization layers, treating host-level access as potentially compromised and implementing hypervisor-side controls to restrict which block devices can be attached to guest machines or ensuring that any attached storage is cryptographically verified before the guest OS attempts to mount it.