CVE-2025-59054
JSON

8.5high

dstack has insecure LUKS2 persistent storage partitions that may be opened and used

Severity
8.5high CVSS:4.0 by GitHub_M
Exploit likelihood
0.16% (higher than 5% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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.

Affected

Product or packageVersionsReported by
Dstack-TEE dstack< 0.5.4CVE List

Classification

CWE-552

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-59054 changed 2025-11-28CVE Terms of Use
NVDCVE-2025-59054 changed 2026-10-19Public domain