CVE-2023-40025: Github.com/argoproj/argo cd/v2 Argo CD Web Terminal Session Vulnerability

HIGH
Advisory Identifier: GHSA-c8xw-vjgf-94hr
CVSS 7.1
CWE-613
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2023-40025
GHSA Identifier GHSA-c8xw-vjgf-94hr
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-613: Insufficient Session Expiration
Affected Product Github.com/argoproj/argo cd/v2
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (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.

github.com/argoproj/argo-cd/v2 fixed: 2.6.14
Upgrade github.com/argoproj/argo-cd/v2 to 2.6.14
github.com/argoproj/argo-cd/v2 fixed: 2.7.12
Upgrade github.com/argoproj/argo-cd/v2 to 2.7.12
github.com/argoproj/argo-cd/v2 fixed: 2.8.1
Upgrade github.com/argoproj/argo-cd/v2 to 2.8.1
github.com/argoproj/argo-cd/v2 fixed: 2.0.0-20230821201509-e047efa8f951
Upgrade github.com/argoproj/argo-cd/v2 to 2.0.0-20230821201509-e047efa8f951
Verify Direct and Transitive Dependencies

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

### Impact All 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. ### Patches A patch for this vulnerability has been released in the following Argo CD version: * v2.6.14 * v2.7.12 * v2.8.1 ### Workarounds The only way to completely resolve the issue is to upgrade. #### Mitigations Disable web-based terminal or define RBAC rules to it [https://argo-cd.readthedocs.io/en/latest/operator-manual/web_based_terminal/](https://argo-cd.readthedocs.io/en/latest/operator-manual/web_based_terminal/) ### For more information If you have any questions or comments about this advisory: * 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) * Join us on [Slack](https://argoproj.github.io/community/join-slack) in channel #argo-cd ### Credits Thank 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).

CVE-2023-40025 Affected Github.com/argoproj/argo cd/v2 Versions

4 component(s)
Fixed Versions:
2.6.142.7.122.8.12.0.0-20230821201509-e047efa8f951
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?
CVE-2023-40025 is a security vulnerability in Github.com/argoproj/argo cd/v2 involving Argo CD web terminal session doesn't expire under CWE-613: Insufficient Session Expiration.
Which Github.com/argoproj/argo cd/v2 versions are affected?
Affected versions include releases prior to 2.6.14, 2.7.12, 2.8.1, 2.0.0-20230821201509-e047efa8f951 across affected packages: github.com/argoproj/argo-cd/v2.
What version fixes CVE-2023-40025?
Upgrading to 2.6.14, 2.7.12, 2.8.1, 2.0.0-20230821201509-e047efa8f951 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/argoproj/argo-cd/v2 affected?
Yes, github.com/argoproj/argo-cd/v2 is affected in releases prior to 2.6.14, 2.7.12, 2.8.1, 2.0.0-20230821201509-e047efa8f951. Upgrade your dependency to 2.6.14, 2.7.12, 2.8.1, 2.0.0-20230821201509-e047efa8f951 or later.
What is the CVSS score of CVE-2023-40025?
CVE-2023-40025 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2023-40025?
CVE-2023-40025 is classified under CWE-613: Insufficient Session Expiration (According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.").
How can I check Go dependencies for CVE-2023-40025?
Run the dependency tree command: 'inspect dependencies for github.com/argoproj/argo-cd/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}