{"id":"GHSA-2mg2-p7r7-g27f","revision":"709cd9b45ed04224bbb3af1c44b22d11","records":[{"revision":"709cd9b45ed04224bbb3af1c44b22d11","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-2mg2-p7r7-g27f","aliases":["CVE-2026-55078","GO-2026-5916"],"title":"Coder: Zip upload decompression lacks aggregate size limit, enabling denial of service","description":"### Summary\n\n`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.\n\n> **Note:** Exploitation requires authenticated file-upload access and the impact is limited to availability (denial of service).\n\n### Impact\n\nAn 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.\n\n### Patches\n\nThe fix adds a metadata preflight check that sums projected entry sizes and a streaming writer that enforces the aggregate limit during decompression.\n\nThe fix was backported to all supported release lines:\n\n| Release line | Patched version |\n|---|---|\n| 2.34 | [v2.34.2](https://github.com/coder/coder/releases/tag/v2.34.2) |\n| 2.33 | [v2.33.8](https://github.com/coder/coder/releases/tag/v2.33.8) |\n| 2.32 | [v2.32.7](https://github.com/coder/coder/releases/tag/v2.32.7) |\n| 2.29 (ESR) | [v2.29.17](https://github.com/coder/coder/releases/tag/v2.29.17) |\n\n### Workarounds\n\nRestrict file-upload permissions to trusted users or place a reverse proxy with request-body size limits in front of `coderd`.\n\n### Resources\n\n- Fix: #25877\n\n### Credits\n\nCoder would like to thank Anthropic's Security Team (ANT-2026-22438) for independently disclosing this issue!","state":0,"publishedAt":"2026-07-06T21:06:45+00:00","modifiedAt":"2026-07-07T20:41:16.7626173+00:00","affected":[{"ecosystem":"Go","name":"github.com/coder/coder/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.34.0"},{"kind":"fixed","version":"2.34.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/coder/coder/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.33.0"},{"kind":"fixed","version":"2.33.8"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/coder/coder/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.30.0"},{"kind":"fixed","version":"2.32.7"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/coder/coder/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.17.0"},{"kind":"fixed","version":"2.29.17"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/coder/coder/security/advisories/GHSA-2mg2-p7r7-g27f","https://github.com/coder/coder/pull/25877","https://github.com/coder/coder"],"sourceUrl":"https://github.com/advisories/GHSA-2mg2-p7r7-g27f","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-2mg2-p7r7-g27f","identifiers":["GHSA-2mg2-p7r7-g27f","CVE-2026-55078","GO-2026-5916"]},"retained":false,"historicalAffected":[]}],"coverage":[]}