github.com/coder/coder/v2

CVE-2025-66411

CVE-2025-66411 is a high-severity security vulnerability in github.com/coder/coder/v2 (go), affecting versions < 2.26.5. It is fixed in 2.26.5, 2.27.7, 2.28.4.

Key facts
CVSS score
7.8
High
Attack vector
Local
Issuing authority
GitHub Advisory Database
Affected package
github.com/coder/coder/v2
Fixed in
2.26.5, 2.27.7, 2.28.4
Disclosed
2025

Summary

Summary Workspace Agent manifests containing sensitive values were logged in plaintext unsanitized Details By default Workspace Agent logs are redirected to stderr https://github.com/coder/coder/blob/a8862be546f347c59201e2219d917e28121c0edb/cli/agent.go#L432-L439 Workspace Agent Manifests containing sensitive environment variables were logged insecurely https://github.com/coder/coder/blob/7beb95fd56d2f790502e236b64906f8eefb969bd/agent/agent.go#L1090 An attacker with limited local access to the Coder Workspace (VM, K8s Pod etc.) or a third-party system (SIEM, logging stack) could access those logs This behavior opened room for unauthorized access and privilege escalation Impact Impact varies depending on the environment variables set in a given workspace Patches Fix was released & backported: https://github.com/coder/coder/releases/tag/v2.28.4 https://github.com/coder/coder/releases/tag/v2.27.7 https://github.com/coder/coder/releases/tag/v2.26.5 Workarounds One potential workaround is to disable Workspace Agent Logs by setting following configuration option CODERAGENTLOGGINGHUMAN=/dev/null platform operators are advised to upgrade their deployments

Impact

Severity and exposure

CVE-2025-66411 has a CVSS score of 7.8 (High). The vector is requires local access, low privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment.

A fixed version is available (2.26.5, 2.27.7, 2.28.4). Upgrading removes the vulnerable code path.

Affected versions

go

  • github.com/coder/coder/v2 (< 2.26.5)
  • github.com/coder/coder/v2 (>= 2.27.0, < 2.27.7)
  • github.com/coder/coder/v2 (>= 2.28.0, < 2.28.4)

Security releases

  • github.com/coder/coder/v2 → 2.26.5 (go)
  • github.com/coder/coder/v2 → 2.27.7 (go)
  • github.com/coder/coder/v2 → 2.28.4 (go)
Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter instead of chasing every advisory.

Kodem's runtime-powered SCA identifies whether CVE-2025-66411 is reachable in your applications. Explore open-source security for your team.

See if CVE-2025-66411 is reachable in your applications. Get a demo

Already deployed Kodem? See CVE-2025-66411 in your environment

Remediation advice

Upgrade the following packages to resolve this vulnerability:

  • Upgrade github.com/coder/coder/v2 to 2.26.5 or later
  • Upgrade github.com/coder/coder/v2 to 2.27.7 or later
  • Upgrade github.com/coder/coder/v2 to 2.28.4 or later

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently asked questions about CVE-2025-66411

What is CVE-2025-66411?

CVE-2025-66411 is a high-severity security vulnerability in github.com/coder/coder/v2 (go), affecting versions < 2.26.5. It is fixed in 2.26.5, 2.27.7, 2.28.4.

How severe is CVE-2025-66411?

CVE-2025-66411 has a CVSS score of 7.8 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.

Which versions of github.com/coder/coder/v2 are affected by CVE-2025-66411?

github.com/coder/coder/v2 (go) versions < 2.26.5 is affected.

Is there a fix for CVE-2025-66411?

Yes. CVE-2025-66411 is fixed in 2.26.5, 2.27.7, 2.28.4. Upgrade to this version or later.

Is CVE-2025-66411 exploitable, and should I be worried?

Whether CVE-2025-66411 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo

What actually determines whether CVE-2025-66411 is exploitable, and how bad it is?

Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.

How do I fix CVE-2025-66411?
  • Upgrade github.com/coder/coder/v2 to 2.26.5 or later
  • Upgrade github.com/coder/coder/v2 to 2.27.7 or later
  • Upgrade github.com/coder/coder/v2 to 2.28.4 or later

Stop the waste.
Protect your environment with Kodem.