Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOpen malicious fork pull request
-
DeliveryPR build workflow packages poisoned Docker artifact
-
ExploitPrivileged workflow_run job downloads trusted artifact
-
ExecutionPush attacker image to GHCR
-
PersistDeploy to CN cluster with KUBE_CONFIG_CN
-
ImpactRegistry and Kubernetes compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Privilege assignment review
|
| Exploitation Conditions | Exploitation requires that the target repository be running the vulnerable preview build/push workflows (preview-docs-build.yml, preview-fastgpt-build.yml, preview-docs-push.yml, preview-fastgpt-push.yml) at commit 22ebfacbb43311e9b73294040ae0eb87390c6bba or earlier, with the workflow_run push jobs configured to download artifacts produced by fork-PR builds and, for the docs pipeline, with secrets.KUBE_CONFIG_CN available to the deploy step. The concrete prerequisite is simply the ability to open a pull request against the repository (default for any GitHub user); no authentication into the project, no maintainer approval, and no user interaction are needed (PR:N/UI:N). The limiting factor is that this only affects the project's own CI/CD supply chain - a fork of the repo without the CN cluster secret or an environment where fork-PR workflows require manual approval is not exploitable, and the impact does not extend to independently deployed end-user FastGPT instances. |
| Impact | The GitHub-assigned CVSS 4.0 score of 9.3 (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:H/SI:H/SA:L) reflects a network-reachable, no-authentication, no-interaction attack with high integrity impact on the vulnerable CI system and high confidentiality/integrity impact on subsequent systems (the registry and Kubernetes cluster). The realistic barrier to exploitation is low: anyone can open a pull request, and no special account privileges are needed, so PR:N is justified. Countervailing factors are that this is a repository-supply-chain/CI weakness rather than a flaw in deployed FastGPT instances - the blast radius is the project's own build infrastructure, GHCR namespace, and CN cluster, not end-user installations. No EPSS score was provided and there is no KEV listing or public POC, suggesting no observed exploitation; the risk is primarily one of latent supply-chain compromise if a targeted attacker crafts a malicious PR. Note the input vector marks VC:N (no direct confidentiality on the CI system) yet the description explicitly involves deploying with secrets.KUBE_CONFIG_CN, which is a secret-exposure/confidentiality concern captured under SC:H - treat the kubeconfig secret as at risk. |
| Exploit ScenarioDerived | A malicious external contributor opens a pull request that modifies the document/ tree or the FastGPT build context so that the resulting Docker image contains attacker code. The low-privilege build workflow packages this poisoned image as a CI artifact, and the privileged workflow_run push job then downloads it, pushes it to GHCR, and deploys the docs preview to the CN Kubernetes cluster using secrets.KUBE_CONFIG_CN - handing the attacker a foothold in the registry and cluster and potential access to the kubeconfig secret. No public exploit is identified at time of analysis, but the attack requires only the ability to open a PR. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 15, 2026
GitHub Actions artifact-poisoning (pwn request) in labring/FastGPT allows an external attacker who opens a pull request to smuggle attacker-controlled Docker images into privileged CI/CD pipelines. At commit 22ebfacbb43311e9b73294040ae0eb87390c6bba and earlier, artifacts built from untrusted PR code in the preview-docs-build and preview-fastgpt-build workflows are consumed by privileged workflow_run jobs, letting a malicious image be pushed to GHCR and, for documentation previews, deployed to a Kubernetes cluster using the secrets.KUBE_CONFIG_CN credential. There is no public exploit identified at time of analysis and it is not in CISA KEV, but the flaw is trivially reachable by any contributor.
RemediationAI
Update to a FastGPT commit that includes the corrected workflows as described in advisory GHSA-rvgc-2c29-g876 (https://github.com/labring/FastGPT/security/advisories/GHSA-rvgc-2c29-g876); an exact patched release tag is not specified in the available data, so the fix should be pulled from the commit that supersedes 22ebfacbb43311e9b73294040ae0eb87390c6bba. Concrete hardening steps that address the pwn-request pattern: stop passing repository secrets (especially KUBE_CONFIG_CN) to any job that consumes artifacts built from fork code; require manual approval for workflows triggered by external pull requests via GitHub's 'require approval for all outside collaborators' setting; validate and pin artifact provenance before the privileged workflow_run job downloads it, or rebuild the image inside the trusted job rather than trusting the PR-produced artifact; scope the GHCR/registry token and KUBE_CONFIG_CN to the minimum needed and rotate KUBE_CONFIG_CN if there is any suspicion it was exposed. The trade-off of requiring PR approval is added maintainer friction on legitimate contributions, and rebuilding images in-trust increases CI runtime.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-266 (Incorrect Privilege Assignment) manifested as the classic GitHub Actions 'pwn request' / artifact-poisoning pattern. The build workflows (.github/workflows/preview-docs-build.yml and preview-fastgpt-build.yml) run in the low-privilege pull_request context and produce build artifacts from untrusted fork code (the document/ tree and the FastGPT build context). The push workflows (preview-docs-push.yml and preview-fastgpt-push.yml) are triggered by the workflow_run event, which executes in the repository's trusted context with access to write permissions and secrets. Because the privileged workflow_run job downloads and trusts an artifact produced by attacker code, a fork PR can substitute a malicious Docker image that is then pushed to the GitHub Container Registry (GHCR) and, for the docs pipeline, deployed to the CN Kubernetes cluster via secrets.KUBE_CONFIG_CN. The affected product per CPE is cpe:2.3:a:labring:fastgpt:*:*:*:*:*:*:*:*.
Know when Fastgpt gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Anyone can open a PR so PR:N/UI:N; scope changes (S:C) as the CI flaw compromises GHCR and the K8s cluster; C:H from KUBE_CONFIG_CN exposure, I:H from malicious image push, A:L from possible deploy disruption.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
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.
Articles & Coverage 1
Executive ViewAI
FastGPT deployments using the affected CI/CD pipelines are vulnerable to code injection attacks initiated through pull requests. Any external contributor who opens a pull request can poison the container images built from their code, which are then automatically deployed to Kubernetes clusters using production credentials stored in the repository. This allows attackers to execute arbitrary code in your production environment and potentially steal sensitive data stored in cluster credentials.
No vendor-released patch identified at time of analysis. Interim mitigations include: (1) Restrict pull request creation to verified team members only; (2) Implement mandatory manual approval before any pull-request-generated artifacts are promoted to production; (3) Disable external pull request triggers for the preview-docs-build and preview-fastgpt-build GitHub Actions workflows; (4) Implement container image signature verification and scanning before deployment to Kubernetes; (5) Immediately rotate secrets.KUBE_CONFIG_CN and replace with a minimal-privilege service account; (6) Enable Kubernetes RBAC restrictions and network policies to limit cluster blast radius if a container is compromised.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
FastGPT is an AI Agent building platform. Prior to version 4.9.12, the LastRoute Parameter on login page is vulnerable t
Unauthenticated HTTP proxy abuse in FastGPT (AI Agent platform) prior to v4.14.9.5 allows remote attackers to relay arbi
Remote code execution in FastGPT's agent-sandbox component (versions 4.14.10 through 4.14.12) lets any network-adjacent,
NoSQL injection in FastGPT <4.14.9.5 password authentication allows unauthenticated remote attackers to bypass login con
Channel hijack and denial of service in FastGPT (labring/FastGPT) before 4.15.2 lets an unauthenticated remote attacker
NoSQL injection in FastGPT versions before 4.14.9.5 allows authenticated attackers to bypass password verification on th
FastGPT versions 4.14.8.3 and below contain a critical arbitrary code execution vulnerability in the fastgpt-preview-ima
Authentication bypass in FastGPT 4.15.0-beta4 lets unauthenticated remote attackers forge JWTs and access internal plugi
Cross-tenant file disclosure in FastGPT prior to v4.15.0-beta5 allows an attacker to read another team's stored files by
Server-side request forgery in FastGPT before 4.15.0-beta4 lets an authenticated team member abuse the HTTP-tool OpenAPI
Server-Side Request Forgery in Labring FastGPT prior to 4.15.0-beta1 lets an authenticated attacker bypass the platform'
Server-side request forgery in FastGPT (labring) versions 4.14.11 and prior lets a low-privileged user coerce the server
EUVD-2026-44749
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB