GHSA-rh99-wc69-c255: Contras Affected by CopyFile Policy Subversion via Symlinks
Impact The Kata agent 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…
Published Apr 30, 2026
Affected packages
github.com/edgelesssys/contrast
- Ecosystem
- Go
- Affected
- < 1.19.1
- Fixed in
- 1.19.1
- Check
go list -m github.com/edgelesssys/contrast
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
The Kata agent 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
- https://github.com/edgelesssys/contrast/security/advisories/GHSA-rh99-wc69-c255
- https://github.com/kata-containers/kata-containers/security/advisories/GHSA-q49m-57vm-c8cc
- https://gist.github.com/burgerdev/304dd0ab0fff1665b7c27e18a30cf96e
- https://github.com/edgelesssys/contrast/releases/tag/v1.19.1
- https://github.com/advisories/GHSA-rh99-wc69-c255
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesGHSA-3ccm-4qq2-5wrp
Constrata's coordinator transit engine `ciphertextContainer.UnmarshalJSON` panics on attacker-controlled short ciphertexts
medium4.3Jul 1, 2026GHSA-6c87-g9pw-78fx
Contrast's Imagepuller registryFor uses unanchored suffix matching, leaking auth credentials and trusted CA configuration to sibling-domain registries
low3.7Jul 1, 2026GHSA-g9ww-x58f-9g6m
Contrast BadAML injection allows arbitrary code execution
high8.4Mar 26, 2026GHSA-f5p4-p5q5-jv3h
Contrast has insecure LUKS2 persistent storage partitions may be opened and used
medium5.7Oct 28, 2025GHSA-vxg3-w9rv-rhr2
Contrast leaks workload secrets to logs on INFO level
high7.3Aug 28, 2025GHSA-phhq-63jg-fp7r
Contrast vulnerability allows arbitrary host data Injection into container VOLUME mount points
low3.5Jul 9, 2025
