# CVE-2026-32128: FastGPT Python Sandbox Bypass of File-Write Restriction

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-11T21:30:26.336Z
- Modified: 2026-06-17T10:35:11.160Z
- Weaknesses: CWE-184
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- labring FastGPT: <= 4.14.7
- fastgpt fastgpt: up to 4.14.7

## References

- <https://github.com/labring/FastGPT/security/advisories/GHSA-6hw6-mxrm-v6wj> (exploit, mitigation, vendor-advisory)

## Sources

- CVE List: [CVE-2026-32128](https://www.cve.org/CVERecord?id=CVE-2026-32128), CVE Terms of Use, modified 2026-03-12
- NVD: [CVE-2026-32128](https://nvd.nist.gov/vuln/detail/CVE-2026-32128), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-32128 · Whole record: https://cve.day/CVE-2026-32128.json · Rebuilt by cve.day 2026-11-25T22:59:15.793Z
