CVE-2023-40025: Argo CD web terminal session doesn't expire
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/webbasedterminal/
For more information If you have any questions or comments about this advisory: Open an issue in the Argo CD issue tracker or discussions Join us on 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.
Other sources
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. All versions of Argo CD starting from version 2.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. A patch for this vulnerability has been released in the following Argo CD versions: 2.6.14, 2.7.12 and 2.8.1.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2023-40025?
CVE-2023-40025 is a vulnerability in Argo CD, a declarative GitOps continuous delivery tool for Kubernetes.
What is the impact of CVE-2023-40025?
CVE-2023-40025 allows users to send websocket messages even if the token has already expired in Argo CD web terminal sessions.
How can I fix CVE-2023-40025?
To fix CVE-2023-40025, update Argo CD to version 2.8.1, 2.7.12, or 2.6.14 depending on your version.
What is the severity of CVE-2023-40025?
CVE-2023-40025 has a severity score of 7.1 (high).
Where can I find more information about CVE-2023-40025?
You can find more information about CVE-2023-40025 in the following references: [GitHub Commit](https://github.com/argoproj/argo-cd/commit/e047efa8f9518c54d00d2e4493b64bc4dba98478), [GitHub Security Advisory](https://github.com/argoproj/argo-cd/security/advisories/GHSA-c8xw-vjgf-94hr), [NVD](https://nvd.nist.gov/vuln/detail/CVE-2023-40025).