Argo Workflows CVE-2026-42296
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to Kubernetes API
-
DeliveryCraft Workflow YAML with workflowTemplateRef + hostNetwork:true + serviceAccountName override
-
ExploitSubmit via kubectl/API
-
InstallBypass incomplete setExecWorkflow validation
-
C2Merge via JoinWorkflowSpec preserves user overrides
-
ExecutePod created with host network + escalated SA
-
ImpactAccess host network topology + mounted SA token
-
Step 8Authenticate to K8s API with escalated privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires authenticated access to Argo Workflows API with permission to create Workflow custom resources in a namespace where templateReferencing Strict or Secure mode is enabled via WorkflowRestrictions config (workflowRestrictions.templateReferencing: Strict in workflow-controller-configmap). Exploitation succeeds when the referenced WorkflowTemplate omits explicit values for security-sensitive fields (hostNetwork, securityContext, serviceAccountName, automountServiceAccountToken, tolerations, dnsPolicy, hostAliases, volumes), relying on Kubernetes default values-most production WorkflowTemplates exhibit this pattern because false and nil are zero values that YAML serialization omits. Exploitation is LIMITED by the attacker's existing Kubernetes RBAC permissions (must have create verbs on workflows.argoproj.io resources) and by the scope of the ServiceAccount under which submitted Workflows run by default-if the default SA has minimal permissions, serviceAccountName override is required for meaningful privilege escalation. Kubernetes-layer controls (PodSecurity admission enforcing baseline or restricted profiles, OPA/Gatekeeper policies, or NetworkPolicies blocking host network access) independently block portions of the attack-hostNetwork:true will fail pod admission under restricted PodSecurity, but serviceAccountName switching and tolerations remain viable. Does NOT require local node access, cluster-admin privileges, or specific Argo feature flags beyond templateReferencing-default Argo deployments with Strict mode are vulnerable. |
| Impact | CVSS 8.1 (High) with AV:N/AC:L/PR:L/UI:N indicates network-accessible exploitation by authenticated users with low complexity. Real-world risk is HIGH for clusters relying on Argo's templateReferencing as the primary security boundary, but MODERATE where defense-in-depth exists. The CVSS vector accurately reflects the attack-network access to Argo's API, low-privilege authenticated user, no user interaction required. EPSS score not provided, but exploitation probability is ELEVATED given: (1) detailed reproduction steps in the GitHub advisory (GHSA-3775-99mw-8rp4) demonstrate trivial exploitation on v4.0.2, (2) authenticated users already have legitimate create Workflow permission making this a privilege escalation rather than initial access, (3) impact is immediate-hostNetwork:true grants visibility into all host network interfaces and veth pairs for other containers. No KEV listing and no publicly available exploit code exists beyond the advisory's proof-of-concept kubectl commands. Key limiting factor: attacker must have valid Kubernetes credentials with Workflow create permission in a namespace where templateReferencing is enforced. SSVC assessment: exploitation status is POC (advisory provides working examples), automatable is YES (simple API calls), technical impact is PARTIAL (pod-level escape, not cluster admin). Priority for organizations using Argo Workflows in multi-tenant environments with templateReferencing enabled: IMMEDIATE patching required. For clusters with PodSecurity admission enforcing baseline/restricted profiles or OPA/Gatekeeper policies blocking hostNetwork and privileged securityContext, risk is REDUCED but not eliminated-serviceAccountName switching and toleration injection remain viable. Critical gap: the vulnerability undermines the trust model where admins expect WorkflowTemplates to constrain user-submitted Workflows, potentially leading to lateral movement via service account token access or data exfiltration via host network. |
| Exploit ScenarioDerived | An authenticated developer with create Workflow permission in a multi-tenant Argo Workflows deployment targets a namespace where templateReferencing Strict mode enforces use of admin-controlled WorkflowTemplates. The attacker crafts a Workflow YAML referencing a legitimate workflowTemplateRef but adds hostNetwork: true and serviceAccountName: argo-server to the spec. Upon submission via kubectl create, the Argo controller's incomplete validation in setExecWorkflow checks only for podSpecPatch and allows the request. JoinWorkflowSpec merges the user's spec with the template, and because the template omits hostNetwork (defaulting to false), the user's true value survives. The resulting pod launches with host networking, exposing all host network interfaces and veth pairs for containers on the node. The attacker's container queries these interfaces to map the cluster's network topology. Simultaneously, the overridden serviceAccountName grants the pod argo-server ServiceAccount credentials. The attacker uses the mounted token to authenticate against the Kubernetes API and escalate privileges, creating new Workflows or accessing Secrets bound to the argo-server SA. If the attacker also adds tolerations for control-plane taints, the pod schedules on master nodes, increasing the attack surface. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 04, 2026
Argo Workflows v3 (< 3.7.14) and v4 (< 4.0.5) allow users to bypass templateReferencing Strict/Secure mode restrictions by setting WorkflowSpec fields like hostNetwork, serviceAccountName, securityContext, tolerations, and volumes. The incomplete fix for CVE-2026-31892 only blocked podSpecPatch but left other security-sensitive fields unvalidated. Authenticated users with create Workflow permission can inject host network access, switch service accounts, modify pod security contexts, or schedule on control-plane nodes despite referencing hardened WorkflowTemplates. Vendor-released patch: v3.7.14 and v4.0.5 (commit 2727f3f). No public exploit identified at time of analysis, but exploitation is straightforward given detailed reproduction steps in the advisory.
RemediationAI
Upgrade to Argo Workflows v3.7.14 or v4.0.5 which implement comprehensive validation via ValidateUserOverrides and SanitizeUserWorkflowSpec functions that enforce an allow-list of safe WorkflowSpec fields (entrypoint, arguments, labels, annotations) when templateReferencing restrictions are active. Patched versions available at https://github.com/argoproj/argo-workflows/releases/tag/v4.0.5. Upstream fix commit: https://github.com/argoproj/argo-workflows/commit/2727f3f701677d467dfb5e053c57237cbc752c3c modifies workflow/controller/operator.go to sanitize user specs before merging and rejects workflows containing non-allowed fields. If immediate patching is not feasible, implement compensating controls: (1) Deploy Kubernetes PodSecurity admission with restricted profile enforcement on namespaces running Argo Workflows-this blocks hostNetwork, privileged securityContext, and hostPath volumes but does NOT prevent serviceAccountName switching; trade-off is potential breakage of legitimate workflows requiring elevated privileges. (2) Deploy OPA Gatekeeper or Kyverno policies that validate Workflow CRDs before admission, explicitly denying WorkflowSpec fields outside the allow-list (entrypoint, arguments, metadata) when workflowTemplateRef is present; trade-off is policy maintenance overhead and potential for bypass if policy logic mirrors Argo's incomplete validation. (3) Use Kubernetes RBAC to restrict which ServiceAccounts can be referenced via serviceAccountName through custom admission webhooks; this limits lateral movement but does not address hostNetwork or securityContext bypasses. (4) Disable templateReferencing restrictions and rely solely on namespace-level PodSecurityPolicy/PodSecurity admission; trade-off is loss of Argo-native template enforcement and increased operational complexity. No workaround fully mitigates the vulnerability-patching is the only complete remediation.
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 orchestrates Kubernetes-native workflows by translating Workflow CRDs into pods. The templateReferencing Strict/Secure modes (introduced to enforce hardened WorkflowTemplates) use JoinWorkflowSpec to merge user-submitted Workflow specs with referenced WorkflowTemplates via strategic merge patch. The original CVE-2026-31892 fix added validation in setExecWorkflow that rejected workflows when HasPodSpecPatch() returned true. However, CWE-863 (Incorrect Authorization) occurs because the check is incomplete-WorkflowSpec contains multiple pod-influencing fields (hostNetwork, securityContext, serviceAccountName, automountServiceAccountToken, tolerations, dnsPolicy, schedulerName, hostAliases, volumes) that createWorkflowPod reads directly from the merged spec. When a WorkflowTemplate omits these fields (relying on Kubernetes defaults where false/nil is the zero value), user-supplied overrides survive the merge and get applied to pods. The Go package github.com/argoproj/argo-workflows implements workflow execution logic; affected components are workflow/controller/operator.go (setExecWorkflow, setStoredWfSpec) and workflow/util (JoinWorkflowSpec). The fix introduces ValidateUserOverrides and SanitizeUserWorkflowSpec functions that enforce an allow-list (entrypoint, arguments, labels, annotations) and reject all other fields when MustUseReference() is true.
Know when Kubernetes gets its next vulnerability
- 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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Primary rating from Vendor (https://github.com/argoproj/argo-workflows).
CVSS VectorVendor: https://github.com/argoproj/argo-workflows
DescriptionCVE.org
The fix for CVE-2026-31892 (commit 534f4ff) blocks podSpecPatch when templateReferencing: Strict is active, but doesn't restrict other WorkflowSpec fields that flow through the same merge path and get applied to pods. A user can set hostNetwork: true, override serviceAccountName, or change securityContext on their Workflow while referencing a hardened template -- these survive JoinWorkflowSpec and get applied at pod creation.
The check in setExecWorkflow gates on HasPodSpecPatch() only:
if woc.controller.Config.WorkflowRestrictions.MustUseReference() && woc.wf.Spec.HasPodSpecPatch() {Everything else passes through. createWorkflowPod reads hostNetwork, securityContext, serviceAccountName, tolerations, and automountServiceAccountToken from the merged spec and applies them directly to the pod.
JoinWorkflowSpec constructs the merge target from the user's spec and applies the template as a patch -- user fields take priority. When the template doesn't explicitly set a field like hostNetwork (most won't -- false is the zero value and gets omitted), the user's true survives. For fields like securityContext and serviceAccountName, the template-level value takes precedence IF the template explicitly sets it. The bypass applies when the template relies on defaults.
Both Strict and Secure modes are affected. Secure stores the merged spec on first submission, so user overrides get baked into the stored spec and subsequent MustNotChangeSpec comparisons pass.
Steps to reproduce
Tested on v4.0.2 (the CVE-2026-31892 patched version) on kind v0.27.0 / K8s v1.35.0.
# enable strict mode
kubectl patch configmap workflow-controller-configmap -n argo --type merge \
-p '{"data":{"workflowRestrictions":"templateReferencing: Strict\n"}}'
kubectl rollout restart deployment workflow-controller -n argoA template that lists network interfaces:
cat <<'EOF' | kubectl apply -n argo -f -
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: netcheck
spec:
entrypoint: check
templates:
- name: check
container:
image: alpine:latest
command: ["/bin/sh", "-c"]
args: ["ip addr show | grep -E '^[0-9]+:' | cut -d: -f2"]
EOFSubmit a workflow with hostNetwork: true:
cat <<'EOF' | kubectl create -n argo -f -
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: bypass-
spec:
workflowTemplateRef:
name: netcheck
hostNetwork: true
EOFPod gets host networking:
$ kubectl get pod -n argo -l workflows.argoproj.io/workflow=bypass-bmg9b -o jsonpath='{.items[0].spec.hostNetwork}'
trueContainer without the override sees eth0@if20. With the override, the pod sees the host's full network namespace -- all veth interfaces for other containers on the node.
podSpecPatch IS correctly blocked on the same cluster:
$ kubectl get workflow patched-check-jd272 -n argo -o jsonpath='{.status.message}'
podSpecPatch is not permitted when using workflowTemplateRef with templateReferencing restrictionserviceAccountName override also works -- a workflow with serviceAccountName: argo-server creates a pod running under the argo-server SA instead of the namespace default:
$ kubectl get pod -n argo -l workflows.argoproj.io/workflow=bypass-sa-slmjs -o jsonpath='{.items[0].spec.serviceAccountName}'
argo-serverTested in Secure mode as well -- same result. Pod created with hostNetwork: true before the workflow errors on an unrelated permission issue.
Impact
A user with create Workflow permission can bypass templateReferencing: Strict to get host network access, switch service accounts, override pod security context, add tolerations to schedule on control-plane nodes, or enable SA token mounting. This defeats the stated purpose of the feature.
The practical impact depends on what Kubernetes-level controls are in place. Clusters with PodSecurity admission or OPA/Gatekeeper would independently block some of these (like hostNetwork). Clusters that rely on Argo's Strict mode as the primary enforcement layer are fully exposed.
Fix direction
The check in setExecWorkflow should cover all WorkflowSpec fields that influence pod security posture, not just podSpecPatch. The affected fields that I confirmed in createWorkflowPod: hostNetwork, securityContext, serviceAccountName, automountServiceAccountToken, tolerations, dnsPolicy, schedulerName, hostAliases, volumes.
An alternative approach: when MustUseReference() is true, strip all user-set WorkflowSpec fields except a known-safe allowlist (entrypoint, arguments, labels, annotations) before merging. This avoids a growing denylist as new fields get added.
Affected versions
All versions supporting templateReferencing, including v4.0.2 and v3.7.11 which patched CVE-2026-31892.
Executive ViewAI
Argo Workflows versions 3.x before 3.7.14 and 4.x before 4.0.5 contain a privilege escalation vulnerability that allows authenticated users to bypass security controls and gain elevated pod privileges, including host network access and service account switching, even when using hardened WorkflowTemplates. Organizations running affected Argo Workflows instances face risk of lateral movement and privilege escalation by workflow users.
Apply vendor patch. If immediate patching is not feasible: Restrict 'create Workflow' permissions to only trusted users; implement network policies to block pod host network access; enforce Pod Security Standards (PSS) or Pod Security Policies (PSP) to prevent privilege escalation; monitor WorkflowSpec fields (hostNetwork, securityContext, serviceAccountName, tolerations, volumes) for suspicious modifications via audit logging.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)CVE.org
More in Kubernetes
View allA critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access
Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio
Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-tls-match-c
Kubernetes API server in all versions allow an attacker who is able to create a ClusterIP service and set the spec.exter
A security issue was discovered in Kubernetes where a user that can create pods on Windows nodes may be able to escalate
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Rated critical severity (CVSS 9.9), this vulne
Unauthenticated remote attackers can trigger complete database overwrites, server-side file reads, and SSRF attacks agai
The Kubernetes integration in GitLab Enterprise Edition 11.x before 11.2.8, 11.3.x before 11.3.9, and 11.4.x before 11.4
Fluentd configuration injection in the kube-logging Logging operator before 6.6.0 allows a namespace-scoped user who can
Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar
Same weakness CWE-863 – Incorrect Authorization
View allSame technique Authentication Bypass
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
GHSA-3775-99mw-8rp4
NVD
CVE.org
EPSS
Exploit-DB