GHSA-7CHM-46WX-888M
`manager/gradle-wrapper`: Command injection could be possible via unescaped `distributionUrl`
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-7CHM-46WX-888M divulgada · CVSS 7.8 (GitHub) | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
When performing updates to the Gradle Wrapper, Renovate invokes the Gradle Wrapper to initiate the upgrade.
When self-hosting Renovate using the `binarySource=docker` https://docs.renovatebot.com/self-hosted-configuration/#binarysource mode and allowing the Gradle Wrapper to be invoked with [`allowedUnsafeExecutions=['gradleWrapper', ...]`](https://docs.renovatebot.com/self-hosted-configuration/#allowedunsafeexecutions), it was possible for a repository to specify a malicious `gradle/wrapper/gradle-wrapper.properties` for instance:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
# malicious
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip; cp /etc/passwd /tmp/passwdThis could allow for remote code execution as the Renovate user.
Impact
- You are running in `binarySource=docker`
https://docs.renovatebot.com/self-hosted-configuration/#binarysource - You have enabled the Gradle Wrapper to be invoked with [`allowedUnsafeExecutions=['gradleWrapper', ...]`](https://docs.renovatebot.com/self-hosted-configuration/#allowedunsafeexecutions)
- A repository has enabled Gradle's Dependency Verification
- A repository has a malicious `distributionUrl`
- A repository receives an update for the Gradle Wrapper
Patches
This is patched in Renovate 44.14.7 https://github.com/renovatebot/renovate/releases/tag/44.14.7.
Workarounds
Remove [`allowedUnsafeExecutions=['gradleWrapper', ...]`](https://docs.renovatebot.com/self-hosted-configuration/#allowedunsafeexecutions)
Notes
This relates to
A reminder that `binarySource=docker` https://docs.renovatebot.com/self-hosted-configuration/#binarysource is deprecated.
Renovate's next major release (45, no release date currently planned) will remove the `docker` CLI from our Docker images, and in Renovate 46 (no release date currently planned), we intend to remove `binarySource=docker` altogether.
If you are using this mode, and cannot migrate to `binarySource=install`, please provide feedback in this Discussion https://github.com/renovatebot/renovate/discussions/40742.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npmrenovate |
Corregida | 44.14.7 | — | 44.239.1 no afectada |
44.14.7Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/renovatebot/renovate/security/advisories/GHSA-7chm-46wx-888mLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
