Insufficient Session Expiration Affecting github.com/coder/coder/v2/coderd/database/dbauthz package, versions >=2.22.0 <2.24.4>=2.25.0 <2.25.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.04% (10th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insufficient Session Expiration vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMCODERCODERV2CODERDDATABASEDBAUTHZ-12549200
  • published7 Sept 2025
  • disclosed6 Sept 2025
  • creditCian Johnston

Introduced: 6 Sep 2025

NewCVE-2025-58437  (opens in a new tab)
CWE-613  (opens in a new tab)

How to fix?

Upgrade github.com/coder/coder/v2/coderd/database/dbauthz to version 2.24.4, 2.25.2 or higher.

Overview

Affected versions of this package are vulnerable to Insufficient Session Expiration via insecure session handling in prebuilt workspaces. An attacker can gain unauthorized access to other users' workspaces by reusing unexpired session tokens exposed through coder_workspace_owner.session_token.

Note: This is exploitable if workspace templates persist the automatically generated session token.

CVSS Base Scores

version 4.0
version 3.1