CVE-2019-1000008: Helm.sh/helm Path Traversal Vulnerability
MODERATECVE-2019-1000008 is a MODERATE (CVSS 6.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Helm.sh/helm libraries in the Go ecosystem. The issue involves helm path traversal. Remediation is available by upgrading affected packages to version 2.12.2.
CVE-2019-1000008 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N).
How to Fix CVE-2019-1000008
To remediate this vulnerability, upgrade all affected Helm.sh/helm 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 to 2.12.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for helm.sh/helm
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-1000008, inspect your project dependencies for Helm.sh/helm:
inspect dependencies for helm.sh/helm
Analyze the terminal output to locate any version of Helm.sh/helm in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.12.2), 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Helm.sh/helm, 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-2019-1000008 Affected Helm.sh/helm Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
helm.sh/helm
|
Go |
≥ 2.0.0
< 2.12.2
|
2.12.2
|
References
Frequently Asked Questions
What is CVE-2019-1000008?
Which Helm.sh/helm versions are affected?
What version fixes CVE-2019-1000008?
Is helm.sh/helm affected?
What is the CVSS score of CVE-2019-1000008?
What CWE is associated with CVE-2019-1000008?
How can I check Go dependencies for CVE-2019-1000008?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xrxm-mvqm-r553",
"modified" : "2023-09-28T20:38:53Z",
"published" : "2022-05-14T01:33:54Z",
"aliases" : [ "CVE-2019-1000008" ],
"summary" : "Helm Path Traversal",
"details" : "All versions of Helm between Helm >=2.0.0 and < 2.12.2 contains a CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in The commands `helm fetch --untar` and `helm lint some.tgz` that can result when chart archive files are unpacked a file may be unpacked outside of the target directory. This attack appears to be exploitable via a victim must run a helm command on a specially crafted chart archive. This vulnerability appears to have been fixed in 2.12.2.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "helm.sh/helm"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.12.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-1000008"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/helm/helm"
}, {
"type" : "WEB",
"url" : "https://helm.sh/blog/helm-security-notice-2019/index.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-19T21:14:08Z",
"nvd_published_at" : "2019-02-04T21:29:00Z"
}
}