Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-mcqq-fqgf-rxwm: Coder vulnerable to SSH config injection via unsanitized server-supplied values in `coder config-ssh`

0
High
Published: 07/06/2026 (07/06/2026, 20:53:54 UTC)
Source: GCVE Database
Product: github.com/coder/coder/v2

Description

The vulnerability in Coder's `config-ssh` command allows a malicious or compromised server to inject arbitrary SSH configuration directives into the user's ~/.ssh/config file. This occurs because server-supplied values for `HostnameSuffix` and `SSHConfigOptions` were not sanitized for embedded newlines or restricted directives. Exploitation requires control over these server-supplied values, such as via a compromised server or man-in-the-middle position. Injected directives like `ProxyCommand` can lead to arbitrary code execution with the local user's privileges, affecting all SSH connections initiated by that user. The issue has been fixed by validating these inputs against a strict character set that excludes newlines and control characters. Patched versions are available in multiple release lines.

CVSS v3.1

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H

Affected software

Goghsa
github.com/coder/coder/v2
Affected versions
>=2.34.0 <2.34.2
Goghsa
github.com/coder/coder/v2
Affected versions
>=2.33.0 <2.33.8
Goghsa
github.com/coder/coder/v2
Affected versions
>=2.30.0 <2.32.7
Goghsa
github.com/coder/coder/v2
Affected versions
<2.29.17

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/06/2026, 23:13:14 UTC

Technical Analysis

Coder's `config-ssh` command previously wrote server-supplied SSH settings (`HostnameSuffix`, `SSHConfigOptions`) directly into the user's SSH configuration file without sanitization. This allowed a malicious or compromised server to inject arbitrary SSH configuration directives, including those enabling arbitrary code execution (e.g., via `ProxyCommand`). Exploitation requires control over server-supplied values, such as through a compromised server or administrative access. The vulnerability is tracked as CVE-2026-55427 and has been patched in versions 2.34.2, 2.33.8, 2.32.7, and 2.29.17. The fix enforces strict validation rejecting newlines and control characters in these settings.

Potential Impact

An attacker with control over the server-supplied SSH configuration values can inject arbitrary SSH directives into the user's SSH config file. This can lead to arbitrary code execution on the developer's workstation with the user's privileges, affecting all SSH connections initiated by that user. The impact includes full compromise of the local user environment via SSH configuration injection.

Mitigation Recommendations

Apply the official patches available in Coder versions 2.34.2, 2.33.8, 2.32.7, and 2.29.17 or later, which validate and sanitize server-supplied SSH configuration values to prevent injection. As a workaround, inspect the output of `coder config-ssh --dry-run` before applying changes to detect any malicious configuration directives. No other mitigations are specifically recommended.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-mcqq-fqgf-rxwm
Osv Schema Version
1.4.0
Aliases
["CVE-2026-55427"]
Ecosystems
["Go"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a4c340327e9c797195f5f61

Added to database: 07/06/2026, 23:02:27 UTC

Last enriched: 07/06/2026, 23:13:14 UTC

Last updated: 07/06/2026, 23:13:14 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses