# CVE-2026-55427: Coder vulnerable to SSH config injection via unsanitized server-supplied values in `coder config-ssh`

- Severity: High 8.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-07-06T20:53:54.000Z
- Modified: 2026-07-08T19:44:24.297Z
- Also known as: GHSA-mcqq-fqgf-rxwm, GO-2026-5913
- Weaknesses: CWE-74, CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- coder coder: >= 2.34.0, < 2.34.2; >= 2.33.0, < 2.33.8; >= 2.30.0, < 2.32.7; < 2.29.17; before 2.29.17; from 2.30.0 before 2.32.7; from 2.33.0 before 2.33.8; from 2.34.0 before 2.34.2
- github.com/coder/coder/v2 (Go): from 2.34.0 before 2.34.2; from 2.33.0 before 2.33.8; from 2.30.0 before 2.32.7; before 2.29.17
- github.com/coder/coder (Go): all versions

## Every score

- GitHub_M: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/coder/coder/security/advisories/GHSA-mcqq-fqgf-rxwm> (advisory, patch, vendor-advisory, web)
- <https://github.com/coder/coder/pull/26154> (fix, issue-tracking, patch, web)
- <https://github.com/coder/coder/releases/tag/v2.29.17> (release-notes)
- <https://github.com/coder/coder/releases/tag/v2.32.7> (release-notes)
- <https://github.com/coder/coder/releases/tag/v2.33.8> (release-notes)
- <https://github.com/coder/coder/releases/tag/v2.34.2> (release-notes)
- <https://github.com/coder/coder> (package)

## Sources

- CVE List: [CVE-2026-55427](https://www.cve.org/CVERecord?id=CVE-2026-55427), CVE Terms of Use, modified 2026-07-08
- GitHub Advisory Database: [GHSA-mcqq-fqgf-rxwm](https://github.com/advisories/GHSA-mcqq-fqgf-rxwm), CC-BY-4.0, modified 2026-07-07
- Go Vulnerability Database: [GO-2026-5913](https://pkg.go.dev/vuln/GO-2026-5913), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-55427](https://nvd.nist.gov/vuln/detail/CVE-2026-55427), Public domain, modified 2026-07-08

---

Page: https://cve.day/CVE-2026-55427 · Whole record: https://cve.day/CVE-2026-55427.json · Rebuilt by cve.day 2026-11-25T22:59:27.333Z
