Advisories

Renovate before 42.68.5 Remote Code Execution via Gradle Wrapper

Go Back
severity
medium
date
Affecting
  • renovate >= 32.124.0, < 42.68.5

  • renovate >= 32.124.0, < 42.68.5

  • renovate >= 32.124.0, < 42.68.5

  • renovate >= 32.124.0, < 42.68.5

  • renovate >= 0, < 13.3.0

  • renovate >= 0, < 13.3.0

  • renovate >= 0, < 13.3.0

  • renovate >= 0, < 13.3.0

  • renovate >= 0, < 13.3.0

  • renovate >= 0, < 13.3.0

  • renovate >= 0, < 13.3.0

  • renovate >= 0, < 13.3.0

  • renovate >= 0, < 13.3.0

CWE
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
CVSS
8.4
CVSS V4 Vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Credit
y4rvin
Description
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.

Ready to get Started?

Explore VulnCheck, a next-generation Cyber Threat Intelligence platform, which provides exploit and vulnerability intelligence to help you prioritize and remediate vulnerabilities that matter.
  • Vulnerability Prioritization
    Prioritize vulnerabilities that matter based on the threat landscape and defer vulnerabilities that don't.
  • Early Warning System
    Real-time alerting of changes in the vulnerability landscape so that you can take action before the attacks start.