CVE-2024-21652 — Vulnerability in argoproj/argo-cd/v2 — CVE Details
Bypassing Brute Force Protection via Application Crash and In-Memory Data Loss
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.02%). Schedule for your next planned update.
Does your project use an affected github.com/argoproj/argo-cd/v2 version?
Paste your go.sum to check it for CVE-2024-21652 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
An attacker can exploit a chain of vulnerabilities, including a Denial of Service (DoS) flaw and in-memory data storage weakness, to effectively bypass the application's brute force login protection. This makes the application susceptible to brute force attacks, compromising the security of all user accounts.
Details
The issue arises from two main vulnerabilities:
- The application crashes due to a previously described DoS vulnerability caused by unsafe array modifications in a multi-threaded environment.
- The application saves the data of failed login attempts in-memory, without persistent storage. When the application crashes and restarts, this data is lost, resetting the brute force protections.
// LoginAttempts is a timestamped counter for failed login attempts
type LoginAttempts struct {
// Time of the last failed login LastFailed time.Time `json:"lastFailed"` // Number of consecutive login failures FailCount int `json:"failCount"`
}
By chaining these vulnerabilities, an attacker can circumvent the limitations placed on the number of login attempts.
PoC
- Run the provided PoC script.
- Observe that the script makes 6 login attempts, one more than the set limit of 5 failed attempts.
- This is made possible because the script triggers a server restart via the DoS vulnerability after 5 failed attempts, thus resetting the counter for failed login attempts.
Impact
This is a critical security vulnerability that allows attackers to bypass the brute force login protection mechanism. Not only can they crash the service affecting all users, but they can also make unlimited login attempts, increasing the risk of account compromise.
Advisory Timeline
- First published March 18, 2024 (983 days ago).
- Last revised August 7, 2026 — 872 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/argoproj/argo-cd/v2@v2.10.4
go get github.com/argoproj/argo-cd/v2@v2.9.9
go get github.com/argoproj/argo-cd/v2@v2.8.13
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/argoproj/argo-cd/v2 Go · Affected: All versions | 2.10.4 |
| github.com/argoproj/argo-cd/v2 Go · Affected: All versions | 2.9.9 |
| github.com/argoproj/argo-cd/v2 Go · Affected: All versions | 2.8.13 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-307
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/argoproj/argo-cd/security/advisories/GHSA-x32m-mvfj-52xvWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21652ADVISORY
- https://github.com/argoproj/argo-cd/commit/17b0df1168a4c535f6f37e95f25ed7cd81e1fa4dWEB
- https://github.com/argoproj/argo-cd/commit/6e181d72b31522f886a2afa029d5b26d7912ec7bWEB
- https://github.com/argoproj/argo-cd/commit/cebb6538f7944c87ca2fecb5d17f8baacc431456WEB
- https://argo-cd.readthedocs.io/en/stable/security_considerations/#cve-2020-8827-insufficient-anti-automationanti-brute-forceWEB
- https://github.com/argoproj/argo-cdPACKAGE
Frequently Asked Questions
- What is CVE-2024-21652?
- Bypassing Brute Force Protection via Application Crash and In-Memory Data Loss. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2024-21652?
- CVE-2024-21652 affects github.com/argoproj/argo-cd/v2. It has a 1.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-21652 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 62.4% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2022-29165CRITICAL
Argo CD will blindly trust JWT claims if anonymous access is enabled
- CVE-2025-59537HIGH
argo-cd vulnerable unauthenticated DoS via malformed Gogs webhook payload
- CVE-2025-23216
Argo CD does not scrub secret values from patch errors in github.com/argoproj/argo-cd
- CVE-2025-47933
Argo CD allows cross-site scripting on repositories page in github.com/argoproj/argo-cd
- CVE-2025-55190
Argo CD's Project API Token Exposes Repository Credentials in github.com/argoproj/argo-cd
- CVE-2025-59531
Unauthenticated argocd-server panic via a malicious Bitbucket-Server webhook payload in github.com/argoproj/argo-cd
- CVE-2025-55191
Repository Credentials Race Condition Crashes Argo CD Server in github.com/argoproj/argo-cd
- CVE-2025-59538
Argo CD Unauthenticated Remote DoS via malformed Azure DevOps git.push webhook in github.com/argoproj/argo-cd