{"id":"CVE-2026-42183","aliases":["CVE-2026-42183","GHSA-p4gq-3vxj-f4jq","BIT-ARGO-WORKFLOWS-2026-42183","GO-2026-5527"],"related":["CGA-cxfq-6r4q-6rf3"],"kind":"vulnerability","state":"published","title":"Argo Workflows: SSO RBAC Delegation Nil Pointer Dereference DoS (gatekeeper.go)","summary":"Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. From version 4.0.0 to before version 4.0.5, a nil pointer dereference in server/auth/gatekeeper.go rbacAuthorization() causes a panic (denial of service) for SSO users whose claims match a namespace-level RBAC rule but not an SSO-namespace rule, when SSO_DELEGATE_RBAC_TO_NAMESPACE=true. This issue has been patched in version 4.0.5.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. From version 4.0.0 to before version 4.0.5, a nil pointer dereference in server/auth/gatekeeper.go rbacAuthorization() causes a panic (denial of service) for SSO users whose claims match a namespace-level RBAC rule but not an SSO-namespace rule, when SSO_DELEGATE_RBAC_TO_NAMESPACE=true. This issue has been patched in version 4.0.5.","source":"cvelist"},{"lang":"en","text":"### Summary\nA nil pointer dereference in `server/auth/gatekeeper.go` `rbacAuthorization()` causes a panic (denial of service) for SSO users whose claims match a namespace-level RBAC rule but not an SSO-namespace rule, when `SSO_DELEGATE_RBAC_TO_NAMESPACE=true`.\n\n### Details\nWhen `getServiceAccount(claims, ssoNamespace)` returns nil (no matching rule), the error is suppressed and `loginAccount` remains nil. If RBAC delegation finds a matching `namespaceAccount`, line 304 calls `precedence(loginAccount)` which unconditionally accesses `serviceAccount.Annotations` — nil pointer dereference.\n\n**Affected code (v4.0.4):**\n\n```go\n// gatekeeper.go:304\n} else if precedence(namespaceAccount) > precedence(loginAccount) {\n    // loginAccount is nil here -> precedence(nil) -> PANIC\n\n// gatekeeper.go:232-234\nfunc precedence(serviceAccount *corev1.ServiceAccount) int {\n    i, _ := strconv.Atoi(serviceAccount.Annotations[common.AnnotationKeyRBACRulePrecedence])\n    return i\n}\n```\n\n### PoC\n**Live-tested 2026-04-17:** kind cluster, Argo Workflows v4.0.4, Dex v2.43.1 OIDC provider.\n\n1. Deploy Argo Workflows with `--auth-mode=sso --auth-mode=client`, SSO pointing to Dex, RBAC enabled.\n2. Set `SSO_DELEGATE_RBAC_TO_NAMESPACE=true` on the argo-server deployment.\n3. Create an RBAC ServiceAccount with `workflows.argoproj.io/rbac-rule: \"true\"` annotation in a target namespace (e.g., `target-ns`).\n4. Do **not** create a matching RBAC rule in the SSO namespace (`argo`).\n5. Authenticate via the Dex SSO flow.\n6. Request `GET /api/v1/workflows/target-ns` with the SSO session cookie.\n7. Server returns HTTP 500: `{\"code\":13,\"message\":\"runtime error: invalid memory address or nil pointer dereference\"}`\n8. Server logs: `Recovered from panic` with stack trace at `gatekeeper.go:233` (`precedence()`) called from `gatekeeper.go:304`.\n\nEvery subsequent API request from affected SSO users triggers the same panic.\n\n### Impact\nPermanent denial of service for any SSO user whose claims don't match SSO-namespace RBAC but do match a target namespace rule. Realistic in multi-tenant deployments with per-namespace RBAC. The gRPC recovery interceptor catches the panic so the server process survives, but the affected user gets HTTP 500 on every request.\n\n### Suggested Fix\nAdd nil check: `if loginAccount == nil || precedence(namespaceAccount) > precedence(loginAccount)`\n\n### AI Disclosure\nThis advisory was prepared with AI assistance (Claude Code, Anthropic).","format":"markdown","source":"ghsa"},{"lang":"en","text":"Argo Affected by SSO RBAC Delegation Nil Pointer Dereference DoS (gatekeeper.go) in github.com/argoproj/argo-workflows","format":"markdown","source":"go"},{"lang":"es","text":"Argo Workflows es un motor de flujo de trabajo de código abierto nativo de contenedores para orquestar trabajos paralelos en Kubernetes. Desde la versión 4.0.0 hasta antes de la versión 4.0.5, una desreferencia de puntero nulo en server/auth/gatekeeper.go rbacAuthorization() causa un pánico (denegación de servicio) para usuarios de SSO cuyas reclamaciones coinciden con una regla RBAC a nivel de espacio de nombres pero no con una regla de espacio de nombres de SSO, cuando SSO_DELEGATE_RBAC_TO_NAMESPACE=true. Este problema ha sido parcheado en la versión 4.0.5.","source":"nvd"}],"published":"2026-05-04T20:01:13.000Z","modified":"2026-09-10T16:01:08.928Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":2.3,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":2.3,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"version":">= 4.0.0, < 4.0.5","status":"affected"}],"vendor":"argoproj","product":"argo-workflows","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.0.5"}],"ecosystem":"Go","package":"github.com/argoproj/argo-workflows/v4","purl":"pkg:golang/github.com/argoproj/argo-workflows/v4","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/argoproj/argo-workflows","purl":"pkg:golang/github.com/argoproj/argo-workflows","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/argoproj/argo-workflows/v2","purl":"pkg:golang/github.com/argoproj/argo-workflows/v2","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/argoproj/argo-workflows/v3","purl":"pkg:golang/github.com/argoproj/argo-workflows/v3","source":"go"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.0.5"}],"ecosystem":"Go","package":"github.com/argoproj/argo-workflows/v4","purl":"pkg:golang/github.com/argoproj/argo-workflows/v4","source":"go"},{"ranges":[{"status":"affected","introduced":"4.0.0","fixed":"4.0.5"}],"vendor":"argoproj","product":"argo_workflows","cpe":"cpe:2.3:a:argoproj:argo_workflows:*:*:*:*:*:go:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.0.5"}],"ecosystem":"Bitnami","package":"argo-workflows","purl":"pkg:bitnami/argo-workflows","source":"bitnami"}],"references":[{"url":"https://github.com/argoproj/argo-workflows/security/advisories/GHSA-p4gq-3vxj-f4jq","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/argoproj/argo-workflows/commit/c4cc17d0c034fa9a9cc01ef1af6c8016c93071d4","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/argoproj/argo-workflows/releases/tag/v4.0.5","tags":["article","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42183","tags":["advisory","web"],"sources":["ghsa","go","bitnami"]},{"url":"https://github.com/argoproj/argo-workflows","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-13T17:25:40.856Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42183","url":"https://www.cve.org/CVERecord?id=CVE-2026-42183","licence":"CVE Terms of Use","modified":"2026-05-13T17:46:04.800Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p4gq-3vxj-f4jq","url":"https://github.com/advisories/GHSA-p4gq-3vxj-f4jq","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:47.112Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5527","url":"https://pkg.go.dev/vuln/GO-2026-5527","licence":"CC-BY-4.0","modified":"2026-07-02T14:44:23.939Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42183","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42183","licence":"Public domain","modified":"2026-07-24T21:10:00.143Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-ARGO-WORKFLOWS-2026-42183","url":"https://osv.dev/vulnerability/BIT-ARGO-WORKFLOWS-2026-42183","licence":"Apache-2.0","modified":"2026-09-10T16:01:08.928Z"}],"updatedAt":"2026-11-25T22:59:21.134Z","epss":{"score":0.00377,"percentile":0.33742,"date":"2026-12-01T12:00:22.000Z"}}