CVE-2021-21303
Injection attack in Helm
Also known as BIT-helm-2021-21303, GHSA-c38g-469g-cmgx, GO-2022-1040
Mitigation
- Upgrade helm.sh/helm/v3 to 3.5.2 or later.
Who should check
- Projects that depend on Go package helm.sh/helm/v3 (>= 3.0.0, < 3.5.2)
- Anyone running helm > 3.0, < 3.5.2
Vulnerability facts
- Affected
- helm.sh/helm/v3 >= 3.0.0, < 3.5.2
- Fixed in
- 3.5.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.9 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- EPSS
- 1.09% chance of exploitation in 30 days (percentile 65, 2026-11-26)
- CWE
- CWE-74
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go helm.sh/helm/v3 | >= 3.0.0, < 3.5.2 | 3.5.2 | osv |
| helm | > 3.0, < 3.5.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-21303. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-21303.md Affected: helm.sh/helm/v3 >= 3.0.0, < 3.5.2 Fixed in: 3.5.2 Steps: 1. Search this machine and project for helm.sh/helm/v3 (Go), helm: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2021-21303 being exploited?
There is no confirmed exploitation: CVE-2021-21303 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.09% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-21303?
Medium: CVSS 5.9 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2021-21303?
helm.sh/helm/v3 >= 3.0.0, < 3.5.2.
Is there a fix for CVE-2021-21303?
Yes. Fixed in 3.5.2. Upgrade helm.sh/helm/v3 to 3.5.2 or later.
How do I check if I'm affected by CVE-2021-21303?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.