CVE-2024-22424

CVE-2024-22424 is a high-severity cross-site request forgery (CSRF) vulnerability in github.com/argoproj/argo-cd (go), affecting versions >= 0.1.0, <= 1.8.7. It is fixed in 2.7.16, 2.8.8, 2.9.4, 2.10-rc2.

Summary

Workarounds

The only way to completely resolve the issue is to upgrade.

Credits

The Argo CD team would like to express their gratitude to An Trinh of Calif who reported the issue confidentially according to our guidelines and published a helpful blog post to describe the issue. We would also like to thank them for actively participating in the review for the patch.

References

Impact

The Argo CD API prior to versions 2.10-rc2, 2.9.4, 2.8.8, and 2.7.16 are vulnerable to a cross-server request forgery (CSRF) attack when the attacker has the ability to write HTML to a page on the same parent domain as Argo CD.

A CSRF attack works by tricking an authenticated Argo CD user into loading a web page which contains code to call Argo CD API endpoints on the victim’s behalf. For example, an attacker could send an Argo CD user a link to a page which looks harmless but in the background calls an Argo CD API endpoint to create an application running malicious code.

Argo CD uses the “Lax” SameSite cookie policy to prevent CSRF attacks where the attacker controls an external domain. The malicious external website can attempt to call the Argo CD API, but the web browser will refuse to send the Argo CD auth token with the request.

Many companies host Argo CD on an internal subdomain, such as https://argo-cd.internal.example.com. If an attacker can place malicious code on, for example, https://test.internal.example.com/, they can still perform a CSRF attack. In this case, the “Lax” SameSite cookie does not prevent the browser from sending the auth cookie, because the destination is a parent domain of the Argo CD API.

Browsers generally block such attacks by applying CORS policies to sensitive requests with sensitive content types. Specifically, browsers will send a “preflight request” for POSTs with content type “application/json” asking the destination API “are you allowed to accept requests from my domain?” If the destination API does not answer “yes,” the browser will block the request.

Before the patched versions, Argo CD did not validate that requests contained the correct content type header. So an attacker could bypass the browser’s CORS check by setting the content type to something which is considered “not sensitive” such as “text/plain.” The browser wouldn’t send the preflight request, and Argo CD would happily accept the contents (which are actually still JSON) and perform the requested action (such as running malicious code).

A victim's authenticated browser session is used to submit forged requests to an application that cannot distinguish them from legitimate ones. Typical impact: state-changing actions performed as the victim without their consent.

CVE-2024-22424 has a CVSS score of 8.3 (High). The vector is network-reachable, no privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (2.7.16, 2.8.8, 2.9.4, 2.10-rc2); upgrading removes the vulnerable code path.

Affected versions

github.com/argoproj/argo-cd (>= 0.1.0, <= 1.8.7) github.com/argoproj/argo-cd/v2 (< 2.7.16) github.com/argoproj/argo-cd/v2 (>= 2.8.0-rc1, < 2.8.8) github.com/argoproj/argo-cd/v2 (>= 2.9.0-rc1, < 2.9.4) github.com/argoproj/argo-cd/v2 (= 2.10.0-rc1)

Security releases

github.com/argoproj/argo-cd/v2 → 2.7.16 (go) github.com/argoproj/argo-cd/v2 → 2.8.8 (go) github.com/argoproj/argo-cd/v2 → 2.9.4 (go) github.com/argoproj/argo-cd/v2 → 2.10-rc2 (go)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

A patch for this vulnerability has been released in the following Argo CD versions:

  • 2.10-rc2
  • 2.9.4
  • 2.8.8
  • 2.7.16

🚨 The patch contains a breaking API change. 🚨 The Argo CD API will no longer accept non-GET requests which do not specify application/json as their Content-Type. The accepted content types list is configurable, and it is possible (but discouraged) to disable the content type check completely.

Frequently Asked Questions

  1. What is CVE-2024-22424? CVE-2024-22424 is a high-severity cross-site request forgery (CSRF) vulnerability in github.com/argoproj/argo-cd (go), affecting versions >= 0.1.0, <= 1.8.7. It is fixed in 2.7.16, 2.8.8, 2.9.4, 2.10-rc2. A victim's authenticated browser session is used to submit forged requests to an application that cannot distinguish them from legitimate ones.
  2. How severe is CVE-2024-22424? CVE-2024-22424 has a CVSS score of 8.3 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which packages are affected by CVE-2024-22424?
    • github.com/argoproj/argo-cd (go) (versions >= 0.1.0, <= 1.8.7)
    • github.com/argoproj/argo-cd/v2 (go) (versions < 2.7.16)
  4. Is there a fix for CVE-2024-22424? Yes. CVE-2024-22424 is fixed in 2.7.16, 2.8.8, 2.9.4, 2.10-rc2. Upgrade to this version or later.
  5. Is CVE-2024-22424 exploitable, and should I be worried? Whether CVE-2024-22424 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2024-22424 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2024-22424?
    • Upgrade github.com/argoproj/argo-cd/v2 to 2.7.16 or later
    • Upgrade github.com/argoproj/argo-cd/v2 to 2.8.8 or later
    • Upgrade github.com/argoproj/argo-cd/v2 to 2.9.4 or later
    • Upgrade github.com/argoproj/argo-cd/v2 to 2.10-rc2 or later

Other vulnerabilities in github.com/argoproj/argo-cd

CVE-2026-45738CVE-2025-59531CVE-2025-47933CVE-2025-23216CVE-2024-40634

Stop the waste.
Protect your environment with Kodem.