6.3medium
FastGPT Python Sandbox Bypass of File-Write Restriction
- Severity
- 6.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.35% (higher than 30% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
FastGPT is an AI Agent building platform. In 4.14.7 and earlier, FastGPT's Python Sandbox (fastgpt-sandbox) includes guardrails intended to prevent file writes (static detection + seccomp). These guardrails are bypassable by remapping stdout (fd 1) to an arbitrary writable file descriptor using fcntl. After remapping, writing via sys.stdout.write() still satisfies the seccomp rule write(fd==1), enabling arbitrary file creation/overwrite inside the sandbox container despite the intended no file writes restriction.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| labring FastGPT | <= 4.14.7 | CVE List |
| fastgpt fastgpt | up to 4.14.7 | NVD |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
FastGPT is an AI Agent building platform. In 4.14.7 and earlier, FastGPT's Python Sandbox (fastgpt-sandbox) includes guardrails intended to prevent file writes (static detection + seccomp). These guardrails are bypassable by remapping stdout (fd 1) to an arbitrary writable file descriptor using fcntl. After remapping, writing via sys.stdout.write() still satisfies the seccomp rule write(fd==1), enabling arbitrary file creation/overwrite inside the sandbox container despite the intended no file writes restriction.
NVD (es)
FastGPT es una plataforma de creación de agentes de IA. En 4.14.7 y versiones anteriores, el sandbox de Python de FastGPT (fastgpt-sandbox) incluye barreras de seguridad destinadas a prevenir escrituras de archivos (detección estática + seccomp). Estas barreras de seguridad son eludibles reasignando stdout (fd 1) a un descriptor de archivo arbitrario con permisos de escritura usando fcntl. Después de la reasignación, la escritura a través de sys.stdout.write() aún satisface la regla de seccomp write(fd==1), lo que permite la creación/sobrescritura arbitraria de archivos dentro del contenedor del sandbox a pesar de la restricción intencionada de no escritura de archivos.
References
| https://github.com/labring/FastGPT/security/advisories/GHSA-6hw6-mxrm-v6wj | exploit, mitigation, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-32128 changed 2026-03-12 | CVE Terms of Use |
| NVD | CVE-2026-32128 changed 2026-06-17 | Public domain |