Argo Workflows CVE-2026-42183
LOWAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate via SSO OIDC provider
-
DeliveryObtain session cookie with identity claims
-
ExploitSend API request to delegated namespace
-
InstallMatch namespace RBAC rule
-
C2No match in SSO namespace
-
ExecuteloginAccount remains nil
-
ImpactCall precedence(nil)
-
Step 8Nil pointer dereference panic
-
Step 9HTTP 500 returned
-
Step 10User denied service on all subsequent requests
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires all of the following conditions: (1) Argo Workflows 4.0.0-4.0.4 deployed with --auth-mode=sso (OIDC authentication enabled). (2) SSO_DELEGATE_RBAC_TO_NAMESPACE=true set on the argo-server deployment (not the default). (3) At least one Kubernetes ServiceAccount with the workflows.argoproj.io/rbac-rule annotation exists in a target namespace (not the SSO namespace). (4) An SSO user's identity claims (e.g., OIDC groups) match the RBAC rule annotation in the target namespace but do NOT match any RBAC rule ServiceAccount in the SSO namespace. (5) The affected user authenticates via SSO and makes an API request to a resource in the target namespace. Without all five conditions, the null pointer dereference is not triggered. Organizations using the default configuration (SSO_DELEGATE_RBAC_TO_NAMESPACE=false or unset) or not using SSO at all are not vulnerable. |
| Impact | Real-world risk is moderate to high in multi-tenant Kubernetes deployments with SSO enabled and RBAC namespace delegation active. CVSS vector is not provided in the input; however, the attack vector is network-based (SSO session cookie required over HTTP/gRPC), requires prior authentication (SSO login), and is not complex to trigger (specific RBAC configuration but straightforward to exploit once configuration exists). The impact is denial of service limited to individual SSO users whose claims match the specific RBAC configuration gap-not a cluster-wide or authentication bypass issue. No EPSS score or KEV status provided; however, the proof of concept is fully detailed and live-tested, indicating the vulnerability is trivially reproducible in matching environments. The patch is already available (v4.0.5), which significantly reduces forward-looking risk for updated deployments. For v4.0.0-4.0.4 users with SSO_DELEGATE_RBAC_TO_NAMESPACE=true, the risk is real but geographically/configuration-dependent: only organizations using this specific feature combination are vulnerable. The permanent DoS per user (not per request failure) makes this operationally significant in production SSO environments. |
| Exploit ScenarioDerived | An attacker (or malicious SSO user) authenticates to Argo Workflows via the configured OIDC provider (e.g., Dex) and receives an SSO session cookie with identity claims (e.g., group membership). The attacker's group membership is configured to match a Kubernetes ServiceAccount annotation in a target namespace (e.g., target-ns) but does not match any RBAC rule in the SSO namespace (argo). Upon the attacker's first API request (e.g., GET /api/v1/workflows/target-ns with the SSO session cookie), the gatekeeper authorization logic matches the user to the namespace-delegated RBAC rule but finds no matching SSO-namespace rule, leaving loginAccount as nil. The precedence() function is called on the nil pointer, triggering a panic. The gRPC recovery interceptor catches it and returns HTTP 500. Every subsequent API request from the same user triggers the same panic, producing permanent denial of service for that user's session. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 04, 2026
Denial of service via nil pointer dereference in Argo Workflows 4.0.0-4.0.4 affects SSO users with RBAC namespace delegation enabled when their identity claims match a namespace-level RBAC rule but not an SSO-namespace rule. The gatekeeper.go rbacAuthorization() function unconditionally dereferences a nil serviceAccount pointer when comparing rule precedence, causing an HTTP 500 panic on every API request from the affected user. Live-tested exploit confirmed on v4.0.4 with Dex OIDC provider; vendor patch released as v4.0.5.
RemediationAI
Upgrade to Argo Workflows v4.0.5 or later, which includes the nil pointer check in the precedence comparison logic (commit c4cc17d0c034fa9a9cc01ef1af6c8016c93071d4). The patched code adds a guard condition if loginAccount == nil || precedence(namespaceAccount) > precedence(loginAccount) and ensures the logging code handles nil loginAccount gracefully. If immediate upgrade is not possible, disable SSO_DELEGATE_RBAC_TO_NAMESPACE (set to false or leave unset) to revert to SSO-namespace-only RBAC rules, though this reduces per-namespace RBAC flexibility. Alternatively, ensure all SSO user claims have matching RBAC ServiceAccount entries in the SSO namespace (argo by default) to prevent the nil loginAccount condition; however, this is a configuration workaround and does not address the underlying code defect. The patch is minimal and low-risk; upgrading is strongly recommended. See https://github.com/argoproj/argo-workflows/releases/tag/v4.0.5.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 4 packages in go
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Argo Workflows is a Kubernetes-native workflow orchestration engine that supports SSO authentication via OIDC (OpenID Connect) providers like Dex and implements role-based access control (RBAC) via ServiceAccount annotations. When the SSO_DELEGATE_RBAC_TO_NAMESPACE environment variable is enabled, the authorization logic attempts to match user identity claims against both SSO-namespace RBAC rules and delegated namespace-level rules. The vulnerability resides in server/auth/gatekeeper.go at the rbacAuthorization() function, specifically in the precedence comparison logic at lines 232-304. The precedence() helper function (line 232) accesses serviceAccount.Annotations without null checking, and the conditional at line 304 calls precedence(loginAccount) where loginAccount may be nil if getServiceAccount(claims, ssoNamespace) returns nil for a user whose claims do match a namespace-delegated rule. This is a classic null pointer dereference (CWE-476) in Go, where a nil interface{} pointer is dereferenced, triggering a runtime panic caught by the gRPC recovery interceptor, resulting in HTTP 500 errors. CPE: pkg:go/github.com/argoproj/argo-workflows/v4.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (https://github.com/argoproj/argo-workflows) · only source for this CVE.
CVSS VectorVendor: https://github.com/argoproj/argo-workflows
Lifecycle Timeline
1DescriptionCVE.org
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.
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.
Suggested Fix
Add nil check: if loginAccount == nil || precedence(namespaceAccount) > precedence(loginAccount)
AI Disclosure
This advisory was prepared with AI assistance (Claude Code, Anthropic).
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
GHSA-p4gq-3vxj-f4jq
NVD
CVE.org
EPSS
VulDB
Exploit-DB