Command Injection Affecting github.com/coder/coder/v2/cli package, versions <2.29.17>=2.30.0 <2.32.7>=2.33.0 <2.33.8>=2.34.0 <2.34.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.47% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMCODERCODERV2CLI-17872144
  • published6 Jul 2026
  • disclosed6 Jul 2026
  • creditUnknown

Introduced: 6 Jul 2026

CVE-2026-55427  (opens in a new tab)
CWE-74  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade github.com/coder/coder/v2/cli to version 2.29.17, 2.32.7, 2.33.8, 2.34.2 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection via the coder config-ssh process. An attacker can execute arbitrary commands on the local system by injecting malicious SSH configuration directives through unsanitized server-supplied values. This is only exploitable if an attacker has control over the server-supplied HostnameSuffix or SSHConfigOptions, such as through a compromised or malicious server, man-in-the-middle position, or administrative access to these settings.

Workaround

This vulnerability can be mitigated by inspecting the output of coder config-ssh --dry-run before applying changes.

CVSS Base Scores

version 4.0
version 3.1