{"id":"GHSA-m3m4-54f5-4wj2","aliases":[],"summary":"Server: Archived Workflow names are enumerable via `GET`, `DELETE`, resubmit, and retry","published_at":"2026-09-18T08:13:50Z","modified_at":"2026-09-18T08:13:50Z","products":[{"slug":"argo-workflows","name":"Argo Workflows / Rollouts / Events","category":"kubernetes-container"}],"rating":{"severity":"medium","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","attack_path":"internet_authenticated","user_interaction":false,"malicious":false},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"priority":5.3,"record_count":1,"vendors":["GitHub"],"details":"### Summary\r\n\r\nThe `GET` method for individual archived workflows will [return a 404](https://github.com/argoproj/argo-workflows/blob/ed3b8ce778c23e3b3c0d54f87f790e966b15fdb3/server/workflowarchive/archived_workflow_server.go#L108) if a Workflow is not found with no authorization. Authorization is only performed a few lines down, after verifying that the Workflow exists. So existing Workflows will return a 403 (`PermissionDenied`), while non-existent ones return a 404.\r\n\r\nThis difference allows an attacker to enumerate all Workflows by name, even if they do not have RBAC to `get` those.\r\n\r\n### Details\r\n\r\nThe [404 return](https://github.com/argoproj/argo-workflows/blob/ed3b8ce778c23e3b3c0d54f87f790e966b15fdb3/server/workflowarchive/archived_workflow_server.go#L108) in the `GET` method should occur _after_ authorization. i.e. the [`kubectl auth can-i` check](https://github.com/argoproj/argo-workflows/blob/ed3b8ce778c23e3b3c0d54f87f790e966b15fdb3/server/workflowarchive/archived_workflow_server.go#L110) should occur first.\r\n\r\n- This also impacts `DELETE` as it calls `GetArchivedWorkflow` and returns [the original error](https://github.com/argoproj/argo-workflows/blob/ed3b8ce778c23e3b3c0d54f87f790e966b15fdb3/server/workflowarchive/archived_workflow_server.go#L123) wrapped in a 500\r\n- Same with [Resubmit](https://github.com/argoproj/argo-workflows/blob/ed3b8ce778c23e3b3c0d54f87f790e966b15fdb3/server/workflowarchive/archived_workflow_server.go#L196) and [Retry](https://github.com/argoproj/argo-workflows/blob/ed3b8ce778c23e3b3c0d54f87f790e966b15fdb3/server/workflowarchive/archived_workflow_server.go#L217)\r\n\r\nThis dates back to https://github.com/argoproj/argo-workflows/pull/1882 / v2.5.0-rc1; this has existed as long as the Server has existed.\r\n\r\n### PoC\r\nUsing a token that has no RBAC on Workflows in namespace `other-ns`, request an archived Workflow by name through the resubmit endpoint. The `uid` path segment is ignored when `name` is set in the body; the same applies to `retry`, and to `GET` and `DELETE` when called over gRPC with `name` and `namespace`.\r\n\r\n```sh\r\ncurl -s -o /dev/null -w '%{http_code}\\n' -X PUT \"https://localhost:2746/api/v1/archived-workflows/x/resubmit\" \\\r\n  -H \"Authorization: $ARGO_TOKEN\" -d '{\"namespace\":\"other-ns\",\"name\":\"does-not-exist\"}'\r\n# 404\r\ncurl -s -o /dev/null -w '%{http_code}\\n' -X PUT \"https://localhost:2746/api/v1/archived-workflows/x/resubmit\" \\\r\n  -H \"Authorization: $ARGO_TOKEN\" -d '{\"namespace\":\"other-ns\",\"name\":\"real-workflow-name\"}'\r\n# 403\r\n```\r\n\r\nThe 404 is returned before any authorization check, so the difference reveals whether `real-workflow-name` exists in the archive.\r\n\r\n### Patches\r\n\r\nFixed in v4.1.4 and v4.0.12. `GetArchivedWorkflow` now performs the `get` authorization check before answering, using the requested namespace and name when no Workflow was found, so a caller without permission receives `permission denied` whether or not the Workflow exists. `DELETE`, resubmit and retry call `GetArchivedWorkflow` and inherit the fix.\r\n\r\nv3 is not being patched. Users on v3 should upgrade.\r\n\r\n### Workarounds\r\n\r\nNone beyond restricting who can reach the Server.\r\n\r\n### Impact\r\n\r\nThis allows an attacker to enumerate all Workflows by name.\r\nThis is potentially useful information, especially if the names have semantic significance. Otherwise, this is a low impact information disclosure as the name on its own is often not very useful.","affected_stack":[{"ecosystem":"Go","package":"github.com/argoproj/argo-workflows/v3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"}]}],"provider":"github-repo-advisories","source":"GHSA-m3m4-54f5-4wj2","relation":"self"},{"ecosystem":"Go","package":"github.com/argoproj/argo-workflows/v4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.1.0"},{"fixed":"4.1.4"}]}],"fixed":["4.1.4"],"provider":"github-repo-advisories","source":"GHSA-m3m4-54f5-4wj2","relation":"self"},{"ecosystem":"Go","package":"github.com/argoproj/argo-workflows/v4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.0.12"}]}],"fixed":["4.0.12"],"provider":"github-repo-advisories","source":"GHSA-m3m4-54f5-4wj2","relation":"self"}],"affected_other":[],"product_status":[],"records":[{"provider":"github-repo-advisories","source_id":"GHSA-m3m4-54f5-4wj2","relation":"self","url":"https://github.com/argoproj/argo-workflows/security/advisories/GHSA-m3m4-54f5-4wj2","license":"GitHub Terms of Service","published_at":"2026-09-18T08:13:50Z","modified_at":"2026-09-18T08:13:50Z","summary":"Server: Archived Workflow names are enumerable via `GET`, `DELETE`, resubmit, and retry","details":"### Summary\r\n\r\nThe `GET` method for individual archived workflows will [return a 404](https://github.com/argoproj/argo-workflows/blob/ed3b8ce778c23e3b3c0d54f87f790e966b15fdb3/server/workflowarchive/archived_workflow_server.go#L108) if a Workflow is not found with no authorization. Authorization is only performed a few lines down, after verifying that the Workflow exists. So existing Workflows will return a 403 (`PermissionDenied`), while non-existent ones return a 404.\r\n\r\nThis difference allows an attacker to enumerate all Workflows by name, even if they do not have RBAC to `get` those.\r\n\r\n### Details\r\n\r\nThe [404 return](https://github.com/argoproj/argo-workflows/blob/ed3b8ce778c23e3b3c0d54f87f790e966b15fdb3/server/workflowarchive/archived_workflow_server.go#L108) in the `GET` method should occur _after_ authorization. i.e. the [`kubectl auth can-i` check](https://github.com/argoproj/argo-workflows/blob/ed3b8ce778c23e3b3c0d54f87f790e966b15fdb3/server/workflowarchive/archived_workflow_server.go#L110) should occur first.\r\n\r\n- This also impacts `DELETE` as it calls `GetArchivedWorkflow` and returns [the original error](https://github.com/argoproj/argo-workflows/blob/ed3b8ce778c23e3b3c0d54f87f790e966b15fdb3/server/workflowarchive/archived_workflow_server.go#L123) wrapped in a 500\r\n- Same with [Resubmit](https://github.com/argoproj/argo-workflows/blob/ed3b8ce778c23e3b3c0d54f87f790e966b15fdb3/server/workflowarchive/archived_workflow_server.go#L196) and [Retry](https://github.com/argoproj/argo-workflows/blob/ed3b8ce778c23e3b3c0d54f87f790e966b15fdb3/server/workflowarchive/archived_workflow_server.go#L217)\r\n\r\nThis dates back to https://github.com/argoproj/argo-workflows/pull/1882 / v2.5.0-rc1; this has existed as long as the Server has existed.\r\n\r\n### PoC\r\nUsing a token that has no RBAC on Workflows in namespace `other-ns`, request an archived Workflow by name through the resubmit endpoint. The `uid` path segment is ignored when `name` is set in the body; the same applies to `retry`, and to `GET` and `DELETE` when called over gRPC with `name` and `namespace`.\r\n\r\n```sh\r\ncurl -s -o /dev/null -w '%{http_code}\\n' -X PUT \"https://localhost:2746/api/v1/archived-workflows/x/resubmit\" \\\r\n  -H \"Authorization: $ARGO_TOKEN\" -d '{\"namespace\":\"other-ns\",\"name\":\"does-not-exist\"}'\r\n# 404\r\ncurl -s -o /dev/null -w '%{http_code}\\n' -X PUT \"https://localhost:2746/api/v1/archived-workflows/x/resubmit\" \\\r\n  -H \"Authorization: $ARGO_TOKEN\" -d '{\"namespace\":\"other-ns\",\"name\":\"real-workflow-name\"}'\r\n# 403\r\n```\r\n\r\nThe 404 is returned before any authorization check, so the difference reveals whether `real-workflow-name` exists in the archive.\r\n\r\n### Patches\r\n\r\nFixed in v4.1.4 and v4.0.12. `GetArchivedWorkflow` now performs the `get` authorization check before answering, using the requested namespace and name when no Workflow was found, so a caller without permission receives `permission denied` whether or not the Workflow exists. `DELETE`, resubmit and retry call `GetArchivedWorkflow` and inherit the fix.\r\n\r\nv3 is not being patched. Users on v3 should upgrade.\r\n\r\n### Workarounds\r\n\r\nNone beyond restricting who can reach the Server.\r\n\r\n### Impact\r\n\r\nThis allows an attacker to enumerate all Workflows by name.\r\nThis is potentially useful information, especially if the names have semantic significance. Otherwise, this is a low impact information disclosure as the name on its own is often not very useful.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"GHSA-m3m4-54f5-4wj2"}],"affected":[{"ecosystem":"Go","package":"github.com/argoproj/argo-workflows/v3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"}]}],"provider":"github-repo-advisories","source":"GHSA-m3m4-54f5-4wj2","relation":"self"},{"ecosystem":"Go","package":"github.com/argoproj/argo-workflows/v4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.1.0"},{"fixed":"4.1.4"}]}],"fixed":["4.1.4"],"provider":"github-repo-advisories","source":"GHSA-m3m4-54f5-4wj2","relation":"self"},{"ecosystem":"Go","package":"github.com/argoproj/argo-workflows/v4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.0.12"}]}],"fixed":["4.0.12"],"provider":"github-repo-advisories","source":"GHSA-m3m4-54f5-4wj2","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/argoproj/argo-workflows/security/advisories/GHSA-m3m4-54f5-4wj2"}]}],"references":[{"type":"ADVISORY","url":"https://github.com/argoproj/argo-workflows/security/advisories/GHSA-m3m4-54f5-4wj2"}],"sources":[{"provider":"github-repo-advisories","source_id":"GHSA-m3m4-54f5-4wj2","url":"https://github.com/argoproj/argo-workflows/security/advisories/GHSA-m3m4-54f5-4wj2","license":"GitHub Terms of Service","modified_at":"2026-09-18T08:13:50Z","relation":"self"}]}
