Skip to content
OpenAdvisories
High · 8.1 CVE-2026-44454 EUVD-2026-42087GHSA-m3cr-vc2j-pm27GO-2026-5897

Coder vulnerable to workspace auto-creation via crafted URL parameters without user consent

Published Jul 7, 2026 · Updated Jul 8, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
coder coder < 2.29.7, >= 2.30.0, < 2.30.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/coder/coder <= 0.27.3 — GHSA-m3cr-vc2j-pm27
Go github.com/coder/coder all versions — GO-2026-5897
Go github.com/coder/coder/v2 < 2.29.7 2.29.7 GHSA-m3cr-vc2j-pm27
Go github.com/coder/coder/v2 >= 2.30.0, < 2.30.2 2.30.2 GHSA-m3cr-vc2j-pm27
Go github.com/coder/coder/v2 < 2.29.7 · >= 2.30.0, < 2.30.2 2.29.7, 2.30.2 GO-2026-5897

Advisories 1

References