Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| renovatebot / renovate | affected 0 before 44.14.7; unaffected 44.14.7 |
| mend / renovate-ce | affected 0 before 15.4.0; unaffected 15.4.0 |
| mend / renovate-ee-server | affected 0 before 15.4.0; unaffected 15.4.0 |
| mend / renovate-ee-worker | affected 0 before 15.4.0; unaffected 15.4.0 |
| mend / mend-renovate-ce | affected 0 before 15.4.0; unaffected 15.4.0 |
| mend / mend-renovate-enterprise-edition | affected 0 before 10.4.0; unaffected 10.4.0 |
CWE
CWE-78
References
- https://github.com/renovatebot/renovate/security/advisories/GHSA-7chm-46wx-888m
- https://www.vulncheck.com/advisories/renovate-before-44.14.7-command-injection-via-gradle-wrapper
ADP enrichment
No English description supplied.
No references supplied.