{"answers":{"affected":"10 open source packages ship an affected version, including github.com/coder/coder/v2 and github.com/coder/coder. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-55427 in the wild and no public exploit code.","fix":"Upgrade github.com/coder/coder/v2 to a fixed version for your release line: 2.29.17, 2.32.7, 2.33.8 or 2.34.2.","what":"CVE-2026-55427 is a high-severity command injection vulnerability in coder, published on 7 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-55427 and fix it if it is affected.\n\nWhat it is: CVE-2026-55427 is a high-severity command injection vulnerability in coder, published on 7 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-55427 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/coder/coder/v2 (Go): affected all versions; fixed in 2.29.17, 2.32.7, 2.33.8, 2.34.2\n- github.com/coder/coder/v2 (Go): affected all versions; fixed in 2.29.17\n- github.com/coder/coder/v2 (Go): affected all versions; fixed in 2.29.17\n- github.com/coder/coder/v2 (Go): affected from 2.30.0; fixed in 2.32.7\n- github.com/coder/coder/v2 (Go): affected from 2.30.0; fixed in 2.32.7\n- github.com/coder/coder/v2 (Go): affected from 2.33.0; fixed in 2.33.8\n- github.com/coder/coder/v2 (Go): affected from 2.33.0; fixed in 2.33.8\n- github.com/coder/coder/v2 (Go): affected from 2.34.0; fixed in 2.34.2\n- github.com/coder/coder/v2 (Go): affected from 2.34.0; fixed in 2.34.2\n- github.com/coder/coder (Go): affected all versions; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-55427/ (Markdown: https://insights.sbomify.com/CVE-2026-55427/index.md)","id":"CVE-2026-55427","markdown":"https://insights.sbomify.com/CVE-2026-55427/index.md","name":"CVE-2026-55427","record":{"aliases":["GHSA-mcqq-fqgf-rxwm","GO-2026-5913"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Coder CLI tool","requires_auth":"none","summary":"A malicious Coder server can inject arbitrary SSH configuration via unsanitized values, potentially leading to code execution on the developer's machine.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"coder","vendor":"coder"}],"cvss":{"score":8.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Coder vulnerable to SSH config injection via unsanitized server-supplied values in `coder config-ssh`","id":"CVE-2026-55427","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":10,"n_references":6,"next":{"headline":"Coder: Route hijacking through lack of validation of agent-supplied AllowedIPs in tailnet coordinator","id":"CVE-2026-55428"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/coder/coder","purl":"pkg:golang/github.com/coder/coder","source":"GO-2026-5913"},{"ecosystem":"Go","fixed":["2.29.17","2.32.7","2.33.8","2.34.2"],"introduced":["0","2.30.0","2.33.0","2.34.0"],"last_affected":[],"package":"github.com/coder/coder/v2","purl":"pkg:golang/github.com/coder/coder/v2","source":"GO-2026-5913"},{"ecosystem":"Go","fixed":["2.29.17"],"introduced":["0"],"last_affected":[],"package":"github.com/coder/coder/v2","purl":null,"source":"GHSA-mcqq-fqgf-rxwm"},{"ecosystem":"Go","fixed":["2.29.17"],"introduced":["0"],"last_affected":[],"package":"github.com/coder/coder/v2","purl":"pkg:golang/github.com/coder/coder/v2","source":"GHSA-mcqq-fqgf-rxwm"},{"ecosystem":"Go","fixed":["2.32.7"],"introduced":["2.30.0"],"last_affected":[],"package":"github.com/coder/coder/v2","purl":null,"source":"GHSA-mcqq-fqgf-rxwm"},{"ecosystem":"Go","fixed":["2.32.7"],"introduced":["2.30.0"],"last_affected":[],"package":"github.com/coder/coder/v2","purl":"pkg:golang/github.com/coder/coder/v2","source":"GHSA-mcqq-fqgf-rxwm"},{"ecosystem":"Go","fixed":["2.33.8"],"introduced":["2.33.0"],"last_affected":[],"package":"github.com/coder/coder/v2","purl":null,"source":"GHSA-mcqq-fqgf-rxwm"},{"ecosystem":"Go","fixed":["2.33.8"],"introduced":["2.33.0"],"last_affected":[],"package":"github.com/coder/coder/v2","purl":"pkg:golang/github.com/coder/coder/v2","source":"GHSA-mcqq-fqgf-rxwm"},{"ecosystem":"Go","fixed":["2.34.2"],"introduced":["2.34.0"],"last_affected":[],"package":"github.com/coder/coder/v2","purl":null,"source":"GHSA-mcqq-fqgf-rxwm"},{"ecosystem":"Go","fixed":["2.34.2"],"introduced":["2.34.0"],"last_affected":[],"package":"github.com/coder/coder/v2","purl":"pkg:golang/github.com/coder/coder/v2","source":"GHSA-mcqq-fqgf-rxwm"}],"prev":{"headline":"linuxfabrik-lib: Local privilege escalation using embedded command","id":"CVE-2026-55426"},"products":["coder"],"published":"2026-07-07","related":[{"cvss_score":9.1,"headline":"Coder: PKCS#7 signature bypass in Azure instance identity allows unauthenticated agent token theft","id":"CVE-2026-46354","kev_date_added":null,"published":"2026-07-07"},{"cvss_score":8.7,"headline":"Coder's workspace app upsert allows cross-workspace agent rebinding via user-controlled app ID","id":"CVE-2026-55429","kev_date_added":null,"published":"2026-07-08"},{"cvss_score":8.2,"headline":"Coder: Route hijacking through lack of validation of agent-supplied AllowedIPs in tailnet coordinator","id":"CVE-2026-55428","kev_date_added":null,"published":"2026-07-07"},{"cvss_score":8.2,"headline":"Coder's OIDC authentication allows email with partially matching domain to register","id":"CVE-2024-27918","kev_date_added":null,"published":"2024-03-06"},{"cvss_score":8.1,"headline":"Coder vulnerable to workspace auto-creation via crafted URL parameters without user consent","id":"CVE-2026-44454","kev_date_added":null,"published":"2026-07-07"},{"cvss_score":8.1,"headline":"Coder's privilege escalation vulnerability could lead to a cross workspace compromise","id":"CVE-2025-58437","kev_date_added":null,"published":"2025-09-06"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-08","vendors":["coder"]},"summary":"A malicious Coder server can inject arbitrary SSH configuration via unsanitized values, potentially leading to code execution on the developer's machine.","url":"https://insights.sbomify.com/CVE-2026-55427/"}