6.5medium
Coder: Zip upload decompression lacks aggregate size limit, enabling denial of service
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.34% (higher than 29% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-2mg2-p7r7-g27fGO-2026-5916
Description
Coder allows organizations to provision remote development environments via Terraform. Starting in version 2.17.0 and prior to versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2, `POST /api/v2/files` converts zip uploads to tar in memory via `CreateTarFromZip`, which enforced a per-entry size limit but no aggregate limit on total decompressed output, writing to an unbounded in-memory buffer. Exploitation requires authenticated file-upload access and the impact is limited to availability (denial of service). The fix in versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2 adds a metadata preflight check that sums projected entry sizes and a streaming writer that enforces the aggregate limit during decompression. As a workaround, restrict file-upload permissions to trusted users or place a reverse proxy with request-body size limits in front of `coderd`.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| coder coder | >= 2.34.0, < 2.34.2, >= 2.33.0, < 2.33.8, >= 2.30.0, < 2.32.7, >= 2.17.0, < 2.29.17, from 2.17.0 before 2.29.17, from 2.30.0 before 2.32.7, from 2.33.0 before 2.33.8, from 2.34.0 before 2.34.2 | CVE List, NVD |
| github.com/coder/coder/v2 (Go) | from 2.34.0 before 2.34.2, from 2.33.0 before 2.33.8, from 2.30.0 before 2.32.7, from 2.17.0 before 2.29.17 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/coder/coder (Go) | all versions | Go Vulnerability Database |
All scores
| GitHub_M | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
Coder allows organizations to provision remote development environments via Terraform. Starting in version 2.17.0 and prior to versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2, `POST /api/v2/files` converts zip uploads to tar in memory via `CreateTarFromZip`, which enforced a per-entry size limit but no aggregate limit on total decompressed output, writing to an unbounded in-memory buffer. Exploitation requires authenticated file-upload access and the impact is limited to availability (denial of service). The fix in versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2 adds a metadata preflight check that sums projected entry sizes and a streaming writer that enforces the aggregate limit during decompression. As a workaround, restrict file-upload permissions to trusted users or place a reverse proxy with request-body size limits in front of `coderd`.
GitHub Advisory Database
Summary
POST /api/v2/files converts zip uploads to tar in memory via CreateTarFromZip, which enforced a per-entry size limit but no aggregate limit on total decompressed output, writing to an unbounded in-memory buffer.
Note: Exploitation requires authenticated file-upload access and the impact is limited to availability (denial of service).
Impact
An authenticated user could upload a zip within the 100 MiB upload limit but containing many highly compressible entries whose decompressed size exhausted memory, crashing coderd before any RBAC check. Repeated requests could keep the service unavailable. This is a denial of service; it does not allow data disclosure or code execution.
Patches
The fix adds a metadata preflight check that sums projected entry sizes and a streaming writer that enforces the aggregate limit during decompression.
The fix was backported to all supported release lines:
Workarounds
Restrict file-upload permissions to trusted users or place a reverse proxy with request-body size limits in front of coderd.
Resources
- Fix: #25877
Credits
Coder would like to thank Anthropic's Security Team (ANT-2026-22438) for independently disclosing this issue!
Go Vulnerability Database
Coder: Zip upload decompression lacks aggregate size limit, enabling denial of service in github.com/coder/coder
References
| https://github.com/coder/coder/security/advisories/GHSA-2mg2-p7r7-g27f | advisory, patch, vendor-advisory, web | |
| https://github.com/coder/coder/pull/25877 | fix, issue-tracking, patch, web | |
| https://github.com/coder/coder/releases/tag/v2.29.17 | release-notes | |
| https://github.com/coder/coder/releases/tag/v2.32.7 | release-notes | |
| https://github.com/coder/coder/releases/tag/v2.33.8 | release-notes | |
| https://github.com/coder/coder/releases/tag/v2.34.2 | release-notes | |
| https://github.com/coder/coder | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-55078 changed 2026-07-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2mg2-p7r7-g27f changed 2026-07-07 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5916 changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2026-55078 changed 2026-07-08 | Public domain |