CVE-2026-35206
JSON

4.8medium

Helm Chart extraction output directory collapse via `Chart.yaml` name dot-segment

Severity
4.8medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.21% (higher than 6% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-hr2v-4r36-88hrBIT-HELM-2026-35206GO-2026-5435

Description

Helm is a package manager for Charts for Kubernetes. In Helm versions <=3.20.1 and <=4.1.3, a specially crafted Chart will cause helm pull --untar [chart URL | repo/chartname] to write the Chart's contents to the immediate output directory (as defaulted to the current working directory; or as given by the --destination and --untardir flags), rather than the expected output directory suffixed by the chart's name. This vulnerability is fixed in 3.20.2 and 4.1.4.

Affected

Product or packageVersionsReported by
helm helm>= 4.0.0, < 4.1.4, < 3.20.2, before 3.20.2, from 4.0.0 before 4.1.4CVE List, NVD
helm.sh/helm/v4 (Go)before 4.1.4GitHub Advisory Database
helm.sh/helm/v3 (Go)before 3.20.2GitHub Advisory Database, Go Vulnerability Database
helm (Bitnami)before 3.20.2, from 4.0.0 before 4.1.4Bitnami Vulnerability Database

All scores

GitHub_M4.8medium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
NVD4.4medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Bitnami Vulnerability Databasemedium rating

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Helm is a package manager for Charts for Kubernetes. In Helm versions <=3.20.1 and <=4.1.3, a specially crafted Chart will cause helm pull --untar [chart URL | repo/chartname] to write the Chart's contents to the immediate output directory (as defaulted to the current working directory; or as given by the --destination and --untardir flags), rather than the expected output directory suffixed by the chart's name. This vulnerability is fixed in 3.20.2 and 4.1.4.

GitHub Advisory Database

Helm is a package manager for Charts for Kubernetes. In Helm versions <=3.20.1 and <=4.1.3, a specially crafted Chart will cause helm pull --untar [chart URL | repo/chartname] to write the Chart's contents to the immediate output directory (as defaulted to the current working directory; or as given by the --destination and --untardir flags), rather than the expected output directory suffixed by the chart's name.

Impact

The bug enables writing the Chart's contents (unpackaged/untar'ed) to the output directory <output dir>/, instead of the expected <output dir>/<chart name>/, potentially overwriting the contents of the targeted directory.

Note: a chart name containing POSIX dot-dot, or dot-dot and slashes (as if to refer to parent directories) do not resolve beyond the output directory as designed.

Patches

This issue has been resolved in Helm v3.20.2 and v4.1.3

A Chart with an unexpected name (those specified to be "." or ".."), or a Chart name which results in a non-unique directory will be rejected.

Workarounds

Ensure the the name of the Chart does not comprise/contain POSIX pathname special directory references ie. dot-dot ("..") or dot ("."). In addition, ensuring that the pull --untar flag (or equivalent SDK option) refers to a unique/empty output directory prevents chart extraction from inadvertently overwriting existing files within the specified directory.

Credits

Oleh Konko @1seal

Go Vulnerability Database

Helm Chart extraction output directory collapse via Chart.yaml name dot-segment in helm.sh/helm

NVD (es)

Helm es un gestor de paquetes para Charts para Kubernetes. En las versiones de Helm menor o igual que 3.20.1 y menor o igual que 4.1.3, un Chart especialmente diseñado hará que helm pull --untar [URL del chart | repo/nombre_del_chart] escriba el contenido del Chart en el directorio de salida inmediato (por defecto, el directorio de trabajo actual; o el especificado por las banderas --destination y --untardir), en lugar del directorio de salida esperado con el nombre del chart como sufijo. Esta vulnerabilidad se corrige en 3.20.2 y 4.1.4.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-35206 changed 2026-04-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-hr2v-4r36-88hr changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5435 changed 2026-08-21CC-BY-4.0
NVDCVE-2026-35206 changed 2026-11-11Public domain
Bitnami Vulnerability DatabaseBIT-HELM-2026-35206 changed 2026-09-08Apache-2.0