{
  "id": "CVE-2026-55427",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-55427",
  "published_at": "2026-07-07T23:55:26.24Z",
  "title": "Coder vulnerable to SSH config injection via unsanitized server-supplied values in `coder config-ssh`",
  "vendor": "coder",
  "product": "coder",
  "cvss": {
    "score": 8.3,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-74",
  "cpes": [
    "cpe:2.3:a:coder:coder:*:*:*:*:*:go:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.3
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "coder",
        "product": "coder",
        "ranges": [
          "\u003e= 2.34.0, \u003c 2.34.2",
          "\u003e= 2.33.0, \u003c 2.33.8",
          "\u003e= 2.30.0, \u003c 2.32.7",
          "\u003c 2.29.17"
        ],
        "fixed_in": [
          "2.34.2",
          "2.33.8",
          "2.32.7",
          "2.29.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade coder to 2.34.2 or 2.33.8 or 2.32.7 or 2.29.17 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/coder/coder/security/advisories/GHSA-mcqq-fqgf-rxwm"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/coder/coder/pull/26154"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/coder/coder/releases/tag/v2.29.17"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/coder/coder/releases/tag/v2.32.7"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/coder/coder/releases/tag/v2.33.8"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/coder/coder/releases/tag/v2.34.2"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
