Vulnerability · Published Dec 15, 2022 · Assigned by GitHub_M
CVE-2022-23526Helm contains Denial of service through schema file
Medium 5.3
In plain English
A medium-severity null pointer dereference in helm from helm. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | helm.sh/helm/v3 | 3.10.3 | GHSA-67fx-wx78-jx33 |
| Go | helm.sh/helm/v3 | 3.10.3 | GO-2022-1166 |
Affected products (as reported)
Weakness: CWE-476 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://github.com/helm/helm/security/advisories/GHSA-67fx-wx78-jx33 x_refsource_CONFIRM
- https://github.com/helm/helm/commit/bafafa8bb1b571b61d7a9528da8d40c307dade3d x_refsource_MISC