CVE-2026-32128 FastGPT Python Sandbox Bypass of File-Write Restriction
MediumCVSS 6.3
EPSS 0.35%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| fastgpt | <= 4.14.7 | after 4.14.7 | Fixed |
| labring FastGPT | = <= 4.14.7 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| labring FastGPT | = <= 4.14.7 | No fix listed |
| fastgpt | <= 4.14.7 | No fix listed |
References
- https://github.com/labring/FastGPT/security/advisories/GHSA-6hw6-mxrm-v6wj exploit mitigation vendor-advisory