4.9medium
Coder's unbounded memory allocation in provisioner file upload allows authenticated denial of service
- Severity
- 4.9medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.61% (higher than 43% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-f962-qm93-mj4cGO-2026-5911
Description
Coder allows organizations to provision remote development environments via Terraform. Starting in version 2.24.0 and prior to versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2, `NewDataBuilder` in `provisionersdk/proto/dataupload.go` allocated a byte slice using the client-supplied `FileSize` from a `DataUpload` message without an upper-bound check. Although the DRPC wire limit is 4 MiB, the `FileSize` value itself was unconstrained. The fix in versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2 validates `FileSize` against an upper bound (`MaxFileSize = 100 MiB`) before allocation. As a workaround, restrict access to the provisioner daemon serve endpoint to trusted provisioner daemon service accounts.
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.24.0, < 2.29.17, from 2.24.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.24.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 | 4.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 4.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
| NVD | 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
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Coder allows organizations to provision remote development environments via Terraform. Starting in version 2.24.0 and prior to versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2, `NewDataBuilder` in `provisionersdk/proto/dataupload.go` allocated a byte slice using the client-supplied `FileSize` from a `DataUpload` message without an upper-bound check. Although the DRPC wire limit is 4 MiB, the `FileSize` value itself was unconstrained. The fix in versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2 validates `FileSize` against an upper bound (`MaxFileSize = 100 MiB`) before allocation. As a workaround, restrict access to the provisioner daemon serve endpoint to trusted provisioner daemon service accounts.
GitHub Advisory Database
Summary
NewDataBuilder in provisionersdk/proto/dataupload.go allocated a byte slice using the client-supplied FileSize from a DataUpload message without an upper-bound check. Although the DRPC wire limit is 4 MiB, the FileSize value itself was unconstrained
Impact
An authenticated user able to reach the provisioner daemon serve endpoint could send a roughly 50-byte message declaring a huge FileSize (for example 1 TiB), triggering an unrecoverable Go out-of-memory abort that terminates coderd. This is a single-message denial of service affecting the entire deployment.
Patches
The fix validates FileSize against an upper bound (MaxFileSize = 100 MiB) before allocation.
The fix was backported to all supported release lines:
Workarounds
Restrict access to the provisioner daemon serve endpoint to trusted provisioner daemon service accounts.
Resources
- Fix: #25710
Credits
Coder would like to thank Anthropic's Security Team (ANT-2026-22442) for independently disclosing this issue!
Go Vulnerability Database
Coder's unbounded memory allocation in provisioner file upload allows authenticated denial of service in github.com/coder/coder
References
| https://github.com/coder/coder/security/advisories/GHSA-f962-qm93-mj4c | advisory, patch, vendor-advisory, web | |
| https://github.com/coder/coder/pull/25710 | 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-55079 changed 2026-07-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f962-qm93-mj4c changed 2026-07-07 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5911 changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2026-55079 changed 2026-07-08 | Public domain |