CVE-2022-23525: Helm vulnerable to Denial of service via NULL Pointer Dereference
A flaw was found in Helm. Applications that use the repo package in Helm SDK to parse an index file may suffer a denial of service when that input causes a panic that cannot be recovered from. The Helm Client will panic with an index file that causes a memory violation panic.
Other sources
Fuzz testing, by Ada Logics and sponsored by the CNCF, identified input to functions in the repo package that can cause a segmentation violation. Applications that use functions from the repo package in the Helm SDK can have a Denial of Service attack when they use this package and it panics.
Impact
The repo package contains a handler that processes the index file of a repository. For example, the Helm client adds references to chart repositories where charts are managed. The repo package parses the index file of the repository and loads it into structures Go can work with. Some index files can cause array data structures to be created causing a memory violation.
Applications that use the repo package in the Helm SDK to parse an index file can suffer a Denial of Service when that input causes a panic that cannot be recovered from.
The Helm Client will panic with an index file that causes a memory violation panic. 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 index files that are correctly formatted before passing them to the repo 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.
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 repopackage. The repo package contains a handler that processes the index file of a repository. For example, the Helm client adds references to chart repositories where charts are managed. The repo package parses the index file of the repository and loads it into structures Go can work with. Some index files can cause array data structures to be created causing a memory violation. Applications that use the repo package in the Helm SDK to parse an index file can suffer a Denial of Service when that input causes a panic that cannot be recovered from. The Helm Client will panic with an index file that causes a memory violation panic. 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 index files that are correctly formatted before passing them to the repo functions.
Affected Software
Remediation
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2022-23525?
CVE-2022-23525 is a vulnerability in Helm that can cause a Denial of Service (DoS) attack.
How does CVE-2022-23525 affect software?
CVE-2022-23525 affects applications that use the `_repo_` package in Helm SDK and can lead to a DoS attack.
What is the severity of CVE-2022-23525?
CVE-2022-23525 has a severity rating of 7.5 (High).
What is the remedy for CVE-2022-23525?
The remedy for CVE-2022-23525 is to upgrade to Helm version 3.10.3.
Where can I find more information about CVE-2022-23525?
More information about CVE-2022-23525 can be found at the following references: [CVE-2022-23525](https://www.cve.org/CVERecord?id=CVE-2022-23525), [NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-23525), [GitHub commit](https://github.com/helm/helm/commit/638ebffbc2e445156f3978f02fd83d9af1e56f5b), [GitHub security advisory](https://github.com/helm/helm/security/advisories/GHSA-53c4-hhmh-vw5q), [Red Hat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=2154202), [Red Hat Advisory](https://access.redhat.com/errata/RHSA-2023:1646).