Skip to main content

Argo Workflows CVE-2026-42183

LOW
NULL Pointer Dereference (CWE-476)
2026-05-04 https://github.com/argoproj/argo-workflows GHSA-p4gq-3vxj-f4jq
2.3
CVSS 4.0 · Vendor: https://github.com/argoproj/argo-workflows
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate via SSO OIDC provider
  2. Delivery
    Obtain session cookie with identity claims
  3. Exploit
    Send API request to delegated namespace
  4. Install
    Match namespace RBAC rule
  5. C2
    No match in SSO namespace
  6. Execute
    loginAccount remains nil
  7. Impact
    Call precedence(nil)
  8. Step 8
    Nil pointer dereference panic
  9. Step 9
    HTTP 500 returned
  10. Step 10
    User 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

go github.com/argoproj/argo-workflows no fix
go github.com/argoproj/argo-workflows/v2 no fix
go github.com/argoproj/argo-workflows/v3 no fix
go github.com/argoproj/argo-workflows/v4 fix: 4.0.5

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

Vendor (https://github.com/argoproj/argo-workflows) PRIMARY 2.3 LOW
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
May 09, 2026 - 04:22 NVD
2.3 (LOW)

DescriptionCVE.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):

go
// 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.

  1. Deploy Argo Workflows with --auth-mode=sso --auth-mode=client, SSO pointing to Dex, RBAC enabled.
  2. Set SSO_DELEGATE_RBAC_TO_NAMESPACE=true on the argo-server deployment.
  3. Create an RBAC ServiceAccount with workflows.argoproj.io/rbac-rule: "true" annotation in a target namespace (e.g., target-ns).
  4. Do not create a matching RBAC rule in the SSO namespace (argo).
  5. Authenticate via the Dex SSO flow.
  6. Request GET /api/v1/workflows/target-ns with the SSO session cookie.
  7. Server returns HTTP 500: {"code":13,"message":"runtime error: invalid memory address or nil pointer dereference"}
  8. 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.

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

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS GHSA GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Affected Products (CPE)CVE.org

pkg:go/github.com_argoproj_argo-workflows_v4

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy