CVE-2024-25620: Helm.sh/helm/v3 Path Traversal Vulnerability
MODERATECVE-2024-25620 is a MODERATE (CVSS 6.4) path traversal vulnerability (CWE-23: Relative Path Traversal) affecting Helm.sh/helm/v3 libraries in the Go ecosystem. The issue involves helm dependency management path traversal. Remediation is available by upgrading affected packages to version 3.14.1.
CVE-2024-25620 at a Glance
Security Impact
CVSS: 6.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N).
How to Fix CVE-2024-25620
To remediate this vulnerability, upgrade all affected Helm.sh/helm/v3 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade helm.sh/helm/v3 to 3.14.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for helm.sh/helm/v3
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-25620, inspect your project dependencies for Helm.sh/helm/v3:
inspect dependencies for helm.sh/helm/v3
Analyze the terminal output to locate any version of Helm.sh/helm/v3 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.14.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-23: Relative Path Traversal, where the product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory. In Helm.sh/helm/v3, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-25620 Affected Helm.sh/helm/v3 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
helm.sh/helm/v3
|
Go |
< 3.14.1
|
3.14.1
|
References
Frequently Asked Questions
What is CVE-2024-25620?
Which Helm.sh/helm/v3 versions are affected?
What version fixes CVE-2024-25620?
Is helm.sh/helm/v3 affected?
What is the CVSS score of CVE-2024-25620?
What CWE is associated with CVE-2024-25620?
How can I check Go dependencies for CVE-2024-25620?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v53g-5gjp-272r",
"modified" : "2024-02-15T15:34:40Z",
"published" : "2024-02-15T15:34:40Z",
"aliases" : [ "CVE-2024-25620" ],
"summary" : "Helm dependency management path traversal",
"details" : "A Helm contributor discovered a path traversal vulnerability when Helm saves a chart including at download time.\n\n### Impact\n\nWhen either the Helm client or SDK is used to save a chart whose name within the `Chart.yaml` file includes a relative path change, the chart would be saved outside its expected directory based on the changes in the relative path. The validation and linting did not detect the path changes in the name.\n\n### Patches\n\nThis issue has been resolved in Helm v3.14.1.\n\n### Workarounds\n\nCheck all charts used by Helm for path changes in their name as found in the `Chart.yaml` file. This includes dependencies.\n\n### Credits\n\nDisclosed by Dominykas Blyžė at Nearform Ltd.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "helm.sh/helm/v3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.14.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.14.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/helm/helm/security/advisories/GHSA-v53g-5gjp-272r"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-25620"
}, {
"type" : "WEB",
"url" : "https://github.com/helm/helm/commit/0d0f91d1ce277b2c8766cdc4c7aa04dbafbf2503"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/helm/helm"
}, {
"type" : "WEB",
"url" : "https://github.com/helm/helm/releases/tag/v3.14.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-23" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-15T15:34:40Z",
"nvd_published_at" : "2024-02-15T00:15:45Z"
}
}