{"id":"CVE-2026-35206","aliases":["GHSA-hr2v-4r36-88hr","BIT-helm-2026-35206","GO-2026-5435"],"title":"Helm Chart extraction output directory collapse via `Chart.yaml` name dot-segment","summary":"Helm Chart extraction output directory collapse via `Chart.yaml` name dot-segment","severity":"medium","vendor":"helm","product":"helm.sh/helm/v4","ecosystem":"go","affected":["helm.sh/helm/v4 < 4.1.4","helm.sh/helm/v3 < 3.20.2"],"patched":["helm.sh/helm/v4 4.1.4","helm.sh/helm/v3 3.20.2"],"published":"2026-04-10","updated":"2026-07-24","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-hr2v-4r36-88hr","references":[{"url":"https://github.com/helm/helm/security/advisories/GHSA-hr2v-4r36-88hr"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35206"},{"url":"https://github.com/helm/helm/commit/4e7994d4467182f535b6797c94b5b0e994a91436"},{"url":"https://github.com/helm/helm"},{"url":"https://github.com/helm/helm/releases/tag/v4.1.4"}],"tags":["osv","go"],"epss":0.00199,"epssPercentile":0.09961,"ingestedAt":"2026-07-25T19:08:11.549Z","slug":"CVE-2026-35206","body":"## Overview\n\nHelm 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.\n\n### Impact\n\nThe 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.\n\nNote: 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.\n\n### Patches\n\nThis issue has been resolved in Helm v3.20.2 and v4.1.3\n\nA Chart with an unexpected name (those specified to be \".\" or \"..\"), or a Chart name which results in a non-unique directory will be rejected.\n\n### Workarounds\n\nEnsure 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.\n\n### Credits\n\nOleh Konko\n@1seal\n\n## Affected packages\n\n- `helm.sh/helm/v4 < 4.1.4`\n- `helm.sh/helm/v3 < 3.20.2`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `helm.sh/helm/v4 4.1.4`\n- `helm.sh/helm/v3 3.20.2`","depth":"sunlit","depthScore":28,"depthScoreParts":{"impact":27.5,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}