CVE-2022-24905 Argo CD login screen allows message spoofing if SSO is enabled
Attackers can spoof login screen messages in Argo CD when SSO is enabled, potentially misleading users, though active content injection is prevented.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-24905?
CVE-2022-24905 is a medium-severity cross-site scripting vulnerability in Argoproj Argo Cd, published on 20 May 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. A vulnerability was found in Argo CD prior to versions 2.3.4, 2.2.9, and 2.1.15 that allows an attacker to spoof error messages on the login screen when single sign on (SSO) is enabled. In order to exploit this vulnerability, an attacker would have to trick the victim to visit a specially crafted URL which contains the message to be displayed. As far as the research of the Argo CD team concluded, it is not possible to specify any active content (e.g. Javascript) or other HTML fragments (e.g. clickable links) in the spoofed message. A patch for this vulnerability has been released in Argo CD versions 2.3.4, 2.2.9, and 2.1.15. There are currently no known workarounds.
Weakness: CWE-20
Which versions are affected by CVE-2022-24905?
10 open source packages ship an affected version, including github.com/argoproj/argo-cd/v2 and github.com/argoproj/argo-cd. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/argoproj/argo-cd/v2 Go | From 2.0.0 | 2.1.15, 2.2.9, 2.3.4 |
github.com/argoproj/argo-cd/v2 Go | From 2.0.0 | 2.1.15 |
github.com/argoproj/argo-cd/v2 Go | From 2.0.0 | 2.1.15 |
github.com/argoproj/argo-cd/v2 Go | From 2.2.0 | 2.2.9 |
github.com/argoproj/argo-cd/v2 Go | From 2.2.0 | 2.2.9 |
github.com/argoproj/argo-cd/v2 Go | From 2.3.0 | 2.3.4 |
4 more packages
github.com/argoproj/argo-cd/v2 Go | From 2.3.0 | 2.3.4 |
github.com/argoproj/argo-cd Go | All versions | None |
github.com/argoproj/argo-cd Go | All versions | 2.1.15 |
github.com/argoproj/argo-cd Go | All versions | 2.1.15 |
Products include Argoproj Argo Cd.
How do I fix CVE-2022-24905?
Upgrade github.com/argoproj/argo-cd/v2 to a fixed version for your release line: 2.1.15, 2.2.9 or 2.3.4.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-24905 being exploited?
There is no known exploitation of CVE-2022-24905 in the wild and no public exploit code.
Other vulnerabilities in Argoproj Argo Cd
- CVE-2025-55190 Argo CD: Project API Token Exposes Repository Credentials
- CVE-2022-29165 Argo CD will blindly trust JWT claims if anonymous access is enabled
- CVE-2023-40029 Cluster secret might leak in cluster details page in Argo CD
- CVE-2022-24768 Improper access control allows admin privilege escalation in Argo CD
- CVE-2024-21652 Argo CD vulnerable to Bypassing of Brute Force Protection via Application Crash and In-Memory Data Loss
Sources
Also known as GHSA-xmg8-99r8-jc2j, GO-2022-0454.