GHSA-wfqx-gjrf-g28r: Crossplane Signature Verification TOCTOU Allows Installing Vulnerability

CRITICAL
CVSS 9.0
CWE-367 CWE-345
Published
Advisory Summary

GHSA-wfqx-gjrf-g28r is a CRITICAL (CVSS 9.0) signature verification toctou allows installing vulnerability (CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition) affecting Crossplane libraries in the Go ecosystem. The issue involves signature verification toctou allows installing unverified package content via mutable tag. Remediation is available by upgrading affected packages to version 2.3.3, 2.2.3.

GHSA-wfqx-gjrf-g28r at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-wfqx-gjrf-g28r
Severity CRITICAL
CVSS v3.1 Base Score 9.0
CWE Classification CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Affected Product Crossplane
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-wfqx-gjrf-g28r

To remediate this vulnerability, upgrade all affected Crossplane dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/crossplane/crossplane/v2 fixed: 2.3.3
Upgrade github.com/crossplane/crossplane/v2 to 2.3.3
github.com/crossplane/crossplane/v2 fixed: 2.2.3
Upgrade github.com/crossplane/crossplane/v2 to 2.2.3
github.com/crossplane/crossplane fixed: Latest secure release
Upgrade github.com/crossplane/crossplane to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/crossplane/crossplane/v2

How to Check if You Are Affected

To determine whether your application is affected by GHSA-wfqx-gjrf-g28r, inspect your project dependencies for Crossplane:

inspect dependencies for github.com/crossplane/crossplane/v2

Analyze the terminal output to locate any version of Crossplane in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition, where the product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. In Crossplane, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## 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. ## Note on Fixed Versions The Crossplane maintainers are *not* planning to backport the fix for this advisory to the 1.20 branch, for two reasons: 1. 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. 2. 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. ## Credits This issue was reported, independently, by @bugbunny-research and @tonghuaroot.

GHSA-wfqx-gjrf-g28r Affected Crossplane Versions

3 component(s)
Fixed Versions:
2.3.32.2.3
Product / Package Ecosystem Affected Versions Fixed Version
github.com/crossplane/crossplane/v2
Go
≥ 2.3.0-rc.0
< 2.3.3
2.3.3
github.com/crossplane/crossplane/v2
Go
< 2.2.3
2.2.3
github.com/crossplane/crossplane
Go
≤ 1.21.0-rc.0

References

Frequently Asked Questions

What is GHSA-wfqx-gjrf-g28r?
GHSA-wfqx-gjrf-g28r is a security vulnerability in Crossplane involving Signature verification TOCTOU allows installing unverified package content via mutable tag under CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition.
Which Crossplane versions are affected?
Affected versions include releases prior to 2.3.3, 2.2.3 across affected packages: github.com/crossplane/crossplane/v2, github.com/crossplane/crossplane.
What version fixes GHSA-wfqx-gjrf-g28r?
Upgrading to 2.3.3, 2.2.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/crossplane/crossplane/v2 affected?
Yes, github.com/crossplane/crossplane/v2 is affected in releases prior to 2.3.3, 2.2.3. Upgrade your dependency to 2.3.3, 2.2.3 or later.
Is github.com/crossplane/crossplane affected?
Yes, github.com/crossplane/crossplane is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of GHSA-wfqx-gjrf-g28r?
GHSA-wfqx-gjrf-g28r has a CVSS v3.1 base score of 9.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with GHSA-wfqx-gjrf-g28r?
GHSA-wfqx-gjrf-g28r is classified under CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition (The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.).
How can I check Go dependencies for GHSA-wfqx-gjrf-g28r?
Run the dependency tree command: 'inspect dependencies for github.com/crossplane/crossplane/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-wfqx-gjrf-g28r",
  "modified" : "2026-09-29T21:17:31Z",
  "published" : "2026-06-19T20:47:55Z",
  "aliases" : [ ],
  "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/crossplane/crossplane/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0-rc.0"
      }, {
        "fixed" : "2.3.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.3.2"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/crossplane/crossplane/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.2.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.2.2"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/crossplane/crossplane"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.21.0-rc.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/crossplane/crossplane/security/advisories/GHSA-wfqx-gjrf-g28r"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/crossplane/crossplane"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-345", "CWE-367" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-19T20:47:55Z",
    "nvd_published_at" : null
  }
}