CVE-2023-40025: Argo CD web terminal session doesn't expire
7.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.37%
CWE
Published
8/23/2023
Updated
11/7/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/argoproj/argo-cd | go | >= 2.6.0, < 2.6.14 | 2.6.14 |
github.com/argoproj/argo-cd | go | >= 2.7.0, < 2.7.12 | 2.7.12 |
github.com/argoproj/argo-cd | go | = 2.8.0 | 2.8.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing token validation in websocket message handling. The patch added: 1) SessionManager integration in terminalSession struct 2) Token verification in Read() method 3) Reconnect logic when tokens expire. The original Read() method (vulnerable) lacked the critical 'VerifyToken' check shown in the diff, allowing sessions to persist after token expiration. The newTerminalSession function's pre-patch version didn't pass sessionManager, preventing token validation infrastructure from being available during session initialization.