CVE-2024-21662
Argo CD vulnerable to Bypassing of Rate Limit and Brute Force Protection Using Cache Overflow
Check your servers for CVE-2024-21662
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-21662 affects argo-cd, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Prior to versions 2.8.13, 2.9.9, and 2.10.4, an attacker can effectively bypass the rate limit and brute force protections by exploiting the application's weak cache-based mechanism. This loophole in security can be combined with other vulnerabilities to attack the default admin account. This flaw undermines a patch for CVE-2020-8827 intended to protect against brute-force attacks. The application's brute force protection relies on a cache mechanism that tracks login attempts for each user. This cache is limited to a `defaultMaxCacheSize` of 1000 entries. An attacker can overflow this cache by bombarding it with login attempts for different users, thereby pushing out the admin account's failed attempts and effectively resetting the rate limit for that account. This is a severe vulnerability that enables attackers to perform brute force attacks at an accelerated rate, especially targeting the default admin account. Users should upgrade to version 2.8.13, 2.9.9, or 2.10.4 to receive a patch.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.84%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 58.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 16 Jul 2024):
- Exploitation
- poc: a proof of concept is public
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-307 Improper Restriction of Excessive Authentication Attempts
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| argo-cd |
affected < 2.8.13 affected >= 2.9.0, < 2.9.9 affected >= 2.10.0, < 2.10.4
|
Is my server affected?
Find the installed version of argo-cd and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i argo-cd
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2024-21662 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2024-21662RHEL, Rocky, Alma, Fedora
rpm -q argo-cd
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2024-21662Alpine
apk list --installed | grep -i argo-cdWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-21662
trivy image --scanners vuln IMAGE | grep CVE-2024-21662
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://github.com/argoproj/argo-cd/commit/17b0df1168a4c535f6f37e95f25ed7cd81e1fa4d github.com
- https://github.com/argoproj/argo-cd/commit/6e181d72b31522f886a2afa029d5b26d7912ec7b github.com
- https://github.com/argoproj/argo-cd/commit/cebb6538f7944c87ca2fecb5d17f8baacc431456 github.com
- https://argo-cd.readthedocs.io/en/stable/security_considerations/#cve-2020-8827-insufficient-anti-automationanti-brute-force argo-cd.readthedocs.io
Source: the record CVE-2024-21662 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse