{"id":"CVE-2024-52814","aliases":["GHSA-h974-w8pg-cx73"],"summary":"Helm Lacks Granularity in Workflow Role","published_at":"2024-11-22T15:21:32Z","modified_at":"2024-11-23T03:39:22Z","products":[{"slug":"argo-cd","name":"Argo CD","category":"gitops-cicd"}],"rating":{"severity":"low","score":2.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N","attack_path":"local","user_interaction":true,"malicious":false},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0017800000496208668,"percentile":0.07551000267267227,"date":"2026-11-20T00:00:00Z"},"priority":1.8,"record_count":2,"vendors":["GitHub"],"details":"Argo Helm is a collection of community maintained charts for `argoproj.github.io` projects. Prior to version 0.45.0, the `workflow-role`) lacks granularity in its privileges, giving permissions to `workflowtasksets` and `workflowartifactgctasks` to all workflow Pods, when only certain types of Pods created by the Controller require these privileges. The impact is minimal, as an attack could only affect status reporting for certain types of Pods and templates. Version 0.45.0 fixes the issue.","affected_stack":[{"ecosystem":"GitHub","package":"argoproj/argo-helm/https://argoproj.github.io/argo-helm/argo-workflows","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.45.0"}]}],"fixed":["0.45.0"],"provider":"github-repo-advisories","source":"GHSA-h974-w8pg-cx73","relation":"self"}],"affected_other":[{"ecosystem":"CVE","package":"argoproj/argo-helm","versions":["< 0.45.0"],"provider":"cvelistv5","source":"CVE-2024-52814","relation":"self"}],"product_status":[],"records":[{"provider":"cvelistv5","source_id":"CVE-2024-52814","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2024-52814","license":"CC-BY-4.0","published_at":"2024-11-22T15:53:06.238Z","modified_at":"2024-11-22T17:25:26.112Z","summary":"Helm Lacks Granularity in Workflow Role","details":"Argo Helm is a collection of community maintained charts for `argoproj.github.io` projects. Prior to version 0.45.0, the `workflow-role`) lacks granularity in its privileges, giving permissions to `workflowtasksets` and `workflowartifactgctasks` to all workflow Pods, when only certain types of Pods created by the Controller require these privileges. The impact is minimal, as an attack could only affect status reporting for certain types of Pods and templates. Version 0.45.0 fixes the issue.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N","source":"CVE-2024-52814"}],"affected":[{"ecosystem":"CVE","package":"argoproj/argo-helm","versions":["< 0.45.0"],"provider":"cvelistv5","source":"CVE-2024-52814","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/argoproj/argo-helm/security/advisories/GHSA-h974-w8pg-cx73"},{"type":"WEB","url":"https://github.com/argoproj/argo-helm/blob/2653aef414ab6a5d8617af75f04190a8f7da28dc/charts/argo-workflows/templates/controller/workflow-role.yaml"},{"type":"WEB","url":"https://github.com/argoproj/argo-helm/blob/2653aef414ab6a5d8617af75f04190a8f7da28dc/charts/argo-workflows/templates/controller/workflow-role.yaml#L45-L56"},{"type":"WEB","url":"https://github.com/argoproj/argo-workflows/blob/5aac5a8f61f4e8273d04509dffe7d80123ff67f5/manifests/quick-start/base/agent-role.yaml"},{"type":"WEB","url":"https://github.com/argoproj/argo-workflows/blob/5aac5a8f61f4e8273d04509dffe7d80123ff67f5/manifests/quick-start/base/artifactgc-role.yaml"}]},{"provider":"github-repo-advisories","source_id":"GHSA-h974-w8pg-cx73","relation":"self","url":"https://github.com/argoproj/argo-helm/security/advisories/GHSA-h974-w8pg-cx73","license":"GitHub Terms of Service","published_at":"2024-11-22T15:21:32Z","modified_at":"2024-11-23T03:39:22Z","summary":"Workflows: Lack of Granularity in Workflow Role","details":"> [!IMPORTANT]\r\n>  This only affects the Helm Chart and not the upstream manifests\r\n\r\n### Summary\r\n\r\nThe [`workflow-role`](https://github.com/argoproj/argo-helm/blob/2653aef414ab6a5d8617af75f04190a8f7da28dc/charts/argo-workflows/templates/controller/workflow-role.yaml) lacks granularity in its privileges, giving permissions to `workflowtasksets` and `workflowartifactgctasks` to all workflow Pods, when only certain types of Pods created by the Controller require these privileges.\r\n\r\nThe impact is minimal, as an attack could only affect status reporting for certain types of Pods and templates.\r\n\r\nThis was resolved by https://github.com/argoproj/argo-helm/pull/3048\r\n\r\n### Details\r\n\r\n[Two sets](https://github.com/argoproj/argo-helm/blob/2653aef414ab6a5d8617af75f04190a8f7da28dc/charts/argo-workflows/templates/controller/workflow-role.yaml#L45-L56) of permissions are only needed for certain types of Pods created by the Controller:\r\n\r\n#### `workflowtasksets` and `workflowartifactgctasks`\r\n\r\n- Only the Agent, which currently only runs for HTTP and Plugin Templates, [uses `workflowtasksets`](https://github.com/argoproj/argo-workflows/blob/5aac5a8f61f4e8273d04509dffe7d80123ff67f5/manifests/quick-start/base/agent-role.yaml)\r\n- Only ArtifactGC Pods, which can be optionally run to garbage collect artifacts, [use `workflowartifactgctasks`](https://github.com/argoproj/argo-workflows/blob/5aac5a8f61f4e8273d04509dffe7d80123ff67f5/manifests/quick-start/base/artifactgc-role.yaml)\r\n\r\nThese two should ideally be split into their own roles, as they are upstream. This requires a UX change to the Charts, however.\r\n\r\n### Impact\r\n\r\nThe impact of these two is quite minimal, as they only affect status reporting and only for ArtifactGC Pods and HTTP and Plugin templates. So that would only have a mild integrity impact, and that impact already exists upstream for properly privileged roles as well, which is more a limitation of k8s RBAC (in practice, it is effectively impossible to limit to `resourceNames` in this case as they are generated, dynamic names, and then each generated Pod would need custom `resourceNames`, i.e. dynamically generated RBAC).","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N","source":"GHSA-h974-w8pg-cx73"}],"affected":[{"ecosystem":"GitHub","package":"argoproj/argo-helm/https://argoproj.github.io/argo-helm/argo-workflows","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.45.0"}]}],"fixed":["0.45.0"],"provider":"github-repo-advisories","source":"GHSA-h974-w8pg-cx73","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/argoproj/argo-helm/security/advisories/GHSA-h974-w8pg-cx73"}]}],"references":[{"type":"WEB","url":"https://github.com/argoproj/argo-helm/security/advisories/GHSA-h974-w8pg-cx73"},{"type":"WEB","url":"https://github.com/argoproj/argo-helm/blob/2653aef414ab6a5d8617af75f04190a8f7da28dc/charts/argo-workflows/templates/controller/workflow-role.yaml"},{"type":"WEB","url":"https://github.com/argoproj/argo-helm/blob/2653aef414ab6a5d8617af75f04190a8f7da28dc/charts/argo-workflows/templates/controller/workflow-role.yaml#L45-L56"},{"type":"WEB","url":"https://github.com/argoproj/argo-workflows/blob/5aac5a8f61f4e8273d04509dffe7d80123ff67f5/manifests/quick-start/base/agent-role.yaml"},{"type":"WEB","url":"https://github.com/argoproj/argo-workflows/blob/5aac5a8f61f4e8273d04509dffe7d80123ff67f5/manifests/quick-start/base/artifactgc-role.yaml"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2024-52814","url":"https://www.cve.org/CVERecord?id=CVE-2024-52814","license":"CC-BY-4.0","modified_at":"2024-11-22T17:25:26.112Z","relation":"self"},{"provider":"github-repo-advisories","source_id":"GHSA-h974-w8pg-cx73","url":"https://github.com/argoproj/argo-helm/security/advisories/GHSA-h974-w8pg-cx73","license":"GitHub Terms of Service","modified_at":"2024-11-23T03:39:22Z","relation":"self"}]}
