Vulnerability · Published Feb 8, 2023 · Assigned by GitHub_M

CVE-2023-25165getHostByName Function Information Disclosure

Medium 4.3

In plain English

A medium-severity information exposure in helm from helm. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)0.8%top 44.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gohelm.sh/helm/v33.11.1GHSA-pwcw-6f5g-gxf8
Gohelm.sh/helm/v33.11.1GO-2023-1547

Affected products (as reported)

VendorProductVersions
helm helm >= 3.0.0, < 3.11.1

Weakness: CWE-200 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

References