CVE-2022-36055 Denial of service in Helm

Medium 6.5 Published Updated

Attackers can cause a denial of service in Helm by providing specific input to value-setting flags, triggering an unrecoverable out-of-memory panic.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-36055?

CVE-2022-36055 is a medium-severity denial of service vulnerability in helm, published on 1 Sep 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Helm is a tool for managing Charts. Charts are packages of pre-configured Kubernetes resources. Fuzz testing, provided by the CNCF, identified input to functions in the _strvals_ package that can cause an out of memory panic. The _strvals_ package contains a parser that turns strings in to Go structures. The _strvals_ package converts these strings into structures Go can work with. Some string inputs can cause array data structures to be created causing an out of memory panic. Applications that use the _strvals_ package in the Helm SDK to parse user supplied input can suffer a Denial of Service when that input causes a panic that cannot be recovered from. The Helm Client will panic with input to `--set`, `--set-string`, and other value setting flags that causes an out of memory panic. Helm is not a long running service so the panic will not affect future uses of the Helm client. This issue has been resolved in 3.9.4. SDK users can validate strings supplied by users won't create large arrays causing significant memory usage before passing them to the _strvals_ functions.

Weakness: CWE-770, CWE-400

Which versions are affected by CVE-2022-36055?

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.9.4
helm.sh/helm/v3 GoAll versions3.9.4
helm.sh/helm/v3 GoAll versions3.9.4
helm BitnamiFrom 3.0.03.9.4
Linux distribution packages (1)
helm openSUSE:TumbleweedAll versions3.9.4-2.1

Products include Helm Helm.

How do I fix CVE-2022-36055?

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

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2022-36055 being exploited?

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

Sources

Also known as AZL-10856, BIT-helm-2022-36055, CLEANSTART-2026-BN36919, GHSA-7hfp-qfw3-5jxh, GO-2022-0962, openSUSE-SU-2024:12323-1.

Is CVE-2022-36055 in your software?

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

Check your SBOMs for free