Vulnerability · Published Jul 7, 2026 · Assigned by GitHub_M
CVE-2026-44454Coder vulnerable to workspace auto-creation via crafted URL parameters without user consent
High 8.1
In plain English
A high-severity OS command injection in coder from coder. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.6% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Coder allows organizations to provision remote development environments via Terraform. Prior to versions 2.29.7 and 2.30.2, the `dotfiles` registry module passed unsanitized user input to shell commands, allowing arbitrary code execution inside a provisioned workspace. Any user who supplied a crafted `dotfiles_uri` value (for example, one containing shell command substitution such as `$(...)`) could achieve command execution in their own workspace. The Create Workspace page's `mode=auto` deep links amplified this into a one-click attack: an attacker could craft a URL that prefilled `param.dotfiles_uri` and silently provisioned a workspace with the attacker-controlled value, with no explicit user confirmation. In versions 2.29.7 and 2.30.2, input validation was added to the dotfiles module to reject URIs and usernames containing special characters, and the unsafe `eval`/`sh -c` usage was removed. This eliminated the command injection at its source.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/coder/coder | no fix listed | GHSA-m3cr-vc2j-pm27 |
| Go | github.com/coder/coder | no fix listed | GO-2026-5897 |
| Go | github.com/coder/coder/v2 | 2.29.7 | GHSA-m3cr-vc2j-pm27 |
| Go | github.com/coder/coder/v2 | 2.30.2 | GHSA-m3cr-vc2j-pm27 |
| Go | github.com/coder/coder/v2 | 2.29.7, 2.30.2 | GO-2026-5897 |
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
References
- https://github.com/coder/coder/security/advisories/GHSA-m3cr-vc2j-pm27 x_refsource_CONFIRM
- https://github.com/coder/coder/pull/22011 x_refsource_MISC
- https://github.com/coder/registry/pull/703 x_refsource_MISC
- https://github.com/coder/coder/commit/60e3ab7632f42415d283b9fd5622ee53a4639ceb x_refsource_MISC
- https://github.com/coder/registry/commit/8e68c96633f65a1babd76a93b6923e3deead4a82 x_refsource_MISC
- https://github.com/coder/coder/releases/tag/v2.29.7 x_refsource_MISC
- https://github.com/coder/coder/releases/tag/v2.30.2 x_refsource_MISC