HIGH8.1
GHSA-m3cq-xcx9-3gvm
kyverno verifyImages rule bypass possible with malicious proxy/registry
Quick fix
GHSA-m3cq-xcx9-3gvm — github.com/kyverno/kyverno: upgrade to the fixed version with the command below.
go get github.com/kyverno/kyverno@v1.8.5Details
### Impact
Users of Kyverno on versions 1.8.3 or 1.8.4 who use `verifyImages` rules to verify container image signatures, and do not prevent use of unknown registries.
### Patches
This issue has been fixed in version [1.8.5](https://github.com/kyverno/kyverno/releases/tag/v1.8.5)
### Workarounds
Configure a Kyverno policy to restrict registries to a set of secure trusted image registries ([sample](https://kyverno.io/policies/best-practices/restrict_image_registries/restrict_image_registries/)).
### References
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/kyverno/kyverno
Introduced in:
1.8.3Fixed in: 1.8.5Fix
go get github.com/kyverno/kyverno@v1.8.5References
- https://github.com/kyverno/kyverno/security/advisories/GHSA-m3cq-xcx9-3gvm[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2022-47633[ADVISORY]
- https://github.com/kyverno/kyverno/pull/5713[WEB]
- https://github.com/kyverno/kyverno[PACKAGE]
- https://github.com/kyverno/kyverno/compare/v1.8.4...v1.8.5[WEB]
- https://github.com/kyverno/kyverno/releases/tag/v1.8.5[WEB]
- https://kyverno.io/docs/writing-policies/verify-images[WEB]
- https://kyverno.io/policies/best-practices/restrict_image_registries/restrict_image_registries[WEB]
- https://pkg.go.dev/vuln/GO-2022-1180[WEB]
- https://web.archive.org/web/20230426095744/https://kyverno.io/policies/best-practices/restrict_image_registries/restrict_image_registries[WEB]