Bug 2265440 (CVE-2024-26147)

Summary: CVE-2024-26147 helm: Missing YAML Content Leads To Panic
Product: [Other] Security Response Reporter: Patrick Del Bello <pdelbell>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: amctagga, anjoseph, dfreiber, dkenigsb, drow, eglynn, fdeutsch, gparvin, jburrell, jjoyce, jprabhak, jschluet, jwendell, lbainbri, lhh, lsvaty, mburns, mgarciac, muagarwa, njean, odf-bz-bot, oramraz, owatkins, pahickey, pgrist, rcernich, rgarg, rhaigner, rhos-maint, sapillai, sidakwo, smullick, tnielsen, twalsh, vkumar, ybuenos
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Helm 3.14.2 Doc Type: ---
Doc Text:
A vulnerability was found in Helm. This flaw may lead to a panic when Helm parses index and plugin yaml files missing expected content, leading to a denial of service.
Story Points: ---
Clone Of:
: 2268195 (view as bug list) Environment:
Last Closed: 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: 2265441, 2265442, 2265445    
Bug Blocks: 2265439, 2268195    

Description Patrick Del Bello 2024-02-22 01:43:47 UTC
Helm is a package manager for Charts for Kubernetes. Versions prior to 3.14.2 contain an uninitialized variable vulnerability when Helm parses index and plugin yaml files missing expected content. When either an `index.yaml` file or a plugins `plugin.yaml` file were missing all metadata a panic would occur in Helm. In the Helm SDK, this is found when using the `LoadIndexFile` or `DownloadIndexFile` functions in the `repo` package or the `LoadDir` function in the `plugin` package. For the Helm client this impacts functions around adding a repository and all Helm functions if a malicious plugin is added as Helm inspects all known plugins on each invocation. This issue has been resolved in Helm v3.14.2. If a malicious plugin has been added which is causing all Helm client commands to panic, the malicious plugin can be manually removed from the filesystem. If using Helm SDK versions prior to 3.14.2, calls to affected functions can use `recover` to catch the panic.

https://github.com/helm/helm/commit/bb4cc9125503a923afb7988f3eb478722a8580af
https://github.com/helm/helm/security/advisories/GHSA-r53h-jv2g-vpx6

Comment 2 ybuenos 2024-03-06 15:42:06 UTC
*** Bug 2268195 has been marked as a duplicate of this bug. ***

Comment 3 errata-xmlrpc 2024-03-14 14:48:43 UTC
This issue has been addressed in the following products:

  Red Hat Advanced Cluster Management for Kubernetes 2.9 for RHEL 8

Via RHSA-2024:1328 https://access.redhat.com/errata/RHSA-2024:1328

Comment 4 errata-xmlrpc 2024-03-27 18:47:32 UTC
This issue has been addressed in the following products:

  Red Hat Advanced Cluster Security 4.3

Via RHSA-2024:1549 https://access.redhat.com/errata/RHSA-2024:1549

Comment 5 errata-xmlrpc 2024-03-28 20:50:08 UTC
This issue has been addressed in the following products:

  Red Hat Advanced Cluster Security 4.4

Via RHSA-2024:1570 https://access.redhat.com/errata/RHSA-2024:1570

Comment 6 errata-xmlrpc 2024-05-21 09:38:06 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.15

Via RHSA-2024:2865 https://access.redhat.com/errata/RHSA-2024:2865

Comment 10 errata-xmlrpc 2024-06-27 12:38:16 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift GitOps 1.12
  Red Hat OpenShift GitOps 1.12 - RHEL 9

Via RHSA-2024:4163 https://access.redhat.com/errata/RHSA-2024:4163

Comment 11 errata-xmlrpc 2024-07-03 11:29:57 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.16

Via RHSA-2024:4156 https://access.redhat.com/errata/RHSA-2024:4156

Comment 12 errata-xmlrpc 2024-07-18 13:37:44 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift GitOps 1.11

Via RHSA-2024:4626 https://access.redhat.com/errata/RHSA-2024:4626

Comment 13 errata-xmlrpc 2024-09-05 05:56:43 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.15

Via RHSA-2024:6013 https://access.redhat.com/errata/RHSA-2024:6013

Comment 16 errata-xmlrpc 2025-04-30 07:12:13 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.14

Via RHSA-2025:4177 https://access.redhat.com/errata/RHSA-2025:4177