Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTU2aHAteHFwMy13Mmpm
Helm passes repository credentials to alternate domain
While working on the Helm source, a Helm core maintainer discovered a situation where the username and password credentials associated with a Helm repository could be passed on to another domain referenced by that Helm repository.
Impact
The index.yaml
within a Helm chart repository contains a reference where to get the chart archive for each version of a chart. The reference can be relative to the index.yaml
file or a URL to location. The URL can point to any domain and this is a feature leveraged by Helm users. For example, an index.yaml
file can be hosted on GitHub pages while the chart archives are hosted as GitHub releases. These are on different domain names and the index.yaml
file points to the other domain.
When a username and password were associated with a Helm repository the username and password were also passed on to other domains referenced in the index.yaml
file. This occurred when Helm went to retrieve a specific chart archive on the other domain.
Patches
This issue has been resolved in 3.6.1.
There is a slight behavior change to credential handling with regard to repositories. Usernames and passwords are only passed to the URL location of the Helm repository by default. The username and password are scoped to the scheme, host, and port of the Helm repository. To pass the username and password to other domains Helm may encounter when it goes to retrieve a chart, the new --pass-credentials
flag can be used. This flag restores the old behavior for a single repository as an opt-in behavior.
Workarounds
If you use a username and password for a Helm repository you can audit the Helm repository in order to check for another domain being used that could have received the credentials. In the index.yaml
file for that repository, look for another domain in the urls
list for the chart versions. If there is another domain found and that chart version was pulled or installed the credentials would have been passed on.
For more information
Helm's security policy is spelled out in detail in our SECURITY document.
Permalink: https://github.com/advisories/GHSA-56hp-xqp3-w2jfJSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTU2aHAteHFwMy13Mmpm
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: almost 3 years ago
Updated: 8 months ago
Identifiers: GHSA-56hp-xqp3-w2jf
References:
- https://github.com/helm/helm/security/advisories/GHSA-56hp-xqp3-w2jf
- https://github.com/helm/helm/commit/61d8e8c4a6f95540c15c6a65f36a6dd0a45e7a2f
- https://pkg.go.dev/vuln/GO-2022-0384
- https://nvd.nist.gov/vuln/detail/CVE-2021-32690
- https://github.com/advisories/GHSA-56hp-xqp3-w2jf
- https://github.com/helm/helm/releases/tag/v3.6.1
Blast Radius: 0.0
Affected Packages
go:helm.sh/helm/v3
Dependent packages: 1,580Dependent repositories: 5,000
Downloads:
Affected Version Ranges: < 3.6.1
Fixed in: 3.6.1
All affected versions: 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.4.0, 3.4.1, 3.4.2, 3.5.0, 3.5.1, 3.5.2, 3.5.3, 3.5.4, 3.6.0
All unaffected versions: 3.6.1, 3.6.2, 3.6.3, 3.7.0, 3.7.1, 3.7.2, 3.8.0, 3.8.1, 3.8.2, 3.9.0, 3.9.1, 3.9.2, 3.9.3, 3.9.4, 3.10.0, 3.10.1, 3.10.2, 3.10.3, 3.11.0, 3.11.1, 3.11.2, 3.11.3, 3.12.0, 3.12.1, 3.12.2, 3.12.3, 3.13.0, 3.13.1, 3.13.2, 3.13.3, 3.14.0