Coder SSH Config Injection Vulnerability (CVE-2026-55427)
A malicious or compromised Coder server can exploit CVE-2026-55427 to inject unsanitized SSH configuration values via `coder config-ssh` into developer workstations, enabling arbitrary code execution on client machines.
The coder config-ssh utility from Coder is vulnerable to a critical configuration injection issue, tracked as CVE-2026-55427. This vulnerability allows a malicious or compromised Coder server to inject arbitrary SSH configuration directives, such as ProxyCommand, into a developer's ~/.ssh/config file. This occurs because coder config-ssh unsafely writes server-supplied values like HostnameSuffix and SSHConfigOptions without proper sanitization of newlines or restriction of directives. If a developer runs coder config-ssh while connected to such a server, it can lead to arbitrary code execution on their workstation with local user privileges. The vulnerability affects Coder versions prior to v2.34.2, v2.33.8, v2.32.7, and v2.29.17. The issue, independently disclosed by Anthropic's Security Team (ANT-2026-22437), highlights a potential supply chain risk through developer tooling.
Attack Chain
- Initial Access / Server Compromise: An attacker gains control over a Coder server deployment or compromises its administrative interface, or a Coder server administrator acts maliciously.
- Configuration Injection: The attacker modifies the Coder server's
HostnameSuffixorSSHConfigOptionssettings to include malicious SSH directives (e.g.,ProxyCommandfollowed by a shell command) that exploit the lack of input sanitization. - Client-Side Configuration Request: A developer executes
coder config-sshon their workstation (typically Linux or macOS) to configure SSH access to Coder workspaces. - Malicious Configuration Download: The
coder config-sshutility fetches the unsanitized configuration values from the compromised Coder server. - Local SSH Config Modification:
coder config-sshwrites the received maliciousHostnameSuffixandSSHConfigOptionsdirectly into the developer's~/.ssh/configfile, injecting the attacker-controlled SSH directives. - Triggering Execution: The developer subsequently initiates an SSH connection to any host that leverages the newly modified
~/.ssh/config. - Arbitrary Code Execution: The injected
ProxyCommand(or similar directive) within~/.ssh/configtriggers the execution of the attacker's arbitrary code on the developer's workstation, operating with the privileges of the local user.
Impact
Successful exploitation of CVE-2026-55427 grants attackers arbitrary code execution capabilities on developer workstations. The injected commands run with the privileges of the local user, allowing for a wide range of malicious activities including data exfiltration, installation of malware, establishment of persistence, or further lateral movement within the developer's environment. Crucially, the malicious configuration applies to all SSH connections originating from the workstation, not just those related to Coder workspaces, broadening the scope of impact significantly. While no specific victim count is available, the vulnerability poses a substantial supply chain risk to organizations leveraging the Coder platform, as compromising a single Coder server could lead to compromise of numerous developer endpoints.
Recommendation
- Patch CVE-2026-55427 on all affected Coder server deployments to versions v2.34.2, v2.33.8, v2.32.7, or v2.29.17 immediately.
- Educate developers to review the output of
coder config-ssh --dry-runbefore applying configuration changes to visually identify unexpected SSH directives. - Implement file integrity monitoring on
~/.ssh/configfiles on developer workstations to detect unauthorized or suspicious modifications (e.g., viafile_eventlogging).