GitHub Advisoryadvisory · Go
GHSA-pwcw-6f5g-gxf8 Helm vulnerable to information disclosure via getHostByName Function
MEDIUM
Official page ↗
- Aliases
- CVE-2023-25165
- Ecosystem
- Go
- Packages
- helm.sh/helm/v3
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Weaknesses
- CWE-200
- Reviewed
- 2023-02-08
Affected packages
• Go helm.sh/helm/v3: >= 3.0.0, < 3.11.1 → fixed in 3.11.1
Description
A Helm contributor discovered an information disclosure vulnerability using the `getHostByName` template function.
Impact
`getHostByName` is a Helm template function introduced in Helm v3. The function is able to accept a hostname and return an IP address for that hostname. To get the IP address the function performs a DNS lookup. The DNS lookup happens when used with `helm install|upgrade|template` or when the Helm SDK is used to render a chart.
Information passed into the chart can be disclosed to the DNS servers used to lookup the IP address. For example, a malicious chart could inject `getHostByName` into a chart in order to disclose values to a malicious DNS server.
Patches
The issue has been fixed in Helm 3.11.1.
Workarounds
Prior to using a chart with Helm verify the `getHostByName` function is not being used in a template to disclose any information you do not want passed to DNS servers.
For more information
Helm's security policy is spelled out in detail in our SECURITY document.
Credits
Disclosed by Philipp Stehle at SAP.
Related
Alias · CVE (1)
- CVE-2023-25165 Helm is a tool that streamlines installing and managing Kubernetes applications.`getHostByName` is a Helm template function introduced in… vulnerability
Weakness · CWE (1)
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness
References
- https://github.com/helm/helm/security/advisories/GHSA-pwcw-6f5g-gxf8 web
- https://nvd.nist.gov/vuln/detail/CVE-2023-25165 advisory
- https://github.com/helm/helm/commit/293b50c65d4d56187cd4e2f390f0ada46b4c4737 web
- https://github.com/helm/helm/commit/5abcf74227bfe8e5a3dbf105fe62e7b12deb58d2 web
- https://github.com/helm/helm package
- https://pkg.go.dev/vuln/GO-2023-1547 web