CVE-2025-71424
JSON

5.1medium

Edgeless Systems Contrast before 1.9.1 Insecure Volume Mount

Severity
5.1medium CVSS:4.0 by VulnCheck
Exploit likelihood
0.16% (higher than 5% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-phhq-63jg-fp7rGO-2025-3807

Description

Contrast, Edgeless Systems' runtime for confidential containers on Kubernetes, is affected in versions up to and including 1.9.0. The VOLUME directive in a Dockerfile (config.volumes in the OCI image configuration) is only a hint and is not handled specially by Kubernetes, but containerd adds a mount point for it when Kubernetes sets none, requiring the runtime to be able to push arbitrary data to the Kata agent. As a result, on bare-metal Contrast deployments (AKS deployments are not affected) that run an image declaring at least one VOLUME for which no Kubernetes mount exists at that path, the untrusted host can write arbitrary file trees below that mount point inside the confidential container, compromising the integrity of a directory that is typically important to the application's core functionality. Version 1.9.1 fixes the issue by disallowing this configuration in `contrast generate`.

Affected

Product or packageVersionsReported by
edgelesssys contrastbefore 1.9.1
Not affected: 1.9.1
CVE List
github.com/edgelesssys/contrast (Go)before 1.9.1GitHub Advisory Database, Go Vulnerability Database

All scores

VulnCheck5.1medium CVSS:4.0CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
VulnCheck3.5low CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
GitHub3.5low CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Classification

CWE-552CWE-693

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

What each source says

CVE List

Contrast, Edgeless Systems' runtime for confidential containers on Kubernetes, is affected in versions up to and including 1.9.0. The VOLUME directive in a Dockerfile (config.volumes in the OCI image configuration) is only a hint and is not handled specially by Kubernetes, but containerd adds a mount point for it when Kubernetes sets none, requiring the runtime to be able to push arbitrary data to the Kata agent. As a result, on bare-metal Contrast deployments (AKS deployments are not affected) that run an image declaring at least one VOLUME for which no Kubernetes mount exists at that path, the untrusted host can write arbitrary file trees below that mount point inside the confidential container, compromising the integrity of a directory that is typically important to the application's core functionality. Version 1.9.1 fixes the issue by disallowing this configuration in `contrast generate`.

GitHub Advisory Database
Background

The VOLUME directive in Dockerfiles, or the config.volumes field in OCI image descriptors, indicates filesystem paths "where the process is likely to write data". While these paths have special semantics in Docker, they are only hints in the OCI spec and are not treated specially by Kubernetes. However, containered implements the specified conversion logic and adds a mount point if there is none set by Kubernetes.

Unfortunately, the specification leaves it open whether the mount point is populated with any and what data, so the runtime needs to be able to push arbitrary data to the Kata agent. However, this is almost always not what the user wants:

  1. A declared VOLUME location is usually important to the app's core functionality, which is usually at odds with the data in that location being untrusted.
  2. VOLUME declarations are often used by image vendors to indicate "mount your persistence here" to the user. They are rarely useful without a real volume mounted there.
Impact

All of the following need to be true to be affected by this vulnerability:

  1. A bare metal Contrast deployment (AKS is not affected).
  2. An image with at least one VOLUME directive.
  3. No Kubernetes mount at the path of the VOLUME.

If these are all true, the host is able to write arbitrary trees below that mount point.

Patches

Patched in v1.9.1 by disallowing this configuration in contrast generate.

Workarounds

Explicitly mount an emptyDir to all VOLUME locations. If the initial data in these locations is needed by the application, the image needs to be modified to remove the config.volumes entries.

Go Vulnerability Database

Contrast vulnerability allows arbitrary host data Injection into container VOLUME mount points in github.com/edgelesssys/contrast

NVD (es)

Contrast, el entorno de ejecución de Edgeless Systems para contenedores confidenciales en Kubernetes, está afectado en versiones hasta e incluyendo 1.9.0. La directiva VOLUME en un Dockerfile (config.volumes en la configuración de imagen OCI) es solo una sugerencia y no es manejada de forma especial por Kubernetes, pero containerd añade un punto de montaje para ella cuando Kubernetes no establece ninguno, lo que requiere que el entorno de ejecución pueda enviar datos arbitrarios al agente de Kata. Como resultado, en despliegues de Contrast en hardware dedicado (bare-metal) (los despliegues de AKS no están afectados) que ejecutan una imagen que declara al menos un VOLUME para el cual no existe un montaje de Kubernetes en esa ruta, el host no confiable puede escribir árboles de archivos arbitrarios debajo de ese punto de montaje dentro del contenedor confidencial, comprometiendo la integridad de un directorio que es típicamente importante para la funcionalidad central de la aplicación. La versión 1.9.1 corrige el problema al no permitir esta configuración en 'contrast generate'.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-71424 changed 2026-10-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-phhq-63jg-fp7r changed 2026-09-27CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3807 changed 2026-09-27CC-BY-4.0
NVDCVE-2025-71424 changed 2026-10-14Public domain