Renovate
Renovate before 44.14.7 Command Injection via gradle-wrapper
Renovate is a dependency update automation tool. In versions before 44.14.7 (and in Mend Renovate CE/EE distributions before 15.4.0, and the mend-renovate-enterprise-edition Helm chart before 10.4.0), the manager/gradle-wrapper module does not escape the distributionUrl value read from a repository's gradle/wrapper/gradle-wrapper.properties file before invoking the Gradle Wrapper CLI. In self-hosted deployments configured with binarySource=docker and allowedUnsafeExecutions=['gradleWrapper', ...], a repository that supplies a crafted distributionUrl (for example, appending a shell metacharacter and command) can cause arbitrary commands to be executed as the Renovate user when Renovate processes a Gradle Wrapper update. The issue is fixed in Renovate 44.14.7; as a workaround, remove 'gradleWrapper' from allowedUnsafeExecutions.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 44.14.7
Fixed in 44.14.7
- < 15.4.0
Fixed in 15.4.0
- < 15.4.0
Fixed in 15.4.0
- < 15.4.0
Fixed in 15.4.0
- < 15.4.0
Fixed in 15.4.0
- < 10.4.0
Fixed in 10.4.0
Mitigation
Upgrade renovate to 44.14.7 or later.
Upgrade renovate-ce to 15.4.0 or later.
Upgrade renovate-ee-server to 15.4.0 or later.
Upgrade renovate-ee-worker to 15.4.0 or later.
Upgrade mend-renovate-ce to 15.4.0 or later.
Upgrade mend-renovate-enterprise-edition to 10.4.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.