Loading advisory.
Loading advisory.
Argo Affected by SSO RBAC Delegation Nil Pointer Dereference DoS (gatekeeper.go)
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.
Published 2026-05-04 20:01 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| github.com/argoproj/argo-workflows/v4 | Go | >= 4.0.0, < 4.0.5 | 4.0.5 | go get github.com/argoproj/argo-workflows/v4@v4.0.5 |
| github.com/argoproj/argo-workflows | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/argoproj/argo-workflows/v2 | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/argoproj/argo-workflows/v3 | Go | all versions | No patch yet | No command until a fix exists. |
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.
When 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.
Affected code (v4.0.4):
// gatekeeper.go:304
} else if precedence(namespaceAccount) > precedence(loginAccount) {
// loginAccount is nil here -> precedence(nil) -> PANIC
// gatekeeper.go:232-234
func precedence(serviceAccount *corev1.ServiceAccount) int {
i, _ := strconv.Atoi(serviceAccount.Annotations[common.AnnotationKeyRBACRulePrecedence])
return i
}Live-tested 2026-04-17: kind cluster, Argo Workflows v4.0.4, Dex v2.43.1 OIDC provider.
Deploy Argo Workflows with --auth-mode=sso --auth-mode=client, SSO pointing to Dex, RBAC enabled.
Set SSO_DELEGATE_RBAC_TO_NAMESPACE=true on the argo-server deployment.
Create an RBAC ServiceAccount with workflows.argoproj.io/rbac-rule: "true" annotation in a target namespace (e.g., target-ns).
Do not create a matching RBAC rule in the SSO namespace (argo).
Authenticate via the Dex SSO flow.
Request GET /api/v1/workflows/target-ns with the SSO session cookie.
Server returns HTTP 500: {"code":13,"message":"runtime error: invalid memory address or nil pointer dereference"}
Server logs: Recovered from panic with stack trace at gatekeeper.go:233 (precedence()) called from gatekeeper.go:304.
Every subsequent API request from affected SSO users triggers the same panic.
Permanent 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.
Add nil check: if loginAccount == nil || precedence(namespaceAccount) > precedence(loginAccount)
This advisory was prepared with AI assistance (Claude Code, Anthropic).
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.004 on 2026-11-24 to 0.006 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.004 | first score | v2026.06.15 |
| 2026-11-26 | 0.006 | 0.004 | v2026.06.15 |