CVE-2026-50562

FastGPT: Untrusted PR artifacts are pushed and deployed by privileged preview workflows

Published Jul 15, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
Description
FastGPT is a knowledge-based AI application platform. At commit 22ebfacbb43311e9b73294040ae0eb87390c6bba and earlier, artifacts built from untrusted pull request code in .github/workflows/preview-docs-build.yml and .github/workflows/preview-fastgpt-build.yml can be downloaded by privileged workflow_run jobs in .github/workflows/preview-docs-push.yml and .github/workflows/preview-fastgpt-push.yml, allowing attacker-controlled Docker images from the document/ tree or FastGPT build context to be pushed to GHCR and, for documentation previews, deployed with secrets.KUBE_CONFIG_CN.

Analysis

AI-generated

Technical impact

FastGPT (labring:FastGPT) is a knowledge‑based AI application platform. Until commit 22ebfacbb43311e9b73294040ae0eb87390c6bba, artifacts are built from untrusted pull‑request code in the ".github/workflows/preview‑docs‑build.yml" and ".github/workflows/preview‑fastgpt‑build.yml" files. These artifacts can be downloaded by privileged workflow_run jobs defined in ".github/workflows/preview‑docs‑push.yml" and ".github/workflows/preview‑fastgpt‑push.yml". As a result, an attacker who controls the pull request can create Docker images that are automatically pushed to GitHub Container Registry and, for documentation previews, deployed into the target cluster using the secrets.KUBE_CONFIG_CN Kubernetes configuration. The attacker therefore achieves remote code execution inside the container runtime through the automated preview workflow.

Affected Systems

The vulnerable component is the FastGPT platform as maintained by labring. Versions up to and including commit 22ebfacbb43311e9b73294040ae0eb87390c6bba are affected. No specific release numbers are provided beyond this commit marker.

Risk and Exploitability

The CVSS score of 9.3 indicates a high severity vulnerability. The EPSS score is less than 1%, suggesting the probability of exploitation is currently low but non‑zero. The vulnerability is not listed in CISA's KEV catalog. Attackers can exercise the malicious path by submitting a pull request containing a malicious Dockerfile, then triggering a preview workflow that uses the untrusted artifact. If the workflow has privileged status, the attacker’s image is automatically pushed and deployed, giving remote code execution within the target environment.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update FastGPT to the latest commit that fixes the preview workflow issue.
  • Restrict preview workflows so that they only download artifacts from trusted origins and validate image signatures before pushing to GHCR.
  • Review and limit the scope of the KUBE_CONFIG_CN secret to prevent unintended deployments of unverified container images.

Generated by OpenCVE AI on July 31, 2026 at 03:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Labring
Labring fastgpt
Vendors & Products Labring
Labring fastgpt
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description FastGPT is a knowledge-based AI application platform. At commit 22ebfacbb43311e9b73294040ae0eb87390c6bba and earlier, artifacts built from untrusted pull request code in .github/workflows/preview-docs-build.yml and .github/workflows/preview-fastgpt-build.yml can be downloaded by privileged workflow_run jobs in .github/workflows/preview-docs-push.yml and .github/workflows/preview-fastgpt-push.yml, allowing attacker-controlled Docker images from the document/ tree or FastGPT build context to be pushed to GHCR and, for documentation previews, deployed with secrets.KUBE_CONFIG_CN.
Title FastGPT: Untrusted PR artifacts are pushed and deployed by privileged preview workflows
Weaknesses CWE-266
CWE-494
CWE-829
References
Metrics cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:H/SI:H/SA:L'}

Weaknesses
  • CWE-266

    Incorrect Privilege Assignment

  • CWE-494

    Download of Code Without Integrity Check

  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 15, 2026, 6:13 PM
Reserved
Jun 4, 2026, 9:34 PM
Status
Deferred
Published
Jul 15, 2026, 6:16 PM
Modified
Oct 24, 2026, 9:10 PM