Skip to main content
Menu
Advisories

AutoPilot never cleans up the media files its block runs write to the executor's disk, so a user can fill it

GHSA-JQH7-C84W-36VFPublished Updated GitHub

Description

When AutoPilot ran a block in a chat, any media the block handled was written to a per-chat folder in the AutoPilot executor's temporary directory, and nothing ever removed that folder. Any signed-in user who could use AutoPilot could keep adding to the executor's disk by spreading files across new chats, until file handling failed for every user that executor served. Upgrade to v0.11.2 or later.

Impact

A signed-in user who could use AutoPilot could grow the temporary storage of the process that runs AutoPilot's tools by about 1 GiB per chat, and once that filesystem was full, file handling failed for every user served by that executor, along with anything else writing to the same disk. No other user's data was read or changed.

Fix

Fixed in AutoGPT Platform v0.11.2.

The media files a block writes during an AutoPilot call are now removed once the call returns, also when it fails or is cancelled, without touching the files of another call that is still running.

Fix: #16691.

Fix evidence: b2bdb9c175fd.

Upgrade to v0.11.2 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>.

Workarounds

Recreate the AutoPilot executor container (copilot_executor) to clear the folders. Alternatively, schedule a job that deletes {tmp}/exec_file/copilot-session-* folders unchanged for more than 10 minutes (AutoPilot caps a block run at 5 minutes). A size-limited volume for the executor's temporary directory confines the impact to that process.

---

Details

Media a block handled in an AutoPilot chat (stored files, downloads, generated images and video) was written to {tmp}/exec_file/copilot-session-<session id>/. The folder survived the end of the block run and the deletion of the chat, and the only limit was a size cap on each folder.

  • execute_block in autogpt_platform/backend/backend/copilot/tools/helpers.py ran every AutoPilot block with an execution context whose graph_exec_id was the synthetic copilot-session-<session id>, shared by every block run in that chat.
  • Media blocks called store_media_file in autogpt_platform/backend/backend/util/file.py, which created {tmp}/exec_file/<graph_exec_id>/ and wrote the file there before copying it into the user's workspace.
  • The disk check (MAX_TOTAL_DISK_USAGE, 1 GiB) was measured per folder. Each file could be up to max_file_size_mb (100 MB by default), whether it arrived as a data URI or was downloaded from a URL.
  • The local copy was written before the workspace storage quota was checked, so even a write the quota refused left its local copy behind.
  • Only clean_exec_files removed these folders, and only the workflow executor called it, when a workflow run finished (autogpt_platform/backend/backend/executor/manager.py). execute_block never called it.
  • delete_chat_session in autogpt_platform/backend/backend/copilot/model.py removed the chat's database row, cache entry, embedding and browser session, but no files.

How fast the disk filled was bounded by the per-user AutoPilot turn limits. The files stayed until the executor's container was recreated, so long-lived executors, such as a typical self-hosted install, were the most exposed, while deployments that replace executor containers on every release cleared them at each release. The gap was introduced in v0.6.46 by #11867 (commit 7668c17d9c).

References

Timeline

Reported 2026-11-09 · Triaged 2026-11-09 · Fixed 2026-11-10 · Published 2026-11-17.

Credits

This issue was initially discovered by Microsoft's Codename MDASH and validated by Dongkwan Kim and HyungSeok Han of Microsoft Security FORGE Lab.

References

GitHub · Significant-Gravitas/AutoGPT