{"id":"CVE-2024-21661","aliases":["BIT-argo-cd-2024-21661","GHSA-6v85-wr92-q4p7","GO-2024-2654"],"summary":"Argo CD Denial of Service (DoS) Vulnerability Due to Unsafe Array Modification in Multi-threaded Environment","published_at":"2024-03-18T00:00:00Z","modified_at":"2026-09-10T03:50:10.222682Z","products":[{"slug":"argo-cd","name":"Argo CD","category":"gitops-cicd"},{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"high","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Red Hat","rating":"Important"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.011760000139474869,"percentile":0.6824899911880493,"date":"2026-11-19T00:00:00Z"},"priority":9.5,"details":"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 exploit a critical flaw in the application to initiate a Denial of Service (DoS) attack, rendering the application inoperable and affecting all users. The issue arises from unsafe manipulation of an array in a multi-threaded environment. The vulnerability is rooted in the application's code, where an array is being modified while it is being iterated over. This is a classic programming error but becomes critically unsafe when executed in a multi-threaded environment. When two threads interact with the same array simultaneously, the application crashes. This is a Denial of Service (DoS) vulnerability. Any attacker can crash the application continuously, making it impossible for legitimate users to access the service. The issue is exacerbated because it does not require authentication, widening the pool of potential attackers. Versions 2.8.13, 2.9.9, and 2.10.4 contain a patch for this issue.","affected_stack":[{"ecosystem":"Bitnami","package":"argo-cd","purl":"pkg:bitnami/argo-cd","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.10.4"}]}],"fixed":["2.10.4"],"provider":"osv","source":"BIT-argo-cd-2024-21661","relation":"self"},{"ecosystem":"CVE","package":"argoproj/argo-cd","versions":["< 2.8.13",">= 2.9.0, < 2.9.9",">= 2.10.0, < 2.10.4"],"provider":"cvelistv5","source":"CVE-2024-21661","relation":"self"},{"ecosystem":"Go","package":"github.com/argoproj/argo-cd","purl":"pkg:golang/github.com/argoproj/argo-cd","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.8.7"}]}],"provider":"osv","source":"GHSA-6v85-wr92-q4p7","relation":"self"},{"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"2.10.0"},{"fixed":"2.10.4"}]}],"fixed":["2.10.4"],"provider":"osv","source":"GHSA-6v85-wr92-q4p7","relation":"self"},{"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.8.13"}]}],"fixed":["2.8.13"],"provider":"osv","source":"GHSA-6v85-wr92-q4p7","relation":"self"},{"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"2.9.0"},{"fixed":"2.9.9"}]}],"fixed":["2.9.9"],"provider":"osv","source":"GHSA-6v85-wr92-q4p7","relation":"self"},{"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.8.13"},{"introduced":"2.9.0"},{"fixed":"2.9.9"},{"introduced":"2.10.0"},{"fixed":"2.10.4"}]}],"fixed":["2.8.13","2.9.9","2.10.4"],"provider":"osv","source":"GO-2024-2654","relation":"self"},{"ecosystem":"NVD","package":"argoproj:argo_cd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.13"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.9.0"},{"fixed":"2.9.9"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.10.0"},{"fixed":"2.10.4"}]}],"fixed":["2.8.13","2.9.9","2.10.4"],"provider":"nvd","source":"CVE-2024-21661","relation":"self"},{"ecosystem":"Red Hat:openshift_gitops:1.12::el8","package":"openshift-gitops-argocd-cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-5.el8"}]}],"fixed":["0:1.12.1-5.el8"],"provider":"redhat-vex","source":"CVE-2024-21661","relation":"self"},{"ecosystem":"Red Hat:openshift_gitops:1.12::el8","package":"openshift-gitops-argocd-cli","purl":"pkg:rpm/redhat/openshift-gitops-argocd-cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-5.el8"}]}],"fixed":["0:1.12.1-5.el8"],"provider":"osv","source":"RHSA-2024:1752","relation":"upstream"},{"ecosystem":"Red Hat:openshift_gitops:1.12::el8","package":"openshift-gitops-argocd-cli-redistributable","purl":"pkg:rpm/redhat/openshift-gitops-argocd-cli-redistributable","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-5.el8"}]}],"fixed":["0:1.12.1-5.el8"],"provider":"osv","source":"RHSA-2024:1752","relation":"upstream"},{"ecosystem":"Red Hat:openshift_gitops:1.12::el9","package":"microshift-gitops","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-4.el9"}]}],"fixed":["0:1.12.1-4.el9"],"provider":"redhat-vex","source":"CVE-2024-21661","relation":"self"},{"ecosystem":"Red Hat:openshift_gitops:1.12::el9","package":"microshift-gitops","purl":"pkg:rpm/redhat/microshift-gitops","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-4.el9"}]}],"fixed":["0:1.12.1-4.el9"],"provider":"osv","source":"RHSA-2024:1752","relation":"upstream"},{"ecosystem":"Red Hat:openshift_gitops:1.12::el9","package":"microshift-gitops-release-info","purl":"pkg:rpm/redhat/microshift-gitops-release-info","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-4.el9"}]}],"fixed":["0:1.12.1-4.el9"],"provider":"osv","source":"RHSA-2024:1752","relation":"upstream"},{"ecosystem":"Red Hat:openshift_gitops:1.12::el9","package":"openshift-gitops-argocd-cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-4.el9"}]}],"fixed":["0:1.12.1-4.el9"],"provider":"redhat-vex","source":"CVE-2024-21661","relation":"self"},{"ecosystem":"Red Hat:openshift_gitops:1.12::el9","package":"openshift-gitops-argocd-cli","purl":"pkg:rpm/redhat/openshift-gitops-argocd-cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-4.el9"}]}],"fixed":["0:1.12.1-4.el9"],"provider":"osv","source":"RHSA-2024:1752","relation":"upstream"},{"ecosystem":"Red Hat:openshift_gitops:1.12::el9","package":"openshift-gitops-argocd-cli-redistributable","purl":"pkg:rpm/redhat/openshift-gitops-argocd-cli-redistributable","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-4.el9"}]}],"fixed":["0:1.12.1-4.el9"],"provider":"osv","source":"RHSA-2024:1752","relation":"upstream"}],"affected_other":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift GitOps 1.10","cpe":"cpe:/a:redhat:openshift_gitops:1.10::el8","status":"fixed","packages":["openshift-gitops-1/argo-rollouts-rhel8","openshift-gitops-1/argocd-rhel8","openshift-gitops-1/console-plugin-rhel8","openshift-gitops-1/dex-rhel8","openshift-gitops-1/gitops-operator-bundle","openshift-gitops-1/gitops-rhel8","openshift-gitops-1/gitops-rhel8-operator","openshift-gitops-1/kam-delivery-rhel8","openshift-gitops-1/must-gather-rhel8"],"package_count":9,"fixed":[],"advisories":["RHSA-2024:1700"],"provider":"redhat-vex","source":"CVE-2024-21661"},{"vendor":"Red Hat","product":"Red Hat OpenShift GitOps 1.11","cpe":"cpe:/a:redhat:openshift_gitops:1.11::el8","status":"fixed","packages":["openshift-gitops-1/argo-rollouts-rhel8","openshift-gitops-1/argocd-rhel8","openshift-gitops-1/console-plugin-rhel8","openshift-gitops-1/dex-rhel8","openshift-gitops-1/gitops-operator-bundle","openshift-gitops-1/gitops-rhel8","openshift-gitops-1/gitops-rhel8-operator","openshift-gitops-1/kam-delivery-rhel8","openshift-gitops-1/must-gather-rhel8"],"package_count":9,"fixed":[],"advisories":["RHSA-2024:1697"],"provider":"redhat-vex","source":"CVE-2024-21661"},{"vendor":"Red Hat","product":"Red Hat OpenShift GitOps 1.12","cpe":"cpe:/a:redhat:openshift_gitops:1.12::el8","status":"fixed","packages":["microshift-gitops","openshift-gitops-1/argo-rollouts-rhel8","openshift-gitops-1/argocd-rhel8","openshift-gitops-1/argocd-rhel9","openshift-gitops-1/console-plugin-rhel8","openshift-gitops-1/dex-rhel8","openshift-gitops-1/gitops-operator-bundle","openshift-gitops-1/gitops-rhel8","openshift-gitops-1/gitops-rhel8-operator","openshift-gitops-1/kam-delivery-rhel8","openshift-gitops-1/must-gather-rhel8","openshift-gitops-argocd-cli"],"package_count":12,"fixed":["microshift-gitops-1.12.1-4.el9","openshift-gitops-argocd-cli-1.12.1-4.el9","openshift-gitops-argocd-cli-1.12.1-5.el8"],"advisories":["RHSA-2024:1752","RHSA-2024:1753"],"provider":"redhat-vex","source":"CVE-2024-21661"},{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"affected","packages":["odf4/odr-rhel8-operator"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2024-21661"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2024-0812","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-0812","license":"TLP:CLEAR, mirroring permitted","published_at":"2024-04-08T22:00:00Z","modified_at":"2024-04-10T22:00:00Z","summary":"Red Hat OpenShift: Mehrere Schwachstellen","details":"Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in Red Hat OpenShift ausnutzen, um einen Denial of Service Angriff durchzuführen oder um Sicherheitsmaßnahmen zu umgehen.\n\nRed Hat OpenShift ist eine \"Platform as a Service\" (PaaS) Lösung zur Bereitstellung von Applikationen in der Cloud.","severity":[{"type":"BSI","score":"mittel","source":"WID-SEC-W-2024-0812"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-0812.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-0812"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2024:1697"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2024:1700"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2024:1753"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2024:1752"}]},{"provider":"osv","source_id":"RHSA-2024:1752","relation":"upstream","url":"https://osv.dev/vulnerability/RHSA-2024:1752","license":"CC-BY-4.0","published_at":"2024-09-23T08:36:52Z","modified_at":"2026-11-13T18:01:52Z","summary":"Red Hat Security Advisory: GitOps 1.12.1- Argo CD CLI and MicroShift GitOps security update","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"RHSA-2024:1752"}],"affected":[{"ecosystem":"Red Hat:openshift_gitops:1.12::el8","package":"openshift-gitops-argocd-cli","purl":"pkg:rpm/redhat/openshift-gitops-argocd-cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-5.el8"}]}],"fixed":["0:1.12.1-5.el8"],"provider":"osv","source":"RHSA-2024:1752","relation":"upstream"},{"ecosystem":"Red Hat:openshift_gitops:1.12::el8","package":"openshift-gitops-argocd-cli-redistributable","purl":"pkg:rpm/redhat/openshift-gitops-argocd-cli-redistributable","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-5.el8"}]}],"fixed":["0:1.12.1-5.el8"],"provider":"osv","source":"RHSA-2024:1752","relation":"upstream"},{"ecosystem":"Red Hat:openshift_gitops:1.12::el9","package":"microshift-gitops","purl":"pkg:rpm/redhat/microshift-gitops","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-4.el9"}]}],"fixed":["0:1.12.1-4.el9"],"provider":"osv","source":"RHSA-2024:1752","relation":"upstream"},{"ecosystem":"Red Hat:openshift_gitops:1.12::el9","package":"microshift-gitops-release-info","purl":"pkg:rpm/redhat/microshift-gitops-release-info","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-4.el9"}]}],"fixed":["0:1.12.1-4.el9"],"provider":"osv","source":"RHSA-2024:1752","relation":"upstream"},{"ecosystem":"Red Hat:openshift_gitops:1.12::el9","package":"openshift-gitops-argocd-cli","purl":"pkg:rpm/redhat/openshift-gitops-argocd-cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-4.el9"}]}],"fixed":["0:1.12.1-4.el9"],"provider":"osv","source":"RHSA-2024:1752","relation":"upstream"},{"ecosystem":"Red Hat:openshift_gitops:1.12::el9","package":"openshift-gitops-argocd-cli-redistributable","purl":"pkg:rpm/redhat/openshift-gitops-argocd-cli-redistributable","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-4.el9"}]}],"fixed":["0:1.12.1-4.el9"],"provider":"osv","source":"RHSA-2024:1752","relation":"upstream"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1752"},{"type":"ARTICLE","url":"https://access.redhat.com/security/updates/classification/#important"},{"type":"ARTICLE","url":"https://docs.openshift.com/gitops/latest/understanding_openshift_gitops/about-redhat-openshift-gitops.html"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2269479"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2270170"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2270173"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2270182"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2272211"},{"type":"ADVISORY","url":"https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_1752.json"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2023-50726"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2023-50726"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-50726"},{"type":"ARTICLE","url":"https://argo-cd.readthedocs.io/en/latest/operator-manual/rbac"},{"type":"ARTICLE","url":"https://github.com/argoproj/argo-cd/commit/3b8f673f06c2d228e01cbc830e5cb57cef008978"},{"type":"ARTICLE","url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-g623-jcgg-mhmm"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2024-21652"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2024-21652"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21652"},{"type":"ARTICLE","url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-x32m-mvfj-52xv"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2024-21661"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2024-21661"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21661"},{"type":"ARTICLE","url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-6v85-wr92-q4p7"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2024-21662"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2024-21662"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21662"},{"type":"ARTICLE","url":"https://github.com/argoproj/argo-cd/commit/17b0df1168a4c535f6f37e95f25ed7cd81e1fa4d"},{"type":"ARTICLE","url":"https://github.com/argoproj/argo-cd/commit/6e181d72b31522f886a2afa029d5b26d7912ec7b"},{"type":"ARTICLE","url":"https://github.com/argoproj/argo-cd/commit/cebb6538f7944c87ca2fecb5d17f8baacc431456"},{"type":"ARTICLE","url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-2vgg-9h6w-m454"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2024-29893"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2024-29893"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-29893"},{"type":"ARTICLE","url":"https://github.com/argoproj/argo-cd/commit/14f681e3ee7c38731943b98f92277e88a3db109d"},{"type":"ARTICLE","url":"https://github.com/argoproj/argo-cd/commit/36b8a12a38f8d92d55bffc81deed44389bf6eb59"},{"type":"ARTICLE","url":"https://github.com/argoproj/argo-cd/commit/3e5a878f6e30d935fa149723ea2a2e93748fcddd"},{"type":"ARTICLE","url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-jhwx-mhww-rgc3"}]},{"provider":"cvelistv5","source_id":"CVE-2024-21661","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2024-21661","license":"CC-BY-4.0","published_at":"2024-03-18T18:32:24.871Z","modified_at":"2024-08-02T15:09:39.868Z","summary":"Argo CD Denial of Service (DoS) Vulnerability Due to Unsafe Array Modification in Multi-threaded Environment","details":"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 exploit a critical flaw in the application to initiate a Denial of Service (DoS) attack, rendering the application inoperable and affecting all users. The issue arises from unsafe manipulation of an array in a multi-threaded environment. The vulnerability is rooted in the application's code, where an array is being modified while it is being iterated over. This is a classic programming error but becomes critically unsafe when executed in a multi-threaded environment. When two threads interact with the same array simultaneously, the application crashes. This is a Denial of Service (DoS) vulnerability. Any attacker can crash the application continuously, making it impossible for legitimate users to access the service. The issue is exacerbated because it does not require authentication, widening the pool of potential attackers. Versions 2.8.13, 2.9.9, and 2.10.4 contain a patch for this issue.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2024-21661"}],"affected":[{"ecosystem":"CVE","package":"argoproj/argo-cd","versions":["< 2.8.13",">= 2.9.0, < 2.9.9",">= 2.10.0, < 2.10.4"],"provider":"cvelistv5","source":"CVE-2024-21661","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-6v85-wr92-q4p7"},{"type":"WEB","url":"https://github.com/argoproj/argo-cd/commit/2a22e19e06aaf6a1e734443043310a66c234e345"},{"type":"WEB","url":"https://github.com/argoproj/argo-cd/commit/5bbb51ab423f273dda74ab956469843d2db2e208"},{"type":"WEB","url":"https://github.com/argoproj/argo-cd/commit/ce04dc5c6f6e92033221ec6d96b74403b065ca8b"},{"type":"WEB","url":"https://github.com/argoproj/argo-cd/blob/54601c8fd30b86a4c4b7eb449956264372c8bde0/util/session/sessionmanager.go#L302-L311"}]},{"provider":"nvd","source_id":"CVE-2024-21661","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21661","severity":[],"affected":[{"ecosystem":"NVD","package":"argoproj:argo_cd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.13"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.9.0"},{"fixed":"2.9.9"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.10.0"},{"fixed":"2.10.4"}]}],"fixed":["2.8.13","2.9.9","2.10.4"],"provider":"nvd","source":"CVE-2024-21661","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"BIT-argo-cd-2024-21661","relation":"self","url":"https://osv.dev/vulnerability/BIT-argo-cd-2024-21661","license":"Apache-2.0","published_at":"2024-03-31T18:16:57.17Z","modified_at":"2026-09-08T08:45:48.121977Z","summary":"Argo CD Denial of Service (DoS) Vulnerability Due to Unsafe Array Modification in Multi-threaded Environment","details":"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 exploit a critical flaw in the application to initiate a Denial of Service (DoS) attack, rendering the application inoperable and affecting all users. The issue arises from unsafe manipulation of an array in a multi-threaded environment. The vulnerability is rooted in the application's code, where an array is being modified while it is being iterated over. This is a classic programming error but becomes critically unsafe when executed in a multi-threaded environment. When two threads interact with the same array simultaneously, the application crashes. This is a Denial of Service (DoS) vulnerability. Any attacker can crash the application continuously, making it impossible for legitimate users to access the service. The issue is exacerbated because it does not require authentication, widening the pool of potential attackers. Versions 2.8.13, 2.9.9, and 2.10.4 contain a patch for this issue.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"BIT-argo-cd-2024-21661"}],"affected":[{"ecosystem":"Bitnami","package":"argo-cd","purl":"pkg:bitnami/argo-cd","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.10.4"}]}],"fixed":["2.10.4"],"provider":"osv","source":"BIT-argo-cd-2024-21661","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/argoproj/argo-cd/blob/54601c8fd30b86a4c4b7eb449956264372c8bde0/util/session/sessionmanager.go#L302-L311"},{"type":"FIX","url":"https://github.com/argoproj/argo-cd/commit/2a22e19e06aaf6a1e734443043310a66c234e345"},{"type":"FIX","url":"https://github.com/argoproj/argo-cd/commit/5bbb51ab423f273dda74ab956469843d2db2e208"},{"type":"FIX","url":"https://github.com/argoproj/argo-cd/commit/ce04dc5c6f6e92033221ec6d96b74403b065ca8b"},{"type":"ADVISORY","url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-6v85-wr92-q4p7"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21661"}]},{"provider":"osv","source_id":"GHSA-6v85-wr92-q4p7","relation":"self","url":"https://osv.dev/vulnerability/GHSA-6v85-wr92-q4p7","license":"CC-BY-4.0","published_at":"2024-03-18T20:28:42Z","modified_at":"2026-09-10T03:50:10.222682Z","summary":"Denial of Service (DoS) Vulnerability Due to Unsafe Array Modification in Multi-threaded Environment","details":"### Summary\nAn attacker can exploit a critical flaw in the application to initiate a Denial of Service (DoS) attack, rendering the application inoperable and affecting all users. The issue arises from unsafe manipulation of an array in a multi-threaded environment.\n\n### Details\nThe vulnerability is rooted in the application's code, where an array is being modified while it is being iterated over. This is a classic programming error but becomes critically unsafe when executed in a multi-threaded environment. When two threads interact with the same array simultaneously, the application crashes.\n\nThe core issue is located in [expireOldFailedAttempts](https://github.com/argoproj/argo-cd/blob/54601c8fd30b86a4c4b7eb449956264372c8bde0/util/session/sessionmanager.go#L302-L311) function:\n```go\nfunc expireOldFailedAttempts(maxAge time.Duration, failures *map[string]LoginAttempts) int {\n\nexpiredCount := 0  \nfor key, attempt := range *failures {\n\nif time.Since(attempt.LastFailed) > maxAge*time.Second { expiredCount += 1  \ndelete(*failures, key) // Vulnerable code\n\n} }\n\nreturn expiredCount }\n```\n\nThe function modifies the array while iterating it which means the code will cause an error and crash the application pod, inspecting the logs just before the crash we can confirm:\n```go\ngoroutine 2032 [running]: github.com/argoproj/argo-cd/v2/util/session.expireOldFailedAttempts(0x12c, 0xc000adecd8)\n\n/go/src/github.com/argoproj/argo-cd/util/session/sessionmanager.go:304 +0x7c github.com/argoproj/argo-cd/v2/util/session.(*SessionManager).updateFailureCount(0xc00035 af50, {0xc001b1f578, 0x11}, 0x1)\n\n/go/src/github.com/argoproj/argo-cd/util/session/sessionmanager.go:320 +0x7f github.com/argoproj/argo-cd/v2/util/session.(*SessionManager).VerifyUsernamePassword(0xc 00035af50, {0xc001b1f578, 0x11}, {0xc000455148, 0x8})\n```\n### PoC\nTo reproduce the vulnerability, you can use the following steps:\n\n1. Launch the application.\n2. Trigger the code path that results in the `expireOldFailedAttempts()` function being called in multiple threads.\n3. In the attached PoC script we are restarting the server in a while loop, causing the application to be unresponsive at all.\n\n### Impact\nThis is a Denial of Service (DoS) vulnerability. Any attacker can crash the application continuously, making it impossible for legitimate users to access the service. The issue is exacerbated because it does not require authentication, widening the pool of potential attackers.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GHSA-6v85-wr92-q4p7"}],"affected":[{"ecosystem":"Go","package":"github.com/argoproj/argo-cd","purl":"pkg:golang/github.com/argoproj/argo-cd","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.8.7"}]}],"provider":"osv","source":"GHSA-6v85-wr92-q4p7","relation":"self"},{"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"2.10.0"},{"fixed":"2.10.4"}]}],"fixed":["2.10.4"],"provider":"osv","source":"GHSA-6v85-wr92-q4p7","relation":"self"},{"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.8.13"}]}],"fixed":["2.8.13"],"provider":"osv","source":"GHSA-6v85-wr92-q4p7","relation":"self"},{"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"2.9.0"},{"fixed":"2.9.9"}]}],"fixed":["2.9.9"],"provider":"osv","source":"GHSA-6v85-wr92-q4p7","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-6v85-wr92-q4p7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21661"},{"type":"WEB","url":"https://github.com/argoproj/argo-cd/commit/2a22e19e06aaf6a1e734443043310a66c234e345"},{"type":"WEB","url":"https://github.com/argoproj/argo-cd/commit/5bbb51ab423f273dda74ab956469843d2db2e208"},{"type":"WEB","url":"https://github.com/argoproj/argo-cd/commit/ce04dc5c6f6e92033221ec6d96b74403b065ca8b"},{"type":"PACKAGE","url":"https://github.com/argoproj/argo-cd"},{"type":"WEB","url":"https://github.com/argoproj/argo-cd/blob/54601c8fd30b86a4c4b7eb449956264372c8bde0/util/session/sessionmanager.go#L302-L311"}]},{"provider":"osv","source_id":"GO-2024-2654","relation":"self","url":"https://osv.dev/vulnerability/GO-2024-2654","license":"CC-BY-4.0","published_at":"2024-03-22T18:44:48Z","modified_at":"2024-05-20T16:03:47Z","summary":"Denial of service in github.com/argoproj/argo-cd/v2","details":"Application may crash due to concurrent writes, leading to a denial of service. An attacker can crash the application continuously, making it impossible for legitimate users to access the service. Authentication is not required in the attack.","severity":[],"affected":[{"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.8.13"},{"introduced":"2.9.0"},{"fixed":"2.9.9"},{"introduced":"2.10.0"},{"fixed":"2.10.4"}]}],"fixed":["2.8.13","2.9.9","2.10.4"],"provider":"osv","source":"GO-2024-2654","relation":"self"}],"product_status":[],"references":[{"type":"FIX","url":"https://github.com/argoproj/argo-cd/commit/2a22e19e06aaf6a1e734443043310a66c234e345"},{"type":"FIX","url":"https://github.com/argoproj/argo-cd/commit/5bbb51ab423f273dda74ab956469843d2db2e208"},{"type":"FIX","url":"https://github.com/argoproj/argo-cd/commit/ce04dc5c6f6e92033221ec6d96b74403b065ca8b"},{"type":"WEB","url":"https://github.com/argoproj/argo-cd/blob/54601c8fd30b86a4c4b7eb449956264372c8bde0/util/session/sessionmanager.go#L302-L311"}]},{"provider":"redhat-vex","source_id":"CVE-2024-21661","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2024-21661","license":"CC-BY-4.0","published_at":"2024-03-18T00:00:00Z","modified_at":"2026-03-20T14:51:52Z","summary":"argo-cd: Denial of Service Due to Unsafe Array Modification in Multi-threaded Environment","details":"A flaw was found in Argo CD that may result in a remote denial of service. The expireOldFailedAttempts function modifies an array while it is being iterated over. This issue may cause an application crash when executed in a multi-threaded environment if two threads interact with the same array simultaneously.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2024-21661"},{"type":"Red Hat","score":"Important","source":"CVE-2024-21661"}],"affected":[{"ecosystem":"Red Hat:openshift_gitops:1.12::el8","package":"openshift-gitops-argocd-cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-5.el8"}]}],"fixed":["0:1.12.1-5.el8"],"provider":"redhat-vex","source":"CVE-2024-21661","relation":"self"},{"ecosystem":"Red Hat:openshift_gitops:1.12::el9","package":"microshift-gitops","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-4.el9"}]}],"fixed":["0:1.12.1-4.el9"],"provider":"redhat-vex","source":"CVE-2024-21661","relation":"self"},{"ecosystem":"Red Hat:openshift_gitops:1.12::el9","package":"openshift-gitops-argocd-cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.12.1-4.el9"}]}],"fixed":["0:1.12.1-4.el9"],"provider":"redhat-vex","source":"CVE-2024-21661","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift GitOps 1.10","cpe":"cpe:/a:redhat:openshift_gitops:1.10::el8","status":"fixed","packages":["openshift-gitops-1/argo-rollouts-rhel8","openshift-gitops-1/argocd-rhel8","openshift-gitops-1/console-plugin-rhel8","openshift-gitops-1/dex-rhel8","openshift-gitops-1/gitops-operator-bundle","openshift-gitops-1/gitops-rhel8","openshift-gitops-1/gitops-rhel8-operator","openshift-gitops-1/kam-delivery-rhel8","openshift-gitops-1/must-gather-rhel8"],"package_count":9,"fixed":[],"advisories":["RHSA-2024:1700"],"provider":"redhat-vex","source":"CVE-2024-21661"},{"vendor":"Red Hat","product":"Red Hat OpenShift GitOps 1.11","cpe":"cpe:/a:redhat:openshift_gitops:1.11::el8","status":"fixed","packages":["openshift-gitops-1/argo-rollouts-rhel8","openshift-gitops-1/argocd-rhel8","openshift-gitops-1/console-plugin-rhel8","openshift-gitops-1/dex-rhel8","openshift-gitops-1/gitops-operator-bundle","openshift-gitops-1/gitops-rhel8","openshift-gitops-1/gitops-rhel8-operator","openshift-gitops-1/kam-delivery-rhel8","openshift-gitops-1/must-gather-rhel8"],"package_count":9,"fixed":[],"advisories":["RHSA-2024:1697"],"provider":"redhat-vex","source":"CVE-2024-21661"},{"vendor":"Red Hat","product":"Red Hat OpenShift GitOps 1.12","cpe":"cpe:/a:redhat:openshift_gitops:1.12::el8","status":"fixed","packages":["microshift-gitops","openshift-gitops-1/argo-rollouts-rhel8","openshift-gitops-1/argocd-rhel8","openshift-gitops-1/argocd-rhel9","openshift-gitops-1/console-plugin-rhel8","openshift-gitops-1/dex-rhel8","openshift-gitops-1/gitops-operator-bundle","openshift-gitops-1/gitops-rhel8","openshift-gitops-1/gitops-rhel8-operator","openshift-gitops-1/kam-delivery-rhel8","openshift-gitops-1/must-gather-rhel8","openshift-gitops-argocd-cli"],"package_count":12,"fixed":["microshift-gitops-1.12.1-4.el9","openshift-gitops-argocd-cli-1.12.1-4.el9","openshift-gitops-argocd-cli-1.12.1-5.el8"],"advisories":["RHSA-2024:1752","RHSA-2024:1753"],"provider":"redhat-vex","source":"CVE-2024-21661"},{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"affected","packages":["odf4/odr-rhel8-operator"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2024-21661"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-21661.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2024-21661"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2270173"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2024-21661"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21661"},{"type":"WEB","url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-6v85-wr92-q4p7"}]}],"references":[{"type":"WEB","url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-6v85-wr92-q4p7"},{"type":"WEB","url":"https://github.com/argoproj/argo-cd/commit/2a22e19e06aaf6a1e734443043310a66c234e345"},{"type":"WEB","url":"https://github.com/argoproj/argo-cd/commit/5bbb51ab423f273dda74ab956469843d2db2e208"},{"type":"WEB","url":"https://github.com/argoproj/argo-cd/commit/ce04dc5c6f6e92033221ec6d96b74403b065ca8b"},{"type":"WEB","url":"https://github.com/argoproj/argo-cd/blob/54601c8fd30b86a4c4b7eb449956264372c8bde0/util/session/sessionmanager.go#L302-L311"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21661"},{"type":"PACKAGE","url":"https://github.com/argoproj/argo-cd"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-21661.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2024-21661"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2270173"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2024-21661"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2024-0812","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-0812","license":"TLP:CLEAR, mirroring permitted","modified_at":"2024-04-10T22:00:00Z","relation":"upstream"},{"provider":"osv","source_id":"RHSA-2024:1752","url":"https://osv.dev/vulnerability/RHSA-2024:1752","license":"CC-BY-4.0","modified_at":"2026-11-13T18:01:52Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2024-21661","url":"https://www.cve.org/CVERecord?id=CVE-2024-21661","license":"CC-BY-4.0","modified_at":"2024-08-02T15:09:39.868Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2024-21661","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21661","relation":"self"},{"provider":"osv","source_id":"BIT-argo-cd-2024-21661","url":"https://osv.dev/vulnerability/BIT-argo-cd-2024-21661","license":"Apache-2.0","modified_at":"2026-09-08T08:45:48.121977Z","relation":"self"},{"provider":"osv","source_id":"GHSA-6v85-wr92-q4p7","url":"https://osv.dev/vulnerability/GHSA-6v85-wr92-q4p7","license":"CC-BY-4.0","modified_at":"2026-09-10T03:50:10.222682Z","relation":"self"},{"provider":"osv","source_id":"GO-2024-2654","url":"https://osv.dev/vulnerability/GO-2024-2654","license":"CC-BY-4.0","modified_at":"2024-05-20T16:03:47Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2024-21661","url":"https://access.redhat.com/security/cve/CVE-2024-21661","license":"CC-BY-4.0","modified_at":"2026-03-20T14:51:52Z","relation":"self"}]}
