CVE-2024-25620 Dependency management path traversal in helm

Medium 6.4 Published Updated

Attackers can save Helm charts outside intended directories by manipulating chart names, potentially overwriting files or disrupting deployments.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-25620?

CVE-2024-25620 is a medium-severity path traversal vulnerability in helm, published on 14 Feb 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Helm is a tool for managing Charts. Charts are packages of pre-configured Kubernetes resources. When either the Helm client or SDK is used to save a chart whose name within the `Chart.yaml` file includes a relative path change, the chart would be saved outside its expected directory based on the changes in the relative path. The validation and linting did not detect the path changes in the name. This issue has been resolved in Helm v3.14.1. Users unable to upgrade should check all charts used by Helm for path changes in their name as found in the `Chart.yaml` file. This includes dependencies.

Weakness: CWE-22

Which versions are affected by CVE-2024-25620?

4 open source packages ship an affected version, including helm.sh/helm/v3 and helm. It affects 1 product.

PackageAffectedFixed in
helm.sh/helm/v3 GoAll versions3.14.1
helm.sh/helm/v3 GoAll versions3.14.1
helm.sh/helm/v3 GoAll versions3.14.1
helm BitnamiAll versions3.14.1
Linux distribution packages (1)
helm openSUSE:TumbleweedAll versions3.14.2-2.1

Products include Helm Helm.

How do I fix CVE-2024-25620?

Upgrade helm.sh/helm/v3 to 3.14.1 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-25620 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-25620 exists.

Sources

Also known as AZL-34355, AZL-34583, AZL-38023, BIT-helm-2024-25620, CLEANSTART-2026-PX46795, GHSA-v53g-5gjp-272r and 3 more.

Is CVE-2024-25620 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free