Skip to content
OpenAdvisories
High · 8.1 CVE-2025-58437 EUVD-2025-27069GHSA-j6xf-jwrj-v5qpGO-2025-3938

Coder's privilege escalation vulnerability could lead to a cross workspace compromise

Published Sep 6, 2025 · Updated Sep 8, 2025 · Assigned by GitHub_M

Description

Coder allows organizations to provision remote development environments via Terraform. In versions 2.22.0 through 2.24.3, 2.25.0 and 2.25.1, Coder can be compromised through insecure session handling in prebuilt workspaces. Coder automatically generates a session token for a user when a workspace is started. It is automatically exposed via coder_workspace_owner.session_token. Prebuilt workspaces are initially owned by a built-in prebuilds system user. When a prebuilt workspace is claimed, a new session token is generated for the user that claimed the workspace, but the previous session token for the prebuilds user was not expired. Any Coder workspace templates that persist this automatically generated session token are potentially impacted. This is fixed in versions 2.24.4 and 2.25.2.

Affected products

VendorProductAffectedFixed
coder coder >= 2.22.0, < 2.24.4, >= 2.25.0, < 2.25.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES 15 SP6 govulncheck-vulndb 0.0.20250918T182144-150000.1.107.1 SUSE-SU-2025:03289-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250917T170349-1.1 openSUSE-SU-2025:15564-1
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20250918T182144-150000.1.107.1 SUSE-SU-2025:03289-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/coder/coder all versions — GO-2025-3938
Go github.com/coder/coder/v2 >= 2.22.0, < 2.24.4 2.24.4 GHSA-j6xf-jwrj-v5qp
Go github.com/coder/coder/v2 >= 2.25.0, < 2.25.2 2.25.2 GHSA-j6xf-jwrj-v5qp
Go github.com/coder/coder/v2 >= 2.22.0, < 2.24.4 · >= 2.25.0, < 2.25.2 2.24.4, 2.25.2 GO-2025-3938

Advisories 3

References