Summary
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.
Details
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
}
PoC
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=trueon 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-nswith the SSO session cookie. - Server returns HTTP 500:
{"code":13,"message":"runtime error: invalid memory address or nil pointer dereference"} - Server logs:
Recovered from panicwith stack trace atgatekeeper.go:233(precedence()) called fromgatekeeper.go:304.
Every subsequent API request from affected SSO users triggers the same panic.
AI Disclosure
This advisory was prepared with AI assistance (Claude Code, Anthropic).
Impact
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.
The application dereferences a null pointer, causing a crash. Typical impact: denial of service via crash.
Affected versions
Security releases
Kodem intelligence
Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.
Remediation advice
Add nil check: if loginAccount == nil || precedence(namespaceAccount) > precedence(loginAccount)
Frequently Asked Questions
- What is CVE-2026-42183? CVE-2026-42183 is a low-severity null pointer dereference vulnerability in github.com/argoproj/argo-workflows/v4 (go), affecting versions >= 4.0.0, <= 4.0.4. It is fixed in 4.0.5. The application dereferences a null pointer, causing a crash.
- Which versions of github.com/argoproj/argo-workflows/v4 are affected by CVE-2026-42183? github.com/argoproj/argo-workflows/v4 (go) versions >= 4.0.0, <= 4.0.4 is affected.
- Is there a fix for CVE-2026-42183? Yes. CVE-2026-42183 is fixed in 4.0.5. Upgrade to this version or later.
- Is CVE-2026-42183 exploitable, and should I be worried? Whether CVE-2026-42183 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
- What actually determines whether CVE-2026-42183 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
- How do I fix CVE-2026-42183? Upgrade
github.com/argoproj/argo-workflows/v4to 4.0.5 or later.