GHSA-hr2v-4r36-88hr

Suggest an improvement
Source
https://github.com/advisories/GHSA-hr2v-4r36-88hr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-hr2v-4r36-88hr/GHSA-hr2v-4r36-88hr.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-hr2v-4r36-88hr
Aliases
Downstream
Related
Published
2026-04-10T15:33:09Z
Modified
2026-04-13T08:27:59.270233366Z
Severity
  • 4.8 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Helm Chart extraction output directory collapse via `Chart.yaml` name dot-segment
Details

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

Database specific
{
    "cwe_ids": [
        "CWE-22"
    ],
    "nvd_published_at": "2026-04-09T21:16:09Z",
    "github_reviewed": true,
    "github_reviewed_at": "2026-04-10T15:33:09Z",
    "severity": "MODERATE"
}
References

Affected packages

Go / helm.sh/helm/v4

Package

Name
helm.sh/helm/v4
View open source insights on deps.dev
Purl
pkg:golang/helm.sh/helm/v4

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.1.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-hr2v-4r36-88hr/GHSA-hr2v-4r36-88hr.json"
last_known_affected_version_range
"<= 4.1.3"

Go / helm.sh/helm/v3

Package

Name
helm.sh/helm/v3
View open source insights on deps.dev
Purl
pkg:golang/helm.sh/helm/v3

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.20.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-hr2v-4r36-88hr/GHSA-hr2v-4r36-88hr.json"
last_known_affected_version_range
"<= 3.20.1"