Contrast before 1.19.1 CopyFile Policy Symlink Subversion
What fixes it
- 1.19.1contrastCVE List
- 1.19.1github.com/edgelesssys/contrast, GoOSV
go get github.com/edgelesssys/contrast@v1.19.1
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
Contrast is a confidential-computing runtime for Kubernetes. In versions before 1.19.1, the Kata agent policies generated by the Contrast CLI contained a flaw in the CopyFile verification that allowed arbitrary writes to the guest root filesystem. A malicious process on the untrusted host able to connect to the Kata agent VSOCK could issue a series of CopyFile requests to overwrite security-critical files in the guest or trick the workload into disclosing sensitive data, effectively amounting to a full guest takeover. Users unable to upgrade can apply an equivalent rego policy fix passed to 'contrast generate --policy'.
Text from CVE List
Affected versions 3
- contrastaffected: all versions before 1.19.1CVE List
- contrastunaffected: 1.19.1CVE List
- github.com/edgelesssys/contrast, Gofrom first release, fixed in 1.19.1OSV