CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-MF7Q-R4RV-JV94

GHSA-MF7Q-R4RV-JV94: Time-of-Check to Time-of-Use (TOCTOU) Signature Verification Bypass in Crossplane Runtime

Alon Barad
Alon Barad
Software Engineer

Aug 27, 2026·7 min read·28 visits

Executive Summary (TL;DR)

A high-severity TOCTOU race condition in Crossplane's package client allows a malicious OCI registry to bypass Cosign signature checks. By swapping tag pointers between the verification step and the install step, the registry can force Crossplane to download and run unsigned, malicious packages.

Crossplane's runtime package manager engine contains a Time-of-Check to Time-of-Use (TOCTOU) race condition in its container signature verification pipeline. When Crossplane parses package definitions using dynamic tag-based references, it resolves the tag on the remote OCI registry twice: once during the signature verification step (the 'Check' phase) and once during the fetch and install step (the 'Use' phase). An attacker controlling the destination OCI registry can exploit this vulnerability by serving a validly signed benign image for the verification phase, and then dynamically swapping the tag to point to an unsigned, malicious package during the fetch phase.

Vulnerability Overview

Crossplane relies on OCI (Open Container Initiative) registries to host, distribute, and manage packages (Providers and Configurations) that extend control plane capabilities. To ensure supply chain security, administrators configure signature verification using Cosign via Crossplane's ImageConfig architecture. This control ensures that only packages cryptographically signed by authorized keys are loaded and executed within the Kubernetes cluster.

However, the implementation of this verification pipeline within xpkg.CachedClient introduces a critical flaw. The underlying package manager evaluates dynamic OCI tag references (such as :v1.2.3 or :latest) sequentially over separate HTTP network requests. Because these steps are decoupled and depend on a remote, untrusted server to resolve the same mutable tag multiple times, the mechanism is exposed to a classic Time-of-Check to Time-of-Use (TOCTOU) race condition.

This flaw allows a malicious or compromised OCI registry to undermine the trust model. By manipulating the resolution of a tag pointer during the brief window between signature verification and package extraction, an attacker can trick Crossplane into installing arbitrary, unsigned code while registering the execution as verified and trusted.

Root Cause Analysis

The root cause of GHSA-MF7Q-R4RV-JV94 is the failure to enforce content immutability across the verification and retrieval boundaries. In a secure OCI distribution workflow, a dynamic reference tag must be resolved to a static cryptographic digest (the SHA-256 hash) immediately. All subsequent operations, such as signature verification, metadata analysis, and layer retrieval, must execute against this immutable digest.

Historically, the Crossplane package manager client performed these steps in isolation. When a user submitted a package manifest reference, Crossplane queried the registry to find the signature mapping associated with the human-readable tag. It verified this signature payload. It did not, however, lock the underlying package retrieval phase to the exact digest returned by the first query.

This structural design allows a malicious OCI registry to track state across inbound API requests. The registry answers the signature payload request with verified data linked to a clean, signed image. When the immediate subsequent request arrives seeking the image layers for installation, the registry dynamically updates its pointer, mapping the same tag reference to a completely different, unsigned, and malicious image digest. The package manager, still executing in the context of the same logical task, extracts the unsigned container layers without detecting the switch.

Code Path and Architectural Analysis

Before the remediation patch, the package retrieval and verification phases in the package client relied on separate calls to the container registry library. The xpkg.CachedClient structured its fetch loop conceptually as follows:

// Conceptual representation of the vulnerable xpkg.CachedClient design
func (c *CachedClient) PullAndVerify(ctx context.Context, ref name.Reference) (v1.Layer, error) {
    // Step 1: The 'Check' Phase
    // The registry resolves the dynamic tag 'ref' to fetch the signature
    desc, err := remote.Head(ref, c.options...)
    if err != nil {
        return nil, err
    }
    if err := c.verifyCosignSignature(ctx, ref); err != nil {
        return nil, fmt.Errorf("signature verification failed: %w", err)
    }
 
    // Step 2: The 'Use' Phase
    // The registry resolves the dynamic tag 'ref' AGAIN during the actual fetch call
    img, err := remote.Image(ref, c.options...)
    if err != nil {
        return nil, err
    }
    return img.Layers()
}

The vulnerability is fixed by reorganizing the flow to perform a single, authoritative resolution of the tag to its immutable digest before any operations begin. Once the digest is acquired, all subsequent steps use this resolved digest rather than the dynamic tag.

// Conceptual representation of the patched and secure implementation
func (c *CachedClient) PullAndVerifyPatched(ctx context.Context, ref name.Reference) (v1.Layer, error) {
    // Step 1: Resolve tag to an immutable digest immediately
    desc, err := remote.Head(ref, c.options...)
    if err != nil {
        return nil, err
    }
 
    // Build an immutable reference mapping using the absolute SHA-256 digest
    digestRef, err := name.NewDigest(ref.Context().Name() + "@" + desc.Digest.String())
    if err != nil {
        return nil, err
    }
 
    // Step 2: Run verification against the immutable digest
    if err := c.verifyCosignSignature(ctx, digestRef); err != nil {
        return nil, fmt.Errorf("signature verification failed: %w", err)
    }
 
    // Step 3: Fetch the image using the same immutable digest
    img, err := remote.Image(digestRef, c.options...)
    if err != nil {
        return nil, err
    }
    return img.Layers()
}

By forcing the use of digestRef instead of ref in both the verification and fetch functions, the client eliminates the second registry query for the tag. If the remote registry tries to serve a different image during the fetch step, the request fails because the client specifically requests the content by its SHA-256 digest hash rather than its symbolic tag pointer.

Exploitation Methodology

To exploit this vulnerability, an attacker must have administrative control over an OCI registry (or manipulate an upstream registry) and convince a victim to reference a package hosted on it. The exploitation pipeline proceeds systematically:

First, the attacker crafts an OCI registry server with dynamic request routing. The registry maintains a state machine for incoming HTTP connections based on client IP addresses and user-agent strings. When a target initiates a package pull request, the registry detects the initial requests seeking signature layers (e.g., sha256-<digest>.sig). It serves the metadata and signature payload for a benign, fully compliant, and signed package, satisfying the local Crossplane Cosign validation checks.

Second, the registry tracks the request lifecycle. Immediately after delivering the signature manifest, the registry's tag resolution engine modifies the mapping for the targeted tag. When the client executes the follow-up HTTP GET request for the container's image manifest config or layers, the registry redirects the request to point to an unsigned, malicious package containing custom controllers or resources.

Finally, the target cluster extracts and installs the dynamic payload. Because the client believes the signature step succeeded for the requested logical unit, the malicious resources are registered directly into the Kubernetes cluster as trusted extensions.

Impact Assessment

The execution of unauthorized packages in a Kubernetes cluster represents a critical control bypass. Crossplane Providers typically run with highly privileged service accounts to manage cloud infrastructure, meaning a compromised package can result in full control-plane takeover or unauthorized cloud resource creation.

The CVSS v4.0 score is calculated at 8.2, reflecting a high-integrity impact with low attack complexity. Because this vulnerability bypasses supply chain protection controls, organizations that rely on code signing to permit third-party packages are exposed to silent, unauthenticated arbitrary code execution if they pull packages from external registries.

Fortunately, because the vulnerability requires active collaboration with or control over the host registry, exploitation is limited to scenarios where victims are tricked into referencing packages on untrusted registries, or where an upstream registry has been compromised. There are no known instances of this vulnerability being exploited in the wild, and it is not listed in CISA's Known Exploited Vulnerabilities catalog.

Remediation and Mitigation Guidance

The permanent remediation is to upgrade the crossplane-runtime dependency and the Core Crossplane installation to the patched releases. The maintenance teams have backported the single-resolution fix to all active stable releases.

If you cannot apply the patch immediately, you can remediate this flaw entirely by modifying your package deployment manifests. You must reference packages exclusively by their cryptographic digest (@sha256:...) instead of dynamic version tags (:v1.0.0). Because digest references are inherently immutable, they force the client libraries to request identical data during both the verification and fetch steps, removing the TOCTOU window entirely.

Additionally, security teams should implement Kubernetes admission controllers (such as OPA Gatekeeper or Kyverno) to enforce policies that block Provider or Configuration specifications that use tag-based references, requiring a strict SHA-256 digest format for all packages.

Technical Appendix

CVSS Score
8.2/ 10
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

Affected Systems

Crossplane RuntimeCrossplane Package Manager client (xpkg.CachedClient)

Affected Versions Detail

Product
Affected Versions
Fixed Version
github.com/crossplane/crossplane-runtime
Crossplane
= 2.4.0-rc.02.4.0-rc.1
github.com/crossplane/crossplane-runtime
Crossplane
>= 2.3.0, <= 2.3.22.3.3
github.com/crossplane/crossplane-runtime
Crossplane
>= 2.2.0, < 2.2.32.2.3
AttributeDetail
CWE IDCWE-367
Attack VectorNetwork
CVSS v4.08.2
EPSS ScoreNot Applicable (No CVE Assigned)
ImpactSignature Verification Bypass / Arbitrary Code Execution
Exploit StatusNone (No public exploit or PoC available)
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1553.006Subvert Trust Controls: Code Signing
Defense Evasion
T1195.002Supply Chain Compromise: Compromise Software Dependencies
Initial Access
CWE-367
Time-of-check Time-of-use (TOCTOU) Race Condition

A Time-of-Check to Time-of-Use (TOCTOU) race condition occurs when a program checks the state of a resource before performing an operation, but the state of that resource changes between the check and the use, invalidating the results of the check.

Vulnerability Timeline

Vulnerability GHSA-MF7Q-R4RV-JV94 published in the GitHub Advisory Database.
2026-08-27
Coordinated disclosure credits assigned to security researchers @bugbunny-research and @tonghuaroot.
2026-08-27
Upstream patches backported to releases v2.2, v2.3, and v2.4.
2026-08-27

References & Sources

  • [1]GitHub Security Advisory GHSA-mf7q-r4rv-jv94
  • [2]GitHub Advisory Database Entry
  • [3]Upstream Crossplane Runtime Repository

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 1 hour ago•CVE-2026-135388
9.1

CVE-2026-135388: Cryptographic Signature Verification Bypass in Pion DTLS

CVE-2026-135388 (GHSA-7c2r-jhm9-43vf) is an improper verification of cryptographic signature vulnerability (CWE-347) in Pion DTLS, a pure Go implementation of Datagram Transport Layer Security (RFC 6347). The vulnerability stems from signature scheme confusion and missing cryptographic parameter binding in the handshake verification functions verifyKeySignature and verifyCertificateVerify. By presenting a genuine peer certificate paired with an incompatible or digest-less signature hash algorithm on the wire, an unauthenticated network adversary can bypass signature verification without possessing the peer's private key. This allows peer impersonation and full compromise of confidentiality and integrity in DTLS-protected channels, including WebRTC sessions utilizing SDP certificate fingerprint verification.

Alon Barad
Alon Barad
4 views•10 min read
•about 2 hours ago•CVE-2026-134024
6.8

CVE-2026-134024: Latent Server-Side Request Forgery Gadget in TastyIgniter Media Attachment Handler

CVE-2026-134024 is a Server-Side Request Forgery (SSRF) vulnerability (CWE-918) in the TastyIgniter open-source restaurant management platform prior to version 4.4.4. The flaw resides in the Media::addFromUrl() helper method within the tastyigniter/core package, which initiates outbound HTTP GET requests to caller-supplied URLs and persists the response body without validating the URI scheme, target hostname, or resolved IP address. Although unreachable in a default unextended installation, the method functions as a latent SSRF gadget that exposes the host environment to internal network reconnaissance and cloud metadata extraction when invoked by third-party extensions or custom application code.

Alon Barad
Alon Barad
2 views•10 min read
•about 3 hours ago•CVE-2026-61832
7.5

CVE-2026-61832: Improper Certificate Validation and Insecure Deserialization in NukeViet CMS

CVE-2026-61832 is a compound vulnerability in NukeViet CMS versions prior to 4.6.00 resulting from disabled TLS certificate validation (CWE-295) in internal HTTP clients and unrestricted PHP deserialization (CWE-502) in administrative extension store handlers. An adversary-in-the-middle (AiTM) attacker can intercept outbound HTTPS connections to the NukeViet extension store API and inject a crafted serialized PHP object. When an administrator interacts with the extension store, the application deserializes the response, triggering an in-tree Property-Oriented Programming (POP) gadget chain in Guzzle to achieve arbitrary file write and remote code execution.

Amit Schendel
Amit Schendel
5 views•10 min read
•about 4 hours ago•CVE-2026-69217
8.7

CVE-2026-69217: HTTP Request and Response Smuggling in http4s ember-core

CVE-2026-69217 (also tracked as GHSA-p83c-4wj9-p6w9) is an HTTP request and response smuggling vulnerability in the ember-core module of the http4s Scala library. Prior to versions 0.23.35 and 1.0.0-M47, the HTTP/1.1 message parser failed to reject HTTP messages containing duplicate Content-Length header fields with conflicting values or sign-prefixed numeric values. Instead of returning a 400 Bad Request error as mandated by RFC 9112 Section 6.3, the parser accepted all occurrences sequentially and honored the final Content-Length value, while also permitting negative numbers via Scala's standard string-to-long conversion. When deployed behind a reverse proxy or intermediary that prioritizes the first Content-Length header or handles non-digit characters differently, unauthenticated remote attackers can desynchronize persistent HTTP/1.1 connections to perform web cache poisoning, bypass front-end security controls, and capture cross-user HTTP requests.

Amit Schendel
Amit Schendel
5 views•11 min read
•5 days ago•CVE-2026-65973
6.4

CVE-2026-65973: Local OS Command Injection in Laradocs KaTeX Server-Side Rendering

CVE-2026-65973 (GHSA-h746-qpxh-ph7g) is a local operating system command injection vulnerability (CWE-78) in the PeteBishwhip/laradocs package for Laravel. Versions from 0.4.0 to before 1.0.0 fail to sanitize or escape the configured Node.js binary path before passing it as part of a command string to PHP's proc_open() function during server-side KaTeX rendering. An attacker with the ability to modify local configuration files or environment variables can inject shell metacharacters to execute arbitrary OS commands under the privileges of the web server process.

Amit Schendel
Amit Schendel
21 views•9 min read
•5 days ago•CVE-2026-65971
7.6

CVE-2026-65971: SQL Injection in Livewire PowerGrid via Public sortDirection Property

A SQL injection vulnerability exists in power-components/livewire-powergrid versions 6.0.0 through 6.10.3. The public Livewire component property sortDirection is interpolated directly into raw SQL ORDER BY clauses during natural sorting operations without prior validation. By clearing the sortField property to bypass standard Laravel query builder protections, an attacker can inject arbitrary SQL expressions via POST requests to the /livewire/update endpoint.

Amit Schendel
Amit Schendel
14 views•9 min read