{"id":"GHSA-wfqx-gjrf-g28r","summary":"Crossplane: Signature verification TOCTOU allows installing unverified package content via mutable tag","details":"## Summary\n\nCrossplane allows package signature verification to be configured via the `ImageConfig` mechanism. When enabled, the package manager uses cosign to verify that packages are correctly signed before pulling and installing them.\n\nWhen a package is installed using a tag reference (e.g., a semantic version), a malicious OCI registry could serve a correctly signed image for verification, then subsequently serve an unsigned image for installation. This is possible because Crossplane resolves the tag reference separately for each step.\n\nThis vulnerability is relevant only for users who do all three of the following:\n\n1. Configure signature verification for packages,\n2. Install packages using tag references rather than digests, and\n3. Install packages from registries they do not control.\n\n## Mitigation\n\nInstalling packages by image digest rather than using tags avoids this issue.\n\n## Fix\n\nThe package manager has been updated to resolve tag references once and use the resulting digest for both signature verification and image fetching. This ensures that Crossplane pulls the same content that had its signature verified. The fix has been applied to Crossplane's `main` branch and backported to the v2.3 and v2.2 release branches; it will be released in v2.3.3 and v2.2.3.\n\n## Note on Fixed Versions\n\nThe Crossplane maintainers are *not* planning to backport the fix for this advisory to the 1.20 branch, for two reasons:\n\n1. The advisory is relevant only when an alpha feature is enabled and configured, and has a reasonable mitigation that is already a security best practice.\n2. Doing so would require a major refactor of package manager internals to match the refactor that shipped in Crossplane v2.2. Such a refactor would be an unnecessary risk given the policy that v1.20 receives only critical fixes and that this advisory affects only users of an alpha feature.\n\n## Credits\n\nThis issue was reported, independently, by @bugbunny-research and @tonghuaroot.","aliases":["GO-2026-5709"],"modified":"2026-09-29T21:30:09.044159337Z","published":"2026-06-19T20:47:55Z","database_specific":{"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2026-06-19T20:47:55Z","nvd_published_at":null,"cwe_ids":["CWE-345","CWE-367"]},"references":[{"type":"WEB","url":"https://github.com/crossplane/crossplane/security/advisories/GHSA-wfqx-gjrf-g28r"},{"type":"PACKAGE","url":"https://github.com/crossplane/crossplane"}],"affected":[{"package":{"name":"github.com/crossplane/crossplane/v2","ecosystem":"Go","purl":"pkg:golang/github.com/crossplane/crossplane/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.3.0-rc.0"},{"fixed":"2.3.3"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 2.3.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-wfqx-gjrf-g28r/GHSA-wfqx-gjrf-g28r.json"}},{"package":{"name":"github.com/crossplane/crossplane/v2","ecosystem":"Go","purl":"pkg:golang/github.com/crossplane/crossplane/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.2.3"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 2.2.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-wfqx-gjrf-g28r/GHSA-wfqx-gjrf-g28r.json"}},{"package":{"name":"github.com/crossplane/crossplane","ecosystem":"Go","purl":"pkg:golang/github.com/crossplane/crossplane"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.21.0-rc.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-wfqx-gjrf-g28r/GHSA-wfqx-gjrf-g28r.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"}]}