CVE-2025-59054
dstack has insecure LUKS2 persistent storage partitions that may be opened and used
Description
dstack is a software development kit (SDK) to simplify the deployment of arbitrary containerized apps into trusted execution environments. In versions of dstack prior to 0.5.4, a malicious host may provide a crafted LUKS2 data volume to a dstack CVM for use as the `/data` mount. The guest will open the volume and write secret data using a volume key known to the attacker, causing disclosure of Wireguard keys and other secret information. The attacker can also pre-load data on the device, which could potentially compromise guest execution. LUKS2 volume metadata is not authenticated and supports null key-encryption algorithms, allowing an attacker to create a volume such that the volume opens (cryptsetup open) without error using any passphrase or token, records all writes in plaintext (or ciphertext with an attacker-known key), and/or contains arbitrary data chosen by the attacker. Version 0.5.4 of dstack contains a patch that addresses LUKS headers.
INFO
Published Date :
Sept. 12, 2025, 1:15 p.m.
Last Modified :
Oct. 19, 2026, 5:10 p.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 4.0 | HIGH | [email protected] |
Solution
- Update dstack to version 0.5.4 or later.
- Ensure LUKS volume metadata is authenticated.
- Configure strong encryption for all volumes.
- Validate all volume data before use.
Public PoC/Exploit Available at Github
CVE-2025-59054 has a 1 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-59054.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-59054 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-59054
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Publications from Trail of Bits
conference-presentations academic-papers security-reviews
HTML Python Solidity JavaScript
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-59054 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-59054 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 19, 2026
Action Type Old Value New Value Added Translation Title: dstack-TEE, Description: dstack es un kit de desarrollo de software (SDK) para simplificar el despliegue de aplicaciones contenerizadas arbitrarias en entornos de ejecución confiables. En versiones de dstack anteriores a la 0.5.4, un host malicioso puede proporcionar un volumen de datos LUKS2 manipulado a una CVM de dstack para su uso como punto de montaje '/data'. El invitado abrirá el volumen y escribirá datos secretos utilizando una clave de volumen conocida por el atacante, lo que provocará la divulgación de claves de Wireguard y otra información secreta. El atacante también puede precargar datos en el dispositivo, lo que podría comprometer la ejecución del invitado. Los metadatos del volumen LUKS2 no están autenticados y admiten algoritmos de cifrado de clave nula, lo que permite a un atacante crear un volumen de tal manera que el volumen se abra (cryptsetup open) sin error utilizando cualquier frase de contraseña o token, registre todas las escrituras en texto plano (o texto cifrado con una clave conocida por el atacante), y/o contenga datos arbitrarios elegidos por el atacante. La versión 0.5.4 de dstack contiene un parche que aborda los encabezados LUKS. -
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'Dstack-TEE', 'product': 'dstack', 'versions': [{'status': 'affected', 'version': '< 0.5.4'}]}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2025-59054', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2025-09-12T14:34:31.449995Z'} -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 28, 2025
Action Type Old Value New Value Added Reference https://blog.trailofbits.com/2025/10/30/vulnerabilities-in-luks2-disk-encryption-for-confidential-vms/ -
New CVE Received by [email protected]
Sep. 12, 2025
Action Type Old Value New Value Added Description dstack is a software development kit (SDK) to simplify the deployment of arbitrary containerized apps into trusted execution environments. In versions of dstack prior to 0.5.4, a malicious host may provide a crafted LUKS2 data volume to a dstack CVM for use as the `/data` mount. The guest will open the volume and write secret data using a volume key known to the attacker, causing disclosure of Wireguard keys and other secret information. The attacker can also pre-load data on the device, which could potentially compromise guest execution. LUKS2 volume metadata is not authenticated and supports null key-encryption algorithms, allowing an attacker to create a volume such that the volume opens (cryptsetup open) without error using any passphrase or token, records all writes in plaintext (or ciphertext with an attacker-known key), and/or contains arbitrary data chosen by the attacker. Version 0.5.4 of dstack contains a patch that addresses LUKS headers. Added CVSS V4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CWE CWE-552 Added Reference https://github.com/Dstack-TEE/dstack/blob/04de4e422bb06f075b4215b2cfc410f5d7ac7aed/dstack-util/src/system_setup.rs#L453-L456 Added Reference https://github.com/Dstack-TEE/dstack/commit/e36ad5f732d8821876a861934e1f47cda7b1a130 Added Reference https://github.com/Dstack-TEE/dstack/security/advisories/GHSA-jxq2-hpw3-m5wf Added Reference https://gitlab.com/cryptsetup/cryptsetup/-/merge_requests/837