CVE-2025-66411: Github.com/coder/coder/v2 Coder Logs Sensitive Objects Unsanitized Vulnerability

HIGH
Advisory Identifier: GHSA-jf75-p25m-pw74
CVSS 7.8
CWE-532
Published
Advisory Summary

CVE-2025-66411 is a HIGH (CVSS 7.8) coder logs sensitive objects unsanitized vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Github.com/coder/coder/v2 libraries in the Go ecosystem. The issue involves coder logs sensitive objects unsanitized. Remediation is available by upgrading affected packages to version 2.26.5, 2.27.7, 2.28.4.

CVE-2025-66411 at a Glance

CVE Identifier CVE-2025-66411
GHSA Identifier GHSA-jf75-p25m-pw74
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Github.com/coder/coder/v2
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2025-66411

To remediate this vulnerability, upgrade all affected Github.com/coder/coder/v2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/coder/coder/v2 fixed: 2.26.5
Upgrade github.com/coder/coder/v2 to 2.26.5
github.com/coder/coder/v2 fixed: 2.27.7
Upgrade github.com/coder/coder/v2 to 2.27.7
github.com/coder/coder/v2 fixed: 2.28.4
Upgrade github.com/coder/coder/v2 to 2.28.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/coder/coder/v2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-66411, inspect your project dependencies for Github.com/coder/coder/v2:

inspect dependencies for github.com/coder/coder/v2

Analyze the terminal output to locate any version of Github.com/coder/coder/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.26.5), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Github.com/coder/coder/v2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary Workspace Agent manifests containing sensitive values were logged in plaintext unsanitized ## Details By default Workspace Agent logs are redirected to [stderr](https://linux.die.net/man/3/stderr) https://github.com/coder/coder/blob/a8862be546f347c59201e2219d917e28121c0edb/cli/agent.go#L432-L439 [Workspace Agent Manifests](https://coder.com/docs/reference/agent-api/schemas#agentsdkmanifest) 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](https://csrc.nist.gov/glossary/term/security_information_and_event_management_tool), 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](https://github.com/coder/coder/commit/e2a46393fce40bc630df3293c1ee66a596277289) 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 `CODER_AGENT_LOGGING_HUMAN=/dev/null` > platform operators are advised to upgrade their deployments

CVE-2025-66411 Affected Github.com/coder/coder/v2 Versions

3 component(s)
Fixed Versions:
2.26.52.27.72.28.4
Product / Package Ecosystem Affected Versions Fixed Version
github.com/coder/coder/v2
Go
< 2.26.5
2.26.5
github.com/coder/coder/v2
Go
≥ 2.27.0
< 2.27.7
2.27.7
github.com/coder/coder/v2
Go
≥ 2.28.0
< 2.28.4
2.28.4

References

Frequently Asked Questions

What is CVE-2025-66411?
CVE-2025-66411 is a security vulnerability in Github.com/coder/coder/v2 involving Coder logs sensitive objects unsanitized under CWE-532: Insertion of Sensitive Information into Log File.
Which Github.com/coder/coder/v2 versions are affected?
Affected versions include releases prior to 2.26.5, 2.27.7, 2.28.4 across affected packages: github.com/coder/coder/v2.
What version fixes CVE-2025-66411?
Upgrading to 2.26.5, 2.27.7, 2.28.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/coder/coder/v2 affected?
Yes, github.com/coder/coder/v2 is affected in releases prior to 2.26.5, 2.27.7, 2.28.4. Upgrade your dependency to 2.26.5, 2.27.7, 2.28.4 or later.
What is the CVSS score of CVE-2025-66411?
CVE-2025-66411 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2025-66411?
CVE-2025-66411 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Go dependencies for CVE-2025-66411?
Run the dependency tree command: 'inspect dependencies for github.com/coder/coder/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jf75-p25m-pw74",
  "modified" : "2025-12-04T16:22:37Z",
  "published" : "2025-12-03T16:28:36Z",
  "aliases" : [ "CVE-2025-66411" ],
  "summary" : "Coder logs sensitive objects unsanitized",
  "details" : "## Summary\nWorkspace Agent manifests containing sensitive values were logged in plaintext unsanitized\n\n## Details\nBy default Workspace Agent logs are redirected to [stderr](https://linux.die.net/man/3/stderr)\nhttps://github.com/coder/coder/blob/a8862be546f347c59201e2219d917e28121c0edb/cli/agent.go#L432-L439\n\n[Workspace Agent Manifests](https://coder.com/docs/reference/agent-api/schemas#agentsdkmanifest) containing sensitive environment variables were logged insecurely\nhttps://github.com/coder/coder/blob/7beb95fd56d2f790502e236b64906f8eefb969bd/agent/agent.go#L1090\n\nAn attacker with limited local access to the Coder Workspace (VM, K8s Pod etc.) or a third-party system ([SIEM](https://csrc.nist.gov/glossary/term/security_information_and_event_management_tool), logging stack) could access those logs\n\nThis behavior opened room for unauthorized access and privilege escalation\n\n## Impact\nImpact varies depending on the environment variables set in a given workspace\n\n## Patches\n[Fix](https://github.com/coder/coder/commit/e2a46393fce40bc630df3293c1ee66a596277289) was released & backported:\n- https://github.com/coder/coder/releases/tag/v2.28.4\n- https://github.com/coder/coder/releases/tag/v2.27.7\n- https://github.com/coder/coder/releases/tag/v2.26.5\n\n## Workarounds\nOne potential workaround is to disable Workspace Agent Logs by setting following configuration option\n`CODER_AGENT_LOGGING_HUMAN=/dev/null` \n> platform operators are advised to upgrade their deployments",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/coder/coder/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.26.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/coder/coder/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.27.0"
      }, {
        "fixed" : "2.27.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/coder/coder/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.28.0"
      }, {
        "fixed" : "2.28.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/coder/coder/security/advisories/GHSA-jf75-p25m-pw74"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-66411"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/coder/coder/pull/20968"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/coder/coder/commit/06c6abbe0935f9213c1588add60a396da5762e1c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/coder/coder/commit/a75205a559211c8aa494b1a16750d114b263f24a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/coder/coder/commit/e2a46393fce40bc630df3293c1ee66a596277289"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/coder/coder"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/coder/coder/releases/tag/v2.26.5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/coder/coder/releases/tag/v2.27.7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/coder/coder/releases/tag/v2.28.4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-03T16:28:36Z",
    "nvd_published_at" : "2025-12-03T20:16:26Z"
  }
}