Cross-Site Request Forgery (CSRF) in github.com/argoproj/argo-cd
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Tampering
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-352.
Summary
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. The Argo CD API prior to versions 2.10-rc2, 2.9.4, 2.8.8, and 2.7.15 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. 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 patch for this vulnerability has been released in the following Argo CD versions: 2.10-rc2, 2.9.4, 2.8.8, and 2.7.15. 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. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| argoproj | argo-cd | 0.1.0 to before 2.7.15; 2.8.0 to before 2.8.8; 2.9.0 to before 2.9.4; 2.10.0-rc1 to before 2.10-rc2 | 2.7.15, 2.8.8, 2.9.4, 2.10-rc2 | Patch available | CNA |
| — | github.com/argoproj/argo-cd (Go) | 0.1.0 – 1.8.7 | — | No fix listed | GHSA-92mw-q256-5vwg |
| — | github.com/argoproj/argo-cd/v2 (Go) | before 2.7.16 | 2.7.16 | Patch available | GHSA-92mw-q256-5vwg |
| — | github.com/argoproj/argo-cd/v2 (Go) | 2.8.0-rc1 to before 2.8.8 | 2.8.8 | Patch available | GHSA-92mw-q256-5vwg |
| — | github.com/argoproj/argo-cd/v2 (Go) | 2.9.0-rc1 to before 2.9.4 | 2.9.4 | Patch available | GHSA-92mw-q256-5vwg |
| — | github.com/argoproj/argo-cd/v2 (Go) | 2.10.0-rc1 to before 2.10-rc2 | 2.10-rc2 | Patch available | GHSA-92mw-q256-5vwg |
- argo-cd Vendorargoproj Affected 0.1.0 to before 2.7.15; 2.8.0 to before 2.8.8; 2.9.0 to before 2.9.4; 2.10.0-rc1 to before 2.10-rc2 Fixed in 2.7.15, 2.8.8, 2.9.4, 2.10-rc2 Patch available CNA
- github.com/argoproj/argo-cd (Go) Vendor— Affected 0.1.0 – 1.8.7 Fixed in — No fix listed GHSA-92mw-q256-5vwg
- github.com/argoproj/argo-cd/v2 (Go) Vendor— Affected before 2.7.16 Fixed in 2.7.16 Patch available GHSA-92mw-q256-5vwg
- github.com/argoproj/argo-cd/v2 (Go) Vendor— Affected 2.8.0-rc1 to before 2.8.8 Fixed in 2.8.8 Patch available GHSA-92mw-q256-5vwg
- github.com/argoproj/argo-cd/v2 (Go) Vendor— Affected 2.9.0-rc1 to before 2.9.4 Fixed in 2.9.4 Patch available GHSA-92mw-q256-5vwg
- github.com/argoproj/argo-cd/v2 (Go) Vendor— Affected 2.10.0-rc1 to before 2.10-rc2 Fixed in 2.10-rc2 Patch available GHSA-92mw-q256-5vwg
CPE configurations NVD · 3
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:argoproj:argo_cd:*:*:*:*:*:*:*:* | 2.8.0 to before 2.8.8; 2.9.0 to before 2.9.4 | Vulnerable | argoproj |
| cpe:2.3:a:argoproj:argo_cd:2.10.0:rc1:*:*:*:*:*:* | 2.10.0 rc1 | Vulnerable | argoproj |
| cpe:2.3:a:linuxfoundation:argo-cd:*:*:*:*:*:*:*:* | 0.1.0 to before 2.7.16 | Vulnerable | backstage |
- cpe:2.3:a:argoproj:argo_cd:*:*:*:*:*:*:*:* Versions 2.8.0 to before 2.8.8; 2.9.0 to before 2.9.4 Vulnerable ·argoproj
- cpe:2.3:a:argoproj:argo_cd:2.10.0:rc1:*:*:*:*:*:* Versions 2.10.0 rc1 Vulnerable ·argoproj
- cpe:2.3:a:linuxfoundation:argo-cd:*:*:*:*:*:*:*:* Versions 0.1.0 to before 2.7.16 Vulnerable ·backstage
Remediation
- Fix · CNA argo-cd (argoproj) Fixed in 2.7.15, 2.8.8, 2.9.4, 2.10-rc2
- Fix · GHSA-92mw-q256-5vwg github.com/argoproj/argo-cd/v2 (Go) Fixed in 2.7.16 Advisory →
- Fix · GHSA-92mw-q256-5vwg github.com/argoproj/argo-cd/v2 (Go) Fixed in 2.8.8 Advisory →
- Fix · GHSA-92mw-q256-5vwg github.com/argoproj/argo-cd/v2 (Go) Fixed in 2.9.4 Advisory →
- Fix · GHSA-92mw-q256-5vwg github.com/argoproj/argo-cd/v2 (Go) Fixed in 2.10-rc2 Advisory →
Red Hat 3 advisories
- RHSA-2024:0692 Released 2024-02-05 · Red Hat rating CriticalErrata Advisory for Red Hat OpenShift GitOps 1.10.2 security update
- Red Hat OpenShift GitOps 1.10 openshift-gitops-1/argo-rollouts-rhel8, openshift-gitops-1/argocd-rhel8, openshift-gitops-1/console-plugin-rhel8 +6
- RHSA-2024:0691 Released 2024-02-05 · Red Hat rating CriticalErrata Advisory for Red Hat OpenShift GitOps v1.9.4 security update
- Red Hat OpenShift GitOps 1.9 openshift-gitops-1/argo-rollouts-rhel8, openshift-gitops-1/argocd-rhel8, openshift-gitops-1/console-plugin-rhel8 +6
- RHSA-2024:0689 Released 2024-02-05 · Red Hat rating CriticalErrata Advisory for Red Hat OpenShift GitOps 1.11.1 security update
- Red Hat OpenShift GitOps 1.11 openshift-gitops-1/argo-rollouts-rhel8, openshift-gitops-1/argocd-rhel8, openshift-gitops-1/console-plugin-rhel8 +6
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift GitOps 1.10 | Fixed | RHSA-2024:0692 |
| Red Hat OpenShift GitOps 1.11 | Fixed | RHSA-2024:0689 |
| Red Hat OpenShift GitOps 1.9 | Fixed | RHSA-2024:0691 |
Timeline
- 2026-10-02 Threatist record created from CVE-2024-22424
- 2026-10-03 Alias added: GHSA-92mw-q256-5vwg
References
Advisory 2
Other 5
- https://github.com/argoproj/argo-cd/commit/0b459f224b3186707809be8240dfc3a6028f42a0
- https://github.com/argoproj/argo-cd/commit/13fe3ca589f6f2ded6001ce114e354602ed058b3
- https://github.com/argoproj/argo-cd/commit/3c5878ecf41581942281e9c95745f073bdfbf9c3
- https://github.com/argoproj/argo-cd/commit/f569aa105e0fe5940bc736c68e2fc90ee4a6ed94
- https://github.com/argoproj/argo-cd
More argoproj Argo Cd vulnerabilities
- TI-2024-14377 Argo CD vulnerable to Bypassing of Brute Force Protection via Application Crash and In-Memory Data Loss CVSS 3.1CRITICAL 9.8
- TI-2024-14383 Argo CD vulnerable to Bypassing of Rate Limit and Brute Force Protection Using Cache Overflow CVSS 3.1CRITICAL 9.1
- TI-2026-31086 ArgoCD ServerSideDiff is vulnerable to Kubernetes Secret Extraction CVSS 3.1CRITICAL 9.6
- TI-2023-20919 Cluster secret might leak in cluster details page in Argo CD CVSS 3.1CRITICAL 9.9
- TI-2024-21088 ArgoCD Vulnerable to Use of Risky or Missing Cryptographic Algorithms in Redis Cache CVSS 3.1CRITICAL 9.1
- TI-2026-33475 Argo CD: Stored XSS in application link annotations enables developer-to-admin privilege escalation CVSS 3.1HIGH 8.7
Sources
- CVE-2024-22424 · CVE Program
- CVE-2024-22424 · NVD
- FIRST EPSS
- GHSA-92mw-q256-5vwg · GitHub Advisory Database · CC BY 4.0
- CVE-2024-22424 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences