Skip to content

Workflows: Lack of Granularity in Workflow Role

Low
tico24 published GHSA-h974-w8pg-cx73 Nov 22, 2024

Package

https://argoproj.github.io/argo-helm/argo-workflows (Helm)

Affected versions

<0.45.0

Patched versions

0.45.0

Description

Important

This only affects the Helm Chart and not the upstream manifests

Summary

The workflow-role lacks granularity in its privileges, giving permissions to workflowtasksets and workflowartifactgctasks to all workflow Pods, when only certain types of Pods created by the Controller require these privileges.

The impact is minimal, as an attack could only affect status reporting for certain types of Pods and templates.

This was resolved by #3048

Details

Two sets of permissions are only needed for certain types of Pods created by the Controller:

workflowtasksets and workflowartifactgctasks

These two should ideally be split into their own roles, as they are upstream. This requires a UX change to the Charts, however.

Impact

The impact of these two is quite minimal, as they only affect status reporting and only for ArtifactGC Pods and HTTP and Plugin templates. So that would only have a mild integrity impact, and that impact already exists upstream for properly privileged roles as well, which is more a limitation of k8s RBAC (in practice, it is effectively impossible to limit to resourceNames in this case as they are generated, dynamic names, and then each generated Pod would need custom resourceNames, i.e. dynamically generated RBAC).

Severity

Low

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N

CVE ID

CVE-2024-52814

Weaknesses

Credits