CVE-2026-55427

HIGH

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

Title source: cna
STIX 2.1

Description

Coder allows organizations to provision remote development environments via Terraform. Prior to versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2, `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. 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 `HostnameSuffix` and `SSHConfigOptions` settings. The fix in versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2 validates `HostnameSuffix` and `SSHConfigOptions` against a strict character set that rejects newlines and other control characters. As a workaround, inspect `coder config-ssh --dry-run` output before applying changes.

References (6)

Core 6
Core References
X_Refsource_Misc x_refsource_misc
https://github.com/coder/coder/pull/26154
X_Refsource_Misc x_refsource_misc
https://github.com/coder/coder/releases/tag/v2.29.17
X_Refsource_Misc x_refsource_misc
https://github.com/coder/coder/releases/tag/v2.32.7
X_Refsource_Misc x_refsource_misc
https://github.com/coder/coder/releases/tag/v2.33.8
X_Refsource_Misc x_refsource_misc
https://github.com/coder/coder/releases/tag/v2.34.2

Scores

CVSS v3 8.3
EPSS 0.0027
EPSS Percentile 18.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-74 CWE-78
Status published
Products (4)
coder/coder < 2.29.17 (2 CPE variants)
coder/coder >= 2.30.0, < 2.32.7
coder/coder >= 2.33.0, < 2.33.8
coder/coder >= 2.34.0, < 2.34.2
Published Jul 08, 2026
Tracked Since Jul 08, 2026