5.3medium
Helm vulnerable to Denial of service through string value parsing
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.81% (higher than 58% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-6rx9-889q-vv2rBIT-HELM-2022-23524GO-2022-1167
Description
Helm is a tool for managing Charts, pre-configured Kubernetes resources. Versions prior to 3.10.3 are subject to Uncontrolled Resource Consumption, resulting in Denial of Service. Input to functions in the _strvals_ package can cause a stack overflow. In Go, a stack overflow cannot be recovered from. Applications that use functions from the _strvals_ package in the Helm SDK can have a Denial of Service attack when they use this package and it panics. This issue has been patched in 3.10.3. SDK users can validate strings supplied by users won't create large arrays causing significant memory usage before passing them to the _strvals_ functions.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| helm helm | < v3.10.3, from 3.0.0 before 3.10.3 | CVE List, NVD |
| helm.sh/helm/v3 (Go) | before 3.10.3 | GitHub Advisory Database, Go Vulnerability Database |
| helm (Bitnami) | from 3.0.0 before 3.10.3 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
Helm is a tool for managing Charts, pre-configured Kubernetes resources. Versions prior to 3.10.3 are subject to Uncontrolled Resource Consumption, resulting in Denial of Service. Input to functions in the _strvals_ package can cause a stack overflow. In Go, a stack overflow cannot be recovered from. Applications that use functions from the _strvals_ package in the Helm SDK can have a Denial of Service attack when they use this package and it panics. This issue has been patched in 3.10.3. SDK users can validate strings supplied by users won't create large arrays causing significant memory usage before passing them to the _strvals_ functions.
GitHub Advisory Database
Fuzz testing, by Ada Logics and sponsored by the CNCF, identified input to functions in the strvals package that can cause a stack overflow. In Go, a stack overflow cannot be recovered from. Applications that use functions from the strvals package in the Helm SDK can have a Denial of Service attack when they use this package and it panics.
Impact
The strvals package contains a parser that turns strings into Go structures. For example, the Helm client has command line flags like --set, --set-string, and others that enable the user to pass in strings that are merged into the values. The strvals package converts these strings into structures Go can work with. Some string inputs can cause array data structures to be created causing a stack overflow.
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 a stack overflow. Helm is not a long running service so the panic will not affect future uses of the Helm client.
Patches
This issue has been resolved in 3.10.3.
Workarounds
SDK users can validate strings supplied by users won't create large arrays causing significant memory usage before passing them to the strvals functions.
For more information
Helm's security policy is spelled out in detail in our SECURITY document.
Credits
Disclosed by Ada Logics in a fuzzing audit sponsored by CNCF.
Go Vulnerability Database
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 an error that cannot be recovered from.
The strvals package contains a parser that turns strings into Go structures. For example, the Helm client has command line flags like --set, --set-string, and others that enable the user to pass in strings that are merged into the values. The strvals package converts these strings into structures Go can work with. Some string inputs can cause can cause a stack overflow to be created causing a stack overflow error. Stack overflow errors cannot be recovered from.
The Helm Client will panic with input to --set, --set-string, and other value setting flags that causes a stack overflow. Helm is not a long running service so the error will not affect future uses of the Helm client.
NVD (es)
Helm es una herramienta para gestionar gráficos, recursos de Kubernetes preconfigurados. Las versiones anteriores a la 3.10.3 están sujetas a un consumo incontrolado de recursos, lo que resulta en una Denegación de Servicio (DoS). La entrada a funciones en _strvals_ package puede provocar un desbordamiento de la pila. En Go, no se puede recuperar un desbordamiento de pila. Las aplicaciones que usan funciones de _strvals_ package en Helm SDK pueden sufrir un ataque de Denegación de Servicio (DoS) cuando usan este paquete y entran en pánico. Este problema se solucionó en 3.10.3. Los usuarios del SDK pueden validar que las cadenas proporcionadas por los usuarios no creen matrices grandes que provoquen un uso significativo de la memoria antes de pasarlas a las _strvals_ functions.
References
| https://github.com/helm/helm/security/advisories/GHSA-6rx9-889q-vv2r | advisory, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-23524 | advisory, web | |
| https://github.com/helm/helm/commit/3636f6824757ff734cb265b8770efe48c1fb3737 | fix, web | |
| https://github.com/helm/helm | package | |
| https://pkg.go.dev/vuln/GO-2022-1167 | web | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-23524 changed 2025-04-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6rx9-889q-vv2r changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-1167 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2022-23524 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-HELM-2022-23524 changed 2026-09-08 | Apache-2.0 |