CVE-2023-40025: Github.com/argoproj/argo cd/v2 Argo CD Web Terminal Session Vulnerability
HIGHCVE-2023-40025 is a HIGH (CVSS 7.1) argo cd web terminal session vulnerability (CWE-613: Insufficient Session Expiration) affecting Github.com/argoproj/argo cd/v2 libraries in the Go ecosystem. The issue involves argo cd web terminal session doesn't expire. Remediation is available by upgrading affected packages to version 2.6.14, 2.7.12, 2.8.1, 2.0.0-20230821201509-e047efa8f951.
CVE-2023-40025 at a Glance
Security Impact
CVSS: 7.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N).
How to Fix CVE-2023-40025
To remediate this vulnerability, upgrade all affected Github.com/argoproj/argo cd/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/argoproj/argo-cd/v2 to 2.6.14
Upgrade github.com/argoproj/argo-cd/v2 to 2.7.12
Upgrade github.com/argoproj/argo-cd/v2 to 2.8.1
Upgrade github.com/argoproj/argo-cd/v2 to 2.0.0-20230821201509-e047efa8f951
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/argoproj/argo-cd/v2
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-40025, inspect your project dependencies for Github.com/argoproj/argo cd/v2:
inspect dependencies for github.com/argoproj/argo-cd/v2
Analyze the terminal output to locate any version of Github.com/argoproj/argo cd/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.6.14), 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-613: Insufficient Session Expiration, where according to wasc, "insufficient session expiration is when a web site permits an attacker to reuse old session credentials or session ids for authorization.". In Github.com/argoproj/argo cd/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-2023-40025 Affected Github.com/argoproj/argo cd/v2 Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/argoproj/argo-cd/v2
|
Go |
≥ 2.6.0
< 2.6.14
|
2.6.14
|
|
github.com/argoproj/argo-cd/v2
|
Go |
≥ 2.7.0
< 2.7.12
|
2.7.12
|
|
github.com/argoproj/argo-cd/v2
|
Go |
≥ 2.8.0
< 2.8.1
All 1 versions
2.8.0
|
2.8.1
|
|
github.com/argoproj/argo-cd/v2
|
Go |
≥ 2.0.0-20230718200744-12a5a7a70d6e
< 2.0.0-20230821201509-e047efa8f951
|
2.0.0-20230821201509-e047efa8f951
|
References
Frequently Asked Questions
What is CVE-2023-40025?
Which Github.com/argoproj/argo cd/v2 versions are affected?
What version fixes CVE-2023-40025?
Is github.com/argoproj/argo-cd/v2 affected?
What is the CVSS score of CVE-2023-40025?
What CWE is associated with CVE-2023-40025?
How can I check Go dependencies for CVE-2023-40025?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c8xw-vjgf-94hr",
"modified" : "2025-06-24T17:14:53Z",
"published" : "2023-08-23T17:50:41Z",
"aliases" : [ "CVE-2023-40025" ],
"summary" : "Argo CD web terminal session doesn't expire",
"details" : "### Impact\nAll versions of Argo CD starting from v2.6.0 have a bug where open web terminal sessions do not expire. This bug allows users to send any websocket messages even if the token has already expired. The most straightforward scenario is when a user opens the terminal view and leaves it open for an extended period. This allows the user to view sensitive information even when they should have been logged out already.\n\n### Patches\nA patch for this vulnerability has been released in the following Argo CD version:\n\n* v2.6.14\n* v2.7.12\n* v2.8.1\n\n### Workarounds\nThe only way to completely resolve the issue is to upgrade.\n\n#### Mitigations\nDisable web-based terminal or define RBAC rules to it\n[https://argo-cd.readthedocs.io/en/latest/operator-manual/web_based_terminal/](https://argo-cd.readthedocs.io/en/latest/operator-manual/web_based_terminal/)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [the Argo CD issue tracker](https://github.com/argoproj/argo-cd/issues) or [discussions](https://github.com/argoproj/argo-cd/discussions)\n* Join us on [Slack](https://argoproj.github.io/community/join-slack) in channel #argo-cd\n\n### Credits\n\nThank you to bean.zhang (@zhlu32 ) of HIT-IDS ChunkL Team who discovered the issue and reported it confidentially according to our [guidelines](https://github.com/argoproj/argo-cd/blob/master/SECURITY.md#reporting-a-vulnerability).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/argoproj/argo-cd/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.6.0"
}, {
"fixed" : "2.6.14"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/argoproj/argo-cd/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.7.0"
}, {
"fixed" : "2.7.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/argoproj/argo-cd/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.8.0"
}, {
"fixed" : "2.8.1"
} ]
} ],
"versions" : [ "2.8.0" ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/argoproj/argo-cd/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0-20230718200744-12a5a7a70d6e"
}, {
"fixed" : "2.0.0-20230821201509-e047efa8f951"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/argoproj/argo-cd/security/advisories/GHSA-c8xw-vjgf-94hr"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-40025"
}, {
"type" : "WEB",
"url" : "https://github.com/argoproj/argo-cd/commit/e047efa8f9518c54d00d2e4493b64bc4dba98478"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/argoproj/argo-cd"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-613" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-23T17:50:41Z",
"nvd_published_at" : "2023-08-23T20:15:08Z"
}
}