CVE-2024-26147
ADVISORY - githubSummary
A Helm contributor discovered uninitialized variable vulnerability when Helm parses index and plugin yaml files missing expected content.
Impact
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.
Patches
This issue has been resolved in Helm v3.14.2.
Workarounds
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.
For more information
Helm's security policy is spelled out in detail in our SECURITY document.
Credits
Disclosed by Jakub Ciolek at AlphaSense.
Common Weakness Enumeration (CWE)
Use of Uninitialized Variable
GitHub
CVSS SCORE
8.7highPackage | Type | OS Name | OS Version | Affected Ranges | Fix Versions |
---|---|---|---|---|---|
helm.sh/helm/v3 | golang | - | - | <3.14.2 | 3.14.2 |
CVSS:4 Severity and metrics
The CVSS metrics represent different qualitative aspects of a vulnerability that impact the overall score, as defined by the CVSS Specification.
The vulnerable component is bound to the network stack, but the attack is limited at the protocol level to a logically adjacent topology. This can mean an attack must be launched from the same shared physical (e.g., Bluetooth or IEEE 802.11) or logical (e.g., local IP subnet) network, or from within a secure or otherwise limited administrative domain (e.g., MPLS, secure VPN to an administrative network zone). One example of an Adjacent attack would be an ARP (IPv4) or neighbor discovery (IPv6) flood leading to a denial of service on the local LAN segment (e.g., CVE-2013-6014).
Specialized access conditions or extenuating circumstances do not exist. An attacker can expect repeatable success when attacking the vulnerable component.
The successful attack does not depend on the deployment and execution conditions of the vulnerable system. The attacker can expect to be able to reach the vulnerability and execute the exploit under all or most instances of the vulnerability.
The attacker is unauthenticated prior to attack, and therefore does not require any access to settings or files of the vulnerable system to carry out an attack.
The vulnerable system can be exploited without interaction from any human user, other than the attacker. Examples include: a remote attacker is able to send packets to a target system a locally authenticated attacker executes code to elevate privileges.
There is no loss of confidentiality within the Vulnerable System.
There is no loss of confidentiality within the Subsequent System or all confidentiality impact is constrained to the Vulnerable System.
There is no loss of integrity within the Vulnerable System.
There is no loss of integrity within the Subsequent System or all integrity impact is constrained to the Vulnerable System.
There is a total loss of availability, resulting in the attacker being able to fully deny access to resources in the Vulnerable System; this loss is either sustained (while the attacker continues to deliver the attack) or persistent (the condition persists even after the attack has completed). Alternatively, the attacker has the ability to deny some availability, but the loss of availability presents a direct, serious consequence to the Vulnerable System (e.g., the attacker cannot disrupt existing connections, but can prevent new connections; the attacker can repeatedly exploit a vulnerability that, in each instance of a successful attack, leaks a only small amount of memory, but after repeated exploitation causes a service to become completely unavailable).
There is no impact to availability within the Subsequent System or all availability impact is constrained to the Vulnerable System.
NIST
CVSS SCORE
7.5highUbuntu
3.9
CVSS SCORE
7.5mediumGoLang
-
Bitnami
BIT-helm-2024-26147
3.9
CVSS SCORE
7.5highRed Hat
3.9
CVSS SCORE
7.5mediumChainguard
CGA-2q69-4vcm-hm2w
-
Chainguard
CGA-36wv-76w4-qx9x
-
Chainguard
CGA-3jg2-5m28-f2v4
-
Chainguard
CGA-3w9h-rhf8-v43c
-
Chainguard
CGA-47c6-49xx-rr4p
-
Chainguard
CGA-4v62-mgwp-fff2
-
Chainguard
CGA-6fhm-qph5-fvrj
-
Chainguard
CGA-6qr5-2pq4-4j8h
-
Chainguard
CGA-76fg-85mc-8728
-
Chainguard
CGA-7hpm-5vwh-wpjm
-
Chainguard
CGA-87cp-vv6g-953p
-
Chainguard
CGA-9p49-67j6-3fwx
-
Chainguard
CGA-cffv-prrf-jc52
-
Chainguard
CGA-crc8-wfgr-263v
-
Chainguard
CGA-cx4x-4xcg-64q6
-
Chainguard
CGA-fjmw-2v4h-gmw6
-
Chainguard
CGA-gwcx-28j8-h2f5
-
Chainguard
CGA-gxjr-qgvh-8rp5
-
Chainguard
CGA-p75f-jjr2-x29v
-
Chainguard
CGA-p8m8-xcqf-5mxr
-
Chainguard
CGA-q6xc-h255-cg48
-
Chainguard
CGA-r8j4-mfm2-9m2r
-
Chainguard
CGA-rp6f-6683-234c
-
Chainguard
CGA-w69x-4pr7-3qww
-
Chainguard
CGA-wqx2-j5x2-gmhg
-
Chainguard
CGA-x234-xj6j-25f6
-
Chainguard
CGA-xg36-qjh4-wc7w
-