GHSA-mf7q-r4rv-jv94

Suggest an improvement
Source
https://github.com/advisories/GHSA-mf7q-r4rv-jv94
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/08/GHSA-mf7q-r4rv-jv94/GHSA-mf7q-r4rv-jv94.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-mf7q-r4rv-jv94
Aliases
Downstream
CGA (4)
MINI (2)
Published
2026-08-27T17:25:25Z
Modified
2026-09-09T18:25:57Z
Severity
  • 8.2 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
Crossplane's TOCTOU between cosign verification and image fetch in xpkg.CachedClient allows tag-based package install to bypass signature check
Details

Summary

Crossplane 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.

When 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.

This vulnerability is relevant only for users who do all three of the following:

  1. Configure signature verification for packages,
  2. Install packages using tag references rather than digests, and
  3. Install packages from registries they do not control.

Mitigation

Installing packages by image digest rather than using tags avoids this issue.

Fix

The 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.

Credits

This issue was reported, independently, by @bugbunny-research and @tonghuaroot.

Database specific
{
    "cwe_ids":  [
        "CWE-345",
        "CWE-367"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-08-27T17:25:25Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

Go / github.com/crossplane/crossplane-runtime/v2

Package

Name
github.com/crossplane/crossplane-runtime/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/crossplane/crossplane-runtime/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.4.0-rc.0
Fixed
2.4.0-rc.1

Affected versions

2.*
2.4.0-rc.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/08/GHSA-mf7q-r4rv-jv94/GHSA-mf7q-r4rv-jv94.json"

Go / github.com/crossplane/crossplane-runtime/v2

Package

Name
github.com/crossplane/crossplane-runtime/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/crossplane/crossplane-runtime/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.3.0
Fixed
2.3.3

Database specific

last_known_affected_version_range
"<= 2.3.2"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/08/GHSA-mf7q-r4rv-jv94/GHSA-mf7q-r4rv-jv94.json"