CVE-2022-23526 Helm contains Denial of service through schema file

Medium 5.3 Published Updated

A null pointer dereference in Helm's chartutil package allows attackers to cause a denial of service via malicious schema files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-23526?

CVE-2022-23526 is a medium-severity vulnerability in helm, published on 15 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Helm is a tool for managing Charts, pre-configured Kubernetes resources. Versions prior to 3.10.3 are subject to NULL Pointer Dereference in the_chartutil_ package that can cause a segmentation violation. The _chartutil_ package contains a parser that loads a JSON Schema validation file. For example, the Helm client when rendering a chart will validate its values with the schema file. The _chartutil_ package parses the schema file and loads it into structures Go can work with. Some schema files can cause array data structures to be created causing a memory violation. Applications that use the _chartutil_ package in the Helm SDK to parse a schema file can suffer a Denial of Service when that input causes a panic that cannot be recovered from. Helm is not a long running service so the panic will not affect future uses of the Helm client. This issue has been patched in 3.10.3. SDK users can validate schema files that are correctly formatted before passing them to the _chartutil_ functions.

Weakness: CWE-476

Which versions are affected by CVE-2022-23526?

4 open source packages ship an affected version, including helm.sh/helm/v3 and helm. It affects 1 product.

PackageAffectedFixed in
helm.sh/helm/v3 GoAll versions3.10.3
helm.sh/helm/v3 GoAll versions3.10.3
helm.sh/helm/v3 GoAll versions3.10.3
helm BitnamiFrom 3.0.03.10.3

Products include Helm Helm.

How do I fix CVE-2022-23526?

Upgrade helm.sh/helm/v3 to 3.10.3 or later.

Is CVE-2022-23526 being exploited?

There is no known exploitation of CVE-2022-23526 in the wild and no public exploit code.

Sources

Also known as AZL-11656, BIT-helm-2022-23526, CLEANSTART-2026-DR45541, GHSA-67fx-wx78-jx33, GO-2022-1166.

Is CVE-2022-23526 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free