github.com/edgelesssys/contrast · Contrast: Contras Affected by CopyFile Policy Subversion via Symlinks
Affects github.com/edgelesssys/contrastSource GCVE Database
CVSS 8.1 High : upgrade to 1.19.1 soon.
Data as of 27 Oct 2026, 00:07 UTC
- Patch
- Available – fixed in 1.19.1
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NWhat to do
Upgrade github.com/edgelesssys/contrast to 1.19.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/edgelesssys/contrast | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
### Impact The [Kata agent policies](https://docs.edgeless.systems/contrast/architecture/components/policies) generated by the Contrast CLI had an issue in the `CopyFile` verification, which allowed arbitrary writes to the guest root filesytem. A malicious process on the host with the capability to connect to the Kata agent VSOCK could connect to the agent and issue a series of `CopyFile` requests to overwrite security-critical files or trick the workload into disclosing sensitive data, which effectively amounts to a full guest takeover. ### Patches This issue has been patched in Contrast v1.19.1. Note that this fix does not change the fact that host-provided content is generally not trustworthy, as documented. ### Workarounds If upgrading is not possible, users can implement the fix in rego and pass it to `contrast generate --policy`. The rego-only fix is a bit trickier than the patch, because the data to check is binary. See the references for details. ### Resources * Upstream GHSA: https://github.com/kata-containers/kata-containers/security/advisories/GHSA-q49m-57vm-c8cc * Alternative policy-only fix: https://gist.github.com/burgerdev/304dd0ab0fff1665b7c27e18a30cf96e
References
- github.com/edgelesssys/contrast/security/advisories/GHSA-rh99-wc69-c255 (opens in a new tab)
- github.com/kata-containers/kata-containers/security/advisories/GHSA-q49m-57vm-c8cc (opens in a new tab)
- gist.github.com/burgerdev/304dd0ab0fff1665b7c27e18a30cf96e (opens in a new tab)
- github.com/edgelesssys/contrast (opens in a new tab)
- github.com/edgelesssys/contrast/releases/tag/v1.19.1 (opens in a new tab)