CVE-2021-21303 Injection attack in Helm
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- KubernetesUbuntu
Description
Helm is open-source software which is essentially "The Kubernetes Package Manager". Helm is a tool for managing Charts. Charts are packages of pre-configured Kubernetes resources. In Helm from version 3.0 and before version 3.5.2, there a few cases where data loaded from potentially untrusted sources was not properly sanitized. When a SemVer in the version field of a chart is invalid, in some cases Helm allows the string to be used "as is" without sanitizing. Helm fails to properly sanitized some fields present on Helm repository index.yaml files. Helm does not properly sanitized some fields in the plugin.yaml file for plugins In some cases, Helm does not properly sanitize the fields in the Chart.yaml file. By exploiting these attack vectors, core maintainers were able to send deceptive information to a terminal screen running the helm command, as well as obscure or alter information on the screen. In some cases, we could send codes that terminals used to execute higher-order logic, like clearing a terminal screen. Further, during evaluation, the Helm maintainers discovered a few other fields that were not properly sanitized when read out of repository index files. This fix remedies all such cases, and once again enforces SemVer2 policies on version fields. All users of the Helm 3 should upgrade to the fixed version 3.5.2 or later. Those who use Helm as a library should verify that they either sanitize this data on their own, or use the proper Helm API calls to sanitize the data.
Upgrade path
18 packages: 10 fixed, 8 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/helm(Ubuntu 16.04) | = 1.9.1-1; = 1.9.2-1; All versions | No fix listed | No fix yet |
| ubuntu/helm(Ubuntu 18.04) | = 2.8.2-1; = 2.8.5-1; = 2.8.6-1; = 2.8.7-1 +2 more | No fix listed | No fix yet |
| ubuntu/helm(Ubuntu 20.04) | = 3.2-1; = 3.5.0-3; = 3.6.0-1; All versions | No fix listed | No fix yet |
| ubuntu/helm(Ubuntu 22.04) | = 3.7.0-2; = 3.8.0-1; All versions | No fix listed | No fix yet |
| ubuntu/helm(Ubuntu 24.04) | = 3.8.4-1; All versions | No fix listed | No fix yet |
| ubuntu/helm(Ubuntu 25.10) | = 3.8.4-2; = 4.0.3-1; All versions | No fix listed | No fix yet |
| ubuntu/helm(Ubuntu 26.04) | = 4.0.3-1; = 4.0.6-1; = 4.0.6-2; = 4.0.6-3 +1 more | No fix listed | No fix yet |
| ubuntu/helm(Ubuntu 26.10) | = 4.0.6-3; = 4.0.7-1; All versions | No fix listed | No fix yet |
| alpine/helm(Alpine v3.17) | >= 3.0.0, < 3.6.0-r0 | 3.6.0-r0 | Fixed |
| alpine/helm(Alpine v3.18) | >= 3.0.0, < 3.6.0-r0 | 3.6.0-r0 | Fixed |
| alpine/helm(Alpine v3.19) | >= 3.0.0, < 3.6.0-r0 | 3.6.0-r0 | Fixed |
| alpine/helm(Alpine v3.20) | >= 3.0.0, < 3.6.0-r0 | 3.6.0-r0 | Fixed |
| alpine/helm(Alpine v3.21) | >= 3.0.0, < 3.6.0-r0 | 3.6.0-r0 | Fixed |
| alpine/helm(Alpine v3.22) | >= 3.0.0, < 3.6.0-r0 | 3.6.0-r0 | Fixed |
| alpine/helm(Alpine v3.23) | >= 3.0.0, < 3.6.0-r0 | 3.6.0-r0 | Fixed |
| alpine/helm(Alpine v3.24) | >= 3.0.0, < 3.6.0-r0 | 3.6.0-r0 | Fixed |
| helm github.com/helm/helm | = > 3.0, < 3.5.2; >= 3.0.0, < 3.5.2 | 3.5.2 | Fixed |
| helm.sh/helm/v3(Go) | >= 3.0.0, < 3.5.2 | 3.5.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| helm.sh/helm/v3(Go) | >= 3.0.0, < 3.5.2 | 3.5.2 |
| helm github.com/helm/helm | >= 3.0.0, < 3.5.2 | 3.5.2 |
| ubuntu/helm(Ubuntu:22.04) | All versions | No fix listed |
| alpine/helm(Alpine:v3.17) | >= 3.0.0, < 3.6.0-r0 | 3.6.0-r0 |
| alpine/helm(Alpine:v3.18) | >= 3.0.0, < 3.6.0-r0 | 3.6.0-r0 |
| alpine/helm(Alpine:v3.19) | >= 3.0.0, < 3.6.0-r0 | 3.6.0-r0 |
| alpine/helm(Alpine:v3.20) | >= 3.0.0, < 3.6.0-r0 | 3.6.0-r0 |
| alpine/helm(Alpine:v3.21) | >= 3.0.0, < 3.6.0-r0 | 3.6.0-r0 |
| alpine/helm(Alpine:v3.22) | >= 3.0.0, < 3.6.0-r0 | 3.6.0-r0 |
| alpine/helm(Alpine:v3.23) | >= 3.0.0, < 3.6.0-r0 | 3.6.0-r0 |
| alpine/helm(Alpine:v3.24) | >= 3.0.0, < 3.6.0-r0 | 3.6.0-r0 |
| ubuntu/helm(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/helm(Ubuntu:26.04) | All versions | No fix listed |
| helm github.com/helm/helm | = > 3.0, < 3.5.2 | No fix listed |
| ubuntu/helm(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/helm(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/helm(Ubuntu:16.04) | = 1.9.1-1 | No fix listed |
| ubuntu/helm(Ubuntu:16.04) | = 1.9.2-1 | No fix listed |
| ubuntu/helm(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/helm(Ubuntu:18.04) | = 2.8.2-1 | No fix listed |
| ubuntu/helm(Ubuntu:18.04) | = 2.8.5-1 | No fix listed |
| ubuntu/helm(Ubuntu:18.04) | = 2.8.6-1 | No fix listed |
| ubuntu/helm(Ubuntu:18.04) | = 2.8.7-1 | No fix listed |
| ubuntu/helm(Ubuntu:18.04) | = 2.8.8-1 | No fix listed |
| ubuntu/helm(Ubuntu:20.04) | All versions | No fix listed |
Show 15 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/helm(Ubuntu:20.04) | = 3.2-1 | No fix listed |
| ubuntu/helm(Ubuntu:20.04) | = 3.5.0-3 | No fix listed |
| ubuntu/helm(Ubuntu:20.04) | = 3.6.0-1 | No fix listed |
| ubuntu/helm(Ubuntu:22.04) | = 3.7.0-2 | No fix listed |
| ubuntu/helm(Ubuntu:22.04) | = 3.8.0-1 | No fix listed |
| ubuntu/helm(Ubuntu:24.04) | = 3.8.4-1 | No fix listed |
| ubuntu/helm(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/helm(Ubuntu:25.10) | = 3.8.4-2 | No fix listed |
| ubuntu/helm(Ubuntu:25.10) | = 4.0.3-1 | No fix listed |
| ubuntu/helm(Ubuntu:26.10) | = 4.0.6-3 | No fix listed |
| ubuntu/helm(Ubuntu:26.10) | = 4.0.7-1 | No fix listed |
| ubuntu/helm(Ubuntu:26.04) | = 4.0.3-1 | No fix listed |
| ubuntu/helm(Ubuntu:26.04) | = 4.0.6-1 | No fix listed |
| ubuntu/helm(Ubuntu:26.04) | = 4.0.6-2 | No fix listed |
| ubuntu/helm(Ubuntu:26.04) | = 4.0.6-3 | No fix listed |
References
- github.com issue-tracking third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com vendor-advisory
- github.com product
- github.com issue-tracking release-notes third-party-advisory
- pkg.go.dev
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- security.alpinelinux.org vendor-advisory