CVE-2026-55427

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

Published Jul 7, 2026 CVSS 3.1 · 8.3 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 August 1, 2026 at 17:02 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
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Coder
Coder coder
Vendors & Products Coder
Coder coder
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'}

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')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 8, 2026, 1:10 PM
Reserved
Jun 16, 2026, 9:48 PM
Status
Analyzed
Published
Jul 8, 2026, 12:16 AM
Modified
Jul 8, 2026, 7:44 PM