CVE-2020-15185: Repository index file allows for duplicates of the same chart entry in helm
2.2
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.56711%
CWE
Published
5/24/2021
Updated
10/2/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
helm.sh/helm/v3 | go | >= 3.0.0, < 3.3.2 | 3.3.2 |
helm.sh/helm | go | < 2.16.11 | 2.16.11 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper input validation in index file processing. The key evidence comes from the patch commits which: 1) Changed YAML parsing to strict mode (yaml.UnmarshalStrict
) to detect duplicates 2) Added explicit validation logic (validateIndex()
) 3) Added test cases for duplicate detection. The original loadIndex()
function's use of non-strict parsing and lack of duplicate entry validation directly enabled the vulnerability by allowing multiple entries with the same chart name, with the last one taking precedence.