github.com/edgelesssys/contrast
Affected
- introduced
0, fixed1.9.1(semver)
Fixed versions
1.9.1
Fix
- Fixed version
1.9.1go get github.com/edgelesssys/[email protected]
Advisory
Also known as: CVE-2025-71424, GO-2025-3807
Contrast vulnerability allows arbitrary host data Injection into container VOLUME mount points
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:
VOLUME location is usually important to the app's core functionality, which is usually at odds with the data in that location being untrusted.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:
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.
Low Basis: The source's own band: LOW
0, fixed 1.9.1 (semver)1.9.1
1.9.1go get github.com/edgelesssys/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0