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 package | Versions | Reported by |
|---|---|---|
| helm helm | >= 4.0.0, < 4.1.4, < 3.20.2, before 3.20.2, from 4.0.0 before 4.1.4 | CVE List, NVD |
| helm.sh/helm/v4 (Go) | before 4.1.4 | GitHub Advisory Database |
| helm.sh/helm/v3 (Go) | before 3.20.2 | GitHub Advisory Database, Go Vulnerability Database |
| helm (Bitnami) | before 3.20.2, from 4.0.0 before 4.1.4 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 4.8medium CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N |
| NVD | 4.4medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L |
| Bitnami Vulnerability Database | medium rating |
Classification
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
| https://github.com/helm/helm/security/advisories/GHSA-hr2v-4r36-88hr | advisory, mitigation, vendor-advisory, web | |
| https://github.com/helm/helm/commit/4e7994d4467182f535b6797c94b5b0e994a91436 | fix, patch, web | |
| https://github.com/helm/helm/releases/tag/v4.1.4 | article, product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-35206 | advisory, web | |
| https://github.com/helm/helm | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-35206 changed 2026-04-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hr2v-4r36-88hr changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5435 changed 2026-08-21 | CC-BY-4.0 |
| NVD | CVE-2026-35206 changed 2026-11-11 | Public domain |
| Bitnami Vulnerability Database | BIT-HELM-2026-35206 changed 2026-09-08 | Apache-2.0 |