Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/crossplane/crossplane-runtime/v2
  4. ›
  5. GHSA-mf7q-r4rv-jv94

GHSA-mf7q-r4rv-jv94: Crossplane's TOCTOU between cosign verification and image fetch in xpkg.CachedClient allows tag-based package install to bypass signature check

August 27, 2026

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.

References

  • github.com/advisories/GHSA-mf7q-r4rv-jv94
  • github.com/crossplane/crossplane-runtime/security/advisories/GHSA-mf7q-r4rv-jv94

Code Behaviors & Features

Detect and mitigate GHSA-mf7q-r4rv-jv94 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.3.0 before 2.3.3, all versions starting from 2.4.0-rc.0 before 2.4.0-rc.1

Fixed versions

  • 2.3.3
  • 2.4.0-rc.1

Solution

Upgrade to versions 2.3.3, 2.4.0-rc.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-345: Insufficient Verification of Data Authenticity
  • CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition

Source file

go/github.com/crossplane/crossplane-runtime/v2/GHSA-mf7q-r4rv-jv94.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 28 Aug 2026 00:17:56 +0000.