Skip to main content
Menu
Advisories

Sandbox file extraction has no cumulative byte or file-count limit

GHSA-98G6-R386-569HPublished Updated GitHub

Description

The code-execution blocks (ExecuteCodeBlock and ClaudeCodeBlock) could copy the files a run produced out of its E2B sandbox with no limit on how many files, or how many bytes in total, one extraction pulled into the executor. A user who could run one of these blocks could exhaust the shared workflow executor's memory. Upgrade to v0.11.0 or later, or to the v0.11.1 Docker image.

Impact

A user who could run a code-execution block that extracts files could exhaust the memory of the shared workflow executor, interrupting other users' runs on it. Each file was allowed up to 50 MB by a size the sandbox itself reported.

Fix

Fixed in AutoGPT Platform v0.11.0.

One extraction now shares a combined budget (max_total_file_size_mb, 500 MB by default) on top of the 50 MB per-file limit, and each read stops at the remaining limit whatever size the sandbox reports.

Fix: #16495.

Fix evidence: 92e68de3f40c.

Upgrade to v0.11.0 or later. Version numbers in this advisory identify Platform releases, whose Git tags are autogpt-platform-beta-v<VERSION>, rather than the backend Python package version. The significantgravitas/autogpt Docker image is tagged v<VERSION>.

The Docker image is fixed in AutoGPT Platform v0.11.1. <!-- security-release: {"tag": "autogpt-platform-beta-v0.11.0", "package": {"ecosystem": "other", "name": "autogpt-platform-beta"}} --> <!-- security-release: {"tag": "autogpt-platform-beta-v0.11.1", "package": {"ecosystem": "other", "name": "significantgravitas/autogpt"}} -->

Workarounds

None.

---

Details

extract_sandbox_files in autogpt_platform/backend/backend/util/sandbox_files.py ran find in the sandbox, checked each file's size with stat inside the sandbox (so the sandbox decided what size was reported), and read every file under the 50 MB per-file limit in full with sandbox.files.read(). It held all of them in one list before storing them, and encoding the files for the block's output raised peak memory further. Nothing limited how many files, or how many bytes in total, one extraction could read. It was called through extract_and_store_sandbox_files from autogpt_platform/backend/backend/blocks/code_executor.py and autogpt_platform/backend/backend/blocks/claude_code.py.

References

Timeline

Reported 2026-11-01 · Triaged 2026-11-01 · Fixed 2026-11-04 · Published 2026-11-17.

References

GitHub · Significant-Gravitas/AutoGPT