CVE-2026-55427 — Vulnerability in github.com/coder/coder/v2
Coder vulnerable to SSH config injection via unsanitized server-supplied values in `coder config-ssh`
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.47%). 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-55427 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.
Summary
Summary
coder config-ssh wrote server-supplied SSH settings (HostnameSuffix, SSHConfigOptions) into the user's ~/.ssh/config without sanitizing embedded newlines or restricting directives so a malicious or compromised Coder server could inject arbitrary SSH configuration.
Note: Practical exploitation requires control of the server-supplied values through a malicious or compromised deployment, a man-in-the-middle position or admin access to the
HostnameSuffixandSSHConfigOptionssettings.
Impact
A server administrator or an attacker who controlled the server, could inject a directive such as ProxyCommand and achieve arbitrary code execution on any developer workstation that ran coder config-ssh. Injected commands ran with the local user's privileges and applied to all SSH connections, not just Coder workspaces.
Patches
The fix validates HostnameSuffix and SSHConfigOptions against a strict character set that rejects newlines and other control characters.
The fix was backported to all supported release lines:
Workarounds
Inspect coder config-ssh --dry-run output before applying changes.
Resources
- Fix: #26154
Credits
Coder would like to thank Anthropic's Security Team (ANT-2026-22437) for independently disclosing this issue!
Advisory Timeline
- First published July 6, 2026 (143 days ago).
- Last revised July 7, 2026 — 1 day after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/coder/coder/v2@v2.29.17
go get github.com/coder/coder/v2@v2.34.2
go get github.com/coder/coder/v2@v2.32.7
go get github.com/coder/coder/v2@v2.33.8
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/coder/coder/v2 Go · Affected: All versions | 2.29.17 |
| github.com/coder/coder/v2 Go · Affected: All versions | 2.34.2 |
| github.com/coder/coder/v2 Go · Affected: All versions | 2.32.7 |
| github.com/coder/coder/v2 Go · Affected: All versions | 2.33.8 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-74
- CWE-78OS Command InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2026-55427?
- Coder vulnerable to SSH config injection via unsanitized server-supplied values in `coder config-ssh`. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.3/10).
- How do I check if my project is affected by CVE-2026-55427?
- CVE-2026-55427 affects github.com/coder/coder/v2. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-55427 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 32.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-46354CRITICAL
Coder: PKCS#7 signature bypass in Azure instance identity allows unauthenticated agent token theft
- CVE-2026-108262HIGH
DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885
- CVE-2026-55429HIGH
Coder's workspace app upsert allows cross-workspace agent rebinding via user-controlled app ID
- CVE-2026-44454HIGH
Coder vulnerable to workspace auto-creation via crafted URL parameters without user consent
- CVE-2026-130007HIGH
k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution
- CVE-2026-63443HIGH
Coder's workspace agent API insecure redirect handling allowed cross-agent file read and write
- CVE-2026-55431HIGH
Coder's session token leaked to arbitrary hosts via `coder open app` for external workspace apps
- CVE-2026-55428HIGH
Coder: Route hijacking through lack of validation of agent-supplied AllowedIPs in tailnet coordinator