CVE-2025-66411: Github.com/coder/coder/v2 Coder Logs Sensitive Objects Unsanitized Vulnerability
HIGHCVE-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
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).
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.
Upgrade github.com/coder/coder/v2 to 2.26.5
Upgrade github.com/coder/coder/v2 to 2.27.7
Upgrade github.com/coder/coder/v2 to 2.28.4
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
CVE-2025-66411 Affected Github.com/coder/coder/v2 Versions
3 component(s)| 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?
Which Github.com/coder/coder/v2 versions are affected?
What version fixes CVE-2025-66411?
Is github.com/coder/coder/v2 affected?
What is the CVSS score of CVE-2025-66411?
What CWE is associated with CVE-2025-66411?
How can I check Go dependencies for CVE-2025-66411?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}