You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Renovate vulnerable to arbitrary command injection via helmv3 manager and malicious Chart.yaml file
Moderate severity
GitHub Reviewed
Published
Jan 13, 2026
in
renovatebot/renovate
•
Updated Jan 13, 2026
The user-provided string repository in the helmv3 manager is appended to the helm registry login command without proper sanitization.
Details
Adversaries can provide a maliciously crafted Chart.yaml in conjunctions with a tweaked Renovate configuration file to trick Renovate to execute arbitrary code.
The value for both uses of the repository variable in lib/modules/manager/helmv3/common.ts are not being escaped using the quote function from the shlex package.
This lack of proper sanitization has been present in the product since version 31.51.0 (renovatebot/renovate@f372a68), released on January 24 of 2022.
PoC
Create a git repo with the following content:
renovate.json5:
{$schema: "https://docs.renovatebot.com/renovate-schema.json",customDatasources: {always: {defaultRegistryUrlTemplate: "https://docs.renovatebot.com/search/search_index.json",transformTemplates: ['{"releases":[{"version":"99999.0.0"}]}'],},},// Register any credentials to make the manager attempt to use basic auth for the Helm registryhostRules: [{matchHost: "charts.bitnami.com",username: "un",password: "pw",},],packageRules: [{// Target of the daymatchManagers: ["helmv3"],// Don't consult the actual bitnami reporegistryUrls: [],// But still, trick the manager in believing there's a new versionoverrideDatasource: "custom.always",},],}
Run Renovate against the repo from a Docker container. Notice that the process terminates without reporting "Repository finished", because the ACI vulnerability allowed for execution of kill 1, terminating the root process of the container.
Note
This specific proof of concept was made a lot simpler with the introduction of the overrideDatasource configuration since version 38.120.0 (renovatebot/renovate@a70a6a3), released on October 12 of 2024, because it means that there is no more need for a proper response from an actual Helm registry on the malformed repository URL.
Impact
This is a Arbitrary Command Injection vulnerability, allowing those with write access on repositories configured to be scanned by Renovate to cause the execution of commands of their choice on the machine that runs Renovate.
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
Learn more on MITRE.
Summary
The user-provided string
repositoryin thehelmv3manager is appended to thehelm registry logincommand without proper sanitization.Details
Adversaries can provide a maliciously crafted
Chart.yamlin conjunctions with a tweaked Renovate configuration file to trick Renovate to execute arbitrary code.The value for both uses of the
repositoryvariable in lib/modules/manager/helmv3/common.ts are not being escaped using thequotefunction from theshlexpackage.This lack of proper sanitization has been present in the product since version 31.51.0 (renovatebot/renovate@f372a68), released on January 24 of 2022.
PoC
renovate.json5:Chart.yaml:Chart.lock:kill 1, terminating the root process of the container.Note
This specific proof of concept was made a lot simpler with the introduction of the
overrideDatasourceconfiguration since version 38.120.0 (renovatebot/renovate@a70a6a3), released on October 12 of 2024, because it means that there is no more need for a proper response from an actual Helm registry on the malformed repository URL.Impact
This is a Arbitrary Command Injection vulnerability, allowing those with write access on repositories configured to be scanned by Renovate to cause the execution of commands of their choice on the machine that runs Renovate.
References