FastgptApplication

CVE-2025-49131

CRITICAL · 9.9 CVSS v3.1 Published 2025-06-09
Fix available
A fix is available. Upgrade to 4.9.11 or later.
See remediation →
100/100
Remediation priority · Urgent
Remotely reachable Zero-click Patch available

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
FastGPT is an open-source project that provides a platform for building, deploying, and operating AI-driven workflows and conversational agents. The Sandbox container (fastgpt-sandbox) is a specialized, isolated environment used by FastGPT to safely execute user-submitted or dynamically generated code in isolation. The sandbox before version 4.9.11 has insufficient isolation and inadequate restrictions on code execution by allowing overly permissive syscalls, which allows attackers to escape the intended sandbox boundaries. Attackers could exploit this to read and overwrite arbitrary files and bypass Python module import restrictions. This is patched in version 4.9.11 by restricting the allowed system calls to a safer subset and additional descriptive error messaging.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

The fastgpt-sandbox container before version 4.9.11 contains insufficient isolation due to overly permissive syscalls, allowing attackers to escape the sandbox and read/write arbitrary files on the host system. The vulnerability also enables bypassing Python module import restrictions, giving attackers full execution capabilities beyond the intended isolated environment.

MitigationUpgrade fastgpt-sandbox to version 4.9.11 or later which restricts allowed syscalls to a safer subset. If immediate patching is not feasible, minimize the attack surface by restricting network access to the sandbox and implementing additional monitoring for unauthorized file system access.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
FastgptApplication
Affected:< 4.9.11

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify if fastgpt-sandbox container is deployed
    Check your container runtime (Docker, Podman, Kubernetes) for any running or stopped containers named 'fastgpt-sandbox' or using the fastgpt-sandbox image
    Affected if No fastgpt-sandbox container found means the vulnerability does not apply to your environment
  2. Determine the installed version of fastgpt-sandbox
    Run 'docker images' or 'podman images' and look for the fastgpt-sandbox image tag, or inspect the container metadata with 'docker inspect <container>' to find the image digest or tag
    Affected if The version is affected if the image tag or digest corresponds to a release earlier than 4.9.11
  3. Check if the sandbox container is running
    Verify the container status with 'docker ps -a' or kubectl get pods if running in Kubernetes
    Affected if A running container with an affected version is actively vulnerable; a stopped container poses no immediate risk but is still vulnerable if restarted with the same image
  4. Verify the seccomp or syscall restrictions applied to the container
    Inspect the container's security options using 'docker inspect' under SecurityConfig or check the seccomp profile specified in your container runtime configuration
    Affected if If no restrictive seccomp profile is enforced or the container runs with overly permissive security settings, the escape is more easily exploitable

Your environment is affected if you have a fastgpt-sandbox container running a version earlier than 4.9.11, regardless of whether the sandbox escape has been actively exploited yet.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 4.9.11 or later
Fixed in 4.9.11
Vendor patch github.com →
Interim mitigation

Upgrade fastgpt-sandbox to version 4.9.11 or later which restricts allowed syscalls to a safer subset. If immediate patching is not feasible, minimize the attack surface by restricting network access to the sandbox and implementing additional monitoring for unauthorized file system access.

Recommended fix High confidence

Upgrade to FastGPT version 4.9.11 or later (specifically the fastgpt-sandbox component)

  1. Check current FastGPT version by inspecting the running container or docker-compose.yml file
  2. Pull the latest FastGPT images, specifically updating to version 4.9.11 or later for both fastgpt and fastgpt-sandbox containers
  3. Update docker-compose.yml or helm values.yaml to use version 4.9.11 for the sandbox component (fastgpt-sandbox)
  4. Pull the new container images: docker-compose pull or helm upgrade
  5. Restart the sandbox container to apply the updated image with restricted syscalls
  6. Verify the sandbox is running the patched version 4.9.11 or later
  7. Test that code execution in the sandbox still functions correctly for legitimate use cases
Caveat Review release notes for 4.9.11 - some previously allowed syscalls are now restricted, which may affect edge-case sandbox use cases

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Fastgpt Scoped from the published advisory
  • Consultation2.0 h
  • Implementation4.0 h
  • Testing3.0 h
  • Review / QA2.0 h
11.0 hours of engineering $1,930
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,088.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-49131 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-49131 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data