GHSA-557j-xg8c-q2mm

Suggest an improvement
Source
https://github.com/advisories/GHSA-557j-xg8c-q2mm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/07/GHSA-557j-xg8c-q2mm/GHSA-557j-xg8c-q2mm.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-557j-xg8c-q2mm
Aliases
Downstream
Related
Published
2025-07-08T23:20:54Z
Modified
2025-07-10T06:42:09.416075Z
Severity
  • 8.5 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:H CVSS Calculator
Summary
Helm vulnerable to Code Injection through malicious chart.yaml content
Details

A Helm contributor discovered that a specially crafted Chart.yaml file along with a specially linked Chart.lock file can lead to local code execution when dependencies are updated.

Impact

Fields in a Chart.yaml file, that are carried over to a Chart.lock file when dependencies are updated and this file is written, can be crafted in a way that can cause execution if that same content were in a file that is executed (e.g., a bash.rc file or shell script). If the Chart.lock file is symlinked to one of these files updating dependencies will write the lock file content to the symlinked file. This can lead to unwanted execution. Helm warns of the symlinked file but did not stop execution due to symlinking.

This affects when dependencies are updated. When using the helm command this happens when helm dependency update is run. helm dependency build can write a lock file when one does not exist but this vector requires one to already exist. This affects the Helm SDK when the downloader Manager performs an update.

Patches

This issue has been resolved in Helm v3.18.4

Workarounds

Ensure the Chart.lock file in a chart is not a symlink prior to updating dependencies.

For more information

Helm's security policy is spelled out in detail in our SECURITY document.

Credits

Disclosed by Jakub Ciolek at AlphaSense.

Database specific
{
    "github_reviewed": true,
    "nvd_published_at": "2025-07-08T22:15:27Z",
    "cwe_ids": [
        "CWE-94"
    ],
    "github_reviewed_at": "2025-07-08T23:20:54Z",
    "severity": "HIGH"
}
References

Affected packages

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.18.4

Database specific

{
    "last_known_affected_version_range": "<= 3.18.3"
}