CVE-2025-49131

MEDIUM LAB

FastGPT < 4.9.11 - Sandbox Escape and Arbitrary File Write via Overly Permissive Syscalls

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2025-49131. PoCs published by Wenura17125.

AI-analyzed exploit summary This repository contains a functional exploit PoC for CVE-2025-49131, a sandbox escape vulnerability in FastGPT's fastgpt-sandbox container. The exploit demonstrates file read/write, import bypass, and potential RCE capabilities through Python builtins manipulation.

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.

Exploits (1)

nomisec WORKING POC
by Wenura17125 · poc
https://github.com/Wenura17125/cve-2025-49131-poc

This repository contains a functional exploit PoC for CVE-2025-49131, a sandbox escape vulnerability in FastGPT's fastgpt-sandbox container. The exploit demonstrates file read/write, import bypass, and potential RCE capabilities through Python builtins manipulation.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FastGPT (fastgpt-sandbox container) < 4.9.11
No auth needed
Prerequisites: Access to FastGPT sandbox API endpoint
devstral-2 · analyzed Feb 19, 2026 Full analysis →

Scores

CVSS v3 6.3
EPSS 0.0037
EPSS Percentile 28.2%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Lab Environment

COMMUNITY
Community Lab
docker pull registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.0
docker pull registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:latest

Details

CWE
CWE-732
Status published
Products (1)
fastgpt/fastgpt < 4.9.11
Published Jun 09, 2025
Tracked Since Feb 18, 2026