Dtstack · Dstack · CVE-2025-59054
**Name of the Vulnerable Software and Affected Versions**
dstack versions prior to 0.5.4
**Description**
dstack is a software development kit (SDK) designed to simplify the deployment of containerized applications into trusted execution environments. In versions prior to 0.5.4, a malicious host can provide a specially crafted LUKS2 data volume to a dstack CVM for use as the `/data` mount. This allows the guest operating system to open the volume and write sensitive data using a volume key known to the attacker, potentially leading to the disclosure of Wireguard keys and other secret information. The attacker can also pre-load data onto the device, which could compromise guest execution. The issue stems from the fact that LUKS2 volume metadata is not authenticated and supports null key-encryption algorithms, enabling an attacker to create a volume that opens without error, records all writes in plaintext or with an attacker-known key, and contains arbitrary data chosen by the attacker.
**Recommendations**
Update dstack to version 0.5.4 or later.