Renovate
Renovate before 42.68.5 Remote Code Execution via Gradle Wrapper
Renovate versions >=32.124.0 and before 42.68.5 (and Mend renovate-ce/renovate-ee before 13.3.0) contain a command injection vulnerability in Gradle Wrapper artifact handling. When Renovate processes Gradle Wrapper updates, it invokes a wrapper update command via a shell (e.g. /bin/sh -c ... ./gradlew :wrapper --gradle-distribution-url <value>). If an attacker supplies a malicious gradle-wrapper.properties whose distributionUrl contains shell command substitution syntax such as $(...), the shell evaluates it before Gradle parses the URL, resulting in arbitrary command execution in the Renovate runtime. Exploitation requires the attacker to introduce the malicious file into a repository that Renovate scans; the issue occurs even when allowScripts is disabled.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 32.124.0, < 42.68.5
Fixed in 42.68.5
- < 13.3.0
Fixed in 13.3.0
- < 13.3.0
Fixed in 13.3.0
- < 13.3.0
Fixed in 13.3.0
Mitigation
Upgrade renovate to 42.68.5 or later.
Upgrade renovate-ce to 13.3.0 or later.
Upgrade renovate-ee-server to 13.3.0 or later.
Upgrade renovate-ee-worker to 13.3.0 or later.
References
- Vendor advisory github.com/renovatebot/renovate/security/advis…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.