Bug 2154202 (CVE-2022-23525)

Summary: CVE-2022-23525 helm: Denial of service through through repository index file
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aazores, abenaiss, amackenz, amasferr, chazlett, dfreiber, eaguilar, ebaron, gparvin, jburrell, jkang, jpallich, jwon, lball, matzew, mkudlej, njean, ocs-bugs, owatkins, pahickey, pjindal, rhuss, rogbas, sfroberg, stcannon, teagle, tjochec, tnielsen, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: helm.sh/helm/v3 3.10.3 Doc Type: If docs needed, set a value
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-18 04:43:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2155941    
Bug Blocks: 2154131    

Description Avinash Hanwate 2022-12-16 09:41:50 UTC
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 _repo_package. 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.

https://github.com/helm/helm/commit/638ebffbc2e445156f3978f02fd83d9af1e56f5b
https://github.com/helm/helm/security/advisories/GHSA-53c4-hhmh-vw5q

Comment 14 errata-xmlrpc 2023-04-11 07:54:57 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.12

Via RHSA-2023:1646 https://access.redhat.com/errata/RHSA-2023:1646

Comment 16 errata-xmlrpc 2023-05-17 22:31:10 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.13

Via RHSA-2023:1326 https://access.redhat.com/errata/RHSA-2023:1326

Comment 17 Product Security DevOps Team 2023-05-18 04:43:47 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-23525

Comment 18 errata-xmlrpc 2023-10-31 12:54:21 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.14

Via RHSA-2023:5006 https://access.redhat.com/errata/RHSA-2023:5006