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.
Published: 2026-07-07
Score: 8.3 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Coder’s config-ssh command writes server‑supplied SSH settings, such as HostnameSuffix and SSHConfigOptions, into a user’s ~/.ssh/config without filtering newlines or restricting directives. This flaw, identified as CWE‑74 and CWE‑78, enables a malicious or compromised Coder server to inject arbitrary SSH configuration, potentially leading to unauthorized modification of the client’s behavior and impacting the confidentiality or integrity of SSH sessions for any user who applies the generated configuration.

Affected Systems

Deployments of the Coder platform using any released version older than v2.29.7, v2.32.7, v2.33.8, or v2.34.2 are affected. These versions are used by organizations provisioning remote development environments through Terraform. If the deployment’s HostnameSuffix or SSHConfigOptions values can be manipulated—by a compromised server, a man‑in‑the‑middle position, or administrative access—the injected directives will be written to the user’s configuration file.

Risk and Exploitability

The CVSS base score of 8.3 classifies the flaw as high severity. The EPSS score of <1% and absence from the CISA KEV catalog imply a low likelihood of exploitation in the wild. Exploitation requires an attacker to influence the server‑supplied values, typically through administrative control of the Coder deployment or a compromised server. Based on the description, it is inferred that injected configuration could alter the SSH client’s behavior for affected users, potentially compromising confidentiality or integrity of SSH sessions.

Generated by OpenCVE AI on July 26, 2026 at 18:46 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Coder platform to a patched release (v2.29.7, v2.32.7, v2.33.8, or v2.34.2) that validates HostnameSuffix and SSHConfigOptions against a strict character set that rejects newlines and control characters.
  • Use `coder config-ssh --dry-run` to inspect the SSH configuration that will be applied before making any changes, ensuring no unexpected directives are present.
  • If an upgrade is not yet possible, enforce strong validation on HostnameSuffix and SSHConfigOptions locally by stripping newlines and rejecting unsupported directives, or remove any custom values that introduce non‑standard SSH configuration.

Generated by OpenCVE AI on July 26, 2026 at 18:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-mcqq-fqgf-rxwm Coder vulnerable to SSH config injection via unsanitized server-supplied values in `coder config-ssh`
History

Wed, 08 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 08 Jul 2026 02:15:00 +0000

Type Values Removed Values Added
First Time appeared Coder
Coder coder
Vendors & Products Coder
Coder coder

Wed, 08 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
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.
Title Coder vulnerable to SSH config injection via unsanitized server-supplied values in `coder config-ssh`
Weaknesses CWE-74
CWE-78
References
Metrics cvssV3_1

{'score': 8.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-08T13:10:01.820Z

Reserved: 2026-06-16T21:48:43.126Z

Link: CVE-2026-55427

cve-icon Vulnrichment

Updated: 2026-07-08T13:09:55.657Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-26T19:00:02Z

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')