Vulnerability · Published Dec 2, 2024 · Assigned by GitHub_M

CVE-2024-53862Argo Workflows Allows Access to Archived Workflows with Fake Token in `client` mode

Medium 6.3

In plain English

A medium-severity information exposure in argo-workflows from argoproj. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.3Medium
Exploit odds (30 days)0.7%top 48.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. When using `--auth-mode=client`, Archived Workflows can be retrieved with a fake or spoofed token via the GET Workflow endpoint: `/api/v1/workflows/{namespace}/{name}` or when using `--auth-mode=sso`, all Archived Workflows can be retrieved with a valid token via the GET Workflow endpoint: `/api/v1/workflows/{namespace}/{name}`. No authentication is performed by the Server itself on `client` tokens. Authentication & authorization is instead delegated to the k8s API server. However, the Workflow Archive does not interact with k8s, and so any token that looks valid will be considered authenticated, even if it is not a k8s token or even if the token has no RBAC for Argo. To handle the lack of pass-through k8s authN/authZ, the Workflow Archive specifically does the equivalent of a `kubectl auth can-i` check for respective methods. In 3.5.7 and 3.5.8, the auth check was accidentally removed on the GET Workflow endpoint's fallback to archived workflows on these lines, allowing archived workflows to be retrieved with a fake token. This vulnerability is fixed in 3.6.2 and 3.5.13.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/argoproj/argo-workflowsno fix listedGO-2024-3303
Gogithub.com/argoproj/argo-workflows/v2no fix listedGO-2024-3303
Gogithub.com/argoproj/argo-workflows/v33.5.13GHSA-h36c-m3rf-34h9
Gogithub.com/argoproj/argo-workflows/v33.6.2GHSA-h36c-m3rf-34h9
Gogithub.com/argoproj/argo-workflows/v33.5.13, 3.6.2GO-2024-3303

Affected products (as reported)

VendorProductVersions
argoproj argo-workflows >= 3.5.7, < 3.5.13>= 3.6.0-rc1, < 3.6.2

Weakness: CWE-200, CWE-290 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N

References