CVE-2024-25620: Helm.sh/helm/v3 Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-v53g-5gjp-272r
CVSS 6.4
CWE-23 CWE-22
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-25620
GHSA Identifier GHSA-v53g-5gjp-272r
Severity MODERATE
CVSS v3.1 Base Score 6.4
CWE Classification CWE-23: Relative Path Traversal
Affected Product Helm.sh/helm/v3
Package Ecosystem Go
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

helm.sh/helm/v3 fixed: 3.14.1
Upgrade helm.sh/helm/v3 to 3.14.1
Verify Direct and Transitive Dependencies

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

A Helm contributor discovered a path traversal vulnerability when Helm saves a chart including at download time. ### Impact When 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. ### Patches This issue has been resolved in Helm v3.14.1. ### Workarounds Check all charts used by Helm for path changes in their name as found in the `Chart.yaml` file. This includes dependencies. ### Credits Disclosed by Dominykas Blyžė at Nearform Ltd.

CVE-2024-25620 Affected Helm.sh/helm/v3 Versions

1 component(s)
Fixed Versions:
3.14.1
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?
CVE-2024-25620 is a security vulnerability in Helm.sh/helm/v3 involving Helm dependency management path traversal under CWE-23: Relative Path Traversal.
Which Helm.sh/helm/v3 versions are affected?
Affected versions include releases prior to 3.14.1 across affected packages: helm.sh/helm/v3.
What version fixes CVE-2024-25620?
Upgrading to 3.14.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is helm.sh/helm/v3 affected?
Yes, helm.sh/helm/v3 is affected in releases prior to 3.14.1. Upgrade your dependency to 3.14.1 or later.
What is the CVSS score of CVE-2024-25620?
CVE-2024-25620 has a CVSS v3.1 base score of 6.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2024-25620?
CVE-2024-25620 is classified under CWE-23: Relative Path Traversal (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.).
How can I check Go dependencies for CVE-2024-25620?
Run the dependency tree command: 'inspect dependencies for helm.sh/helm/v3'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}