Contras Affected by CopyFile Policy Subversion via Symlinks
Published 30 Apr 2026 · Updated 27 Sept 2026
Is your project on an affected github.com/edgelesssys/contrast?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.19.1
- Fixed in
- 1.19.1
go get github.com/edgelesssys/contrast@v1.19.1Details
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
Is GHSA-rh99-wc69-c255 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/edgelesssys/contrast, and gives you the command that fixes it.
More advisories for github.com/edgelesssys/contrast
- LowCVE-2026-100836Constrata's coordinator transit engine `ciphertextContainer.UnmarshalJSON` panics on attacker-controlled short ciphertexts in github.com/edgelesssys/contrast · 7 Jul 2026
- LowCVE-2026-100837Contrast's Imagepuller registryFor uses unanchored suffix matching, leaking auth credentials and trusted CA configuration to sibling-domain registries in github.com/edgelesssys/contrast · 7 Jul 2026
- MediumCVE-2026-100836Constrata's coordinator transit engine `ciphertextContainer.UnmarshalJSON` panics on attacker-controlled short ciphertexts · 1 Jul 2026
- LowCVE-2026-100837Contrast's Imagepuller registryFor uses unanchored suffix matching, leaking auth credentials and trusted CA configuration to sibling-domain registries · 1 Jul 2026
- LowCVE-2026-100839Contrast BadAML injection allows arbitrary code execution in github.com/edgelesssys/contrast · 2 Apr 2026
- HighCVE-2026-100839Contrast BadAML injection allows arbitrary code execution · 26 Mar 2026
References
- Linkgithub.com/edgelesssys/contrast/security/advisories/GHSA-rh99-wc69-c255
- Linkgithub.com/kata-containers/kata-containers/security/advisories/GHSA-q49m-57vm-c8cc
- Linkgist.github.com/burgerdev/304dd0ab0fff1665b7c27e18a30cf96e
- Packagegithub.com/edgelesssys/contrast
- Linkgithub.com/edgelesssys/contrast/releases/tag/v1.19.1
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.