CVE-2023-25165 getHostByName Function Information Disclosure
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- Kubernetes
Description
Helm is a tool that streamlines installing and managing Kubernetes applications.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. The issue has been fixed in Helm 3.11.1. 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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| helm github.com/helm/helm | = >= 3.0.0, < 3.11.1; >= 3.0.0, < 3.11.1 | 3.11.1 | Fixed |
| helm.sh/helm/v3(Go) | < 3.11.1; >= 3.0.0, < 3.11.1 | 3.11.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| helm.sh/helm/v3(Go) | >= 3.0.0, < 3.11.1 | 3.11.1 |
| helm.sh/helm/v3(Go) | < 3.11.1 | 3.11.1 |
| helm github.com/helm/helm | = >= 3.0.0, < 3.11.1 | No fix listed |
| helm github.com/helm/helm | >= 3.0.0, < 3.11.1 | 3.11.1 |
References
- https://github.com/helm/helm/security/advisories/GHSA-pwcw-6f5g-gxf8 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/helm/helm/commit/5abcf74227bfe8e5a3dbf105fe62e7b12deb58d2 patch
- github.com patch
- pkg.go.dev
- github.com
- github.com product