CVE-2022-24905 Argo CD login screen allows message spoofing if SSO is enabled

Medium 4.3 Published Updated

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.

PackageAffectedFixed in
github.com/argoproj/argo-cd/v2 GoFrom 2.0.02.1.15, 2.2.9, 2.3.4
github.com/argoproj/argo-cd/v2 GoFrom 2.0.02.1.15
github.com/argoproj/argo-cd/v2 GoFrom 2.0.02.1.15
github.com/argoproj/argo-cd/v2 GoFrom 2.2.02.2.9
github.com/argoproj/argo-cd/v2 GoFrom 2.2.02.2.9
github.com/argoproj/argo-cd/v2 GoFrom 2.3.02.3.4
4 more packages
github.com/argoproj/argo-cd/v2 GoFrom 2.3.02.3.4
github.com/argoproj/argo-cd GoAll versionsNone
github.com/argoproj/argo-cd GoAll versions2.1.15
github.com/argoproj/argo-cd GoAll versions2.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.

All Argoproj Argo Cd vulnerabilities

Sources

Also known as GHSA-xmg8-99r8-jc2j, GO-2022-0454.

Is CVE-2022-24905 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free