Office preview expands an unbounded embedded ZIP thumbnail
Description
The workspace file preview showed an Office document's embedded thumbnail by inflating that ZIP member in full, without checking its uncompressed size. A signed-in user could make a platform API worker allocate an extremely large buffer with one small upload and one preview request. Upgrade to v0.11.0 or later, or to the v0.11.1 Docker image.
Impact
A signed-in user who could use workspace file previews could exhaust the memory of a platform API worker with one small crafted DOCX, XLSX or PPTX file and one preview request. The allocation happened before any image-size limit applied.
Fix
Fixed in AutoGPT Platform v0.11.0.
Archive members are now read through a bounded reader that stops as soon as a member produces more than its limit (10 MB for an embedded thumbnail), and previews are rendered in a child process with a time limit and a 768 MiB memory limit.
Fix evidence: c4aa7a2bf7c0, 58220dffd2d7.
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
The workspace file preview accepts Office Open XML documents (DOCX, XLSX, PPTX) up to 50 MB and shows their embedded docProps/thumbnail.* image. GET /api/workspace/files/{file_id}/preview reached _office_thumbnail, whose _extract_zip_thumbnail (autogpt_platform/backend/backend/api/features/workspace/preview.py) called archive.read(name) on the thumbnail member. The only size check was the 50 MB limit on the stored, compressed file: the member's own size, its compression ratio and the bytes it inflated to were never checked, and the render ran inside the platform API process.
References
- Fix: #16497 (commit c4aa7a2bf7c0) and #16499 (commit 58220dffd2d7), both first released in v0.11.0
Timeline
Reported 2026-11-01 · Triaged 2026-11-01 · Fixed 2026-11-02 · Published 2026-11-17.