CVE-2025-58437 Details
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.
A vulnerability in Coder's session management for prebuilt workspaces can lead to privilege escalation and unauthorized access to other workspaces. This issue affects Coder versions 2.22.0 through 2.24.3, as well as 2.25.0 and 2.25.1. The vulnerability arises because the session token for the built-in 'prebuilds' user is not invalidated when a workspace is claimed by another user. As a result, any workspace templates that save this session token could be exploited. The issue is particularly concerning for deployments that use the prebuilt workspaces feature, as it allows a user to access and execute code in other workspaces owned by the 'prebuilds' user.
This vulnerability has been fixed in Coder versions 2.24.4, 2.25.2, and 2.26.0. However, workspaces created from prebuilt templates before the fix may still be affected. It is recommended to recreate such workspaces. To identify potentially impacted workspaces, a SQL query can be run against the Coder database.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-613 | Insufficient Session Expiration | [email protected] |
| CWE-277 | Insecure Inherited Permissions | [email protected] |
| CWE-279 | Incorrect Execution-Assigned Permissions | [email protected] |
| CWE-613 | Insufficient Session Expiration | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| coder coder | >= 2.22, < 2.24.4 >= 2.25.0, < 2.25.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 17, 2025 | Initial Analysis | [email protected] |
| Sep 6, 2025 | New CVE Received | [email protected] |