/

CVE-2026-88886

Severity:

HIGH RISK

(7.8)

OS Command Injection (CWE-78) in Renovate Gradle Wrapper

CVE-2026-88886

Awaiting Analysis

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-78

Impact:

Arbitrary Command Execution

Severity:

HIGH RISK

(7.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A command injection vulnerability in Renovate's Gradle Wrapper manager allows a crafted distributionUrl in a repository's Gradle wrapper properties to influence command execution. The issue becomes risky in self-hosted deployments that use Docker as the binary source and permit Gradle Wrapper executions, potentially allowing arbitrary commands to run with Renovate's privileges.

Affected context

The vulnerability occurs in self-hosted Renovate deployments when the Gradle Wrapper manager reads a repository-controlled distributionUrl from gradle/wrapper/gradle-wrapper.properties and passes it to the Gradle Wrapper CLI without sufficient escaping. Exploitation depends on Docker-based binary execution being enabled and the deployment allowing the gradleWrapper unsafe execution type.

Exploit preconditions

  • Attack surface: Repository-provided Gradle Wrapper configuration processed by Renovate
  • Required access: Ability to submit or modify a repository that Renovate monitors
  • Deployment requirement: A self-hosted deployment configured with binarySource=docker
  • Policy requirement: gradleWrapper must be present in allowedUnsafeExecutions
  • Trigger point: Processing a Gradle Wrapper update
  • Why exploitation is possible: The distributionUrl value is not safely escaped before being used in a command-execution context

Why this happens

The underlying bug is an OS command injection caused by treating repository-controlled data as a command argument without applying context-appropriate escaping or strict validation. Shell metacharacters embedded in the Gradle distributionUrl can alter command interpretation when the value reaches the Gradle Wrapper execution path. This behavior maps to CWE-78: Improper Neutralization of Special Elements used in an OS Command, where untrusted input can affect the structure or meaning of an operating-system command.

Potential impact

  • Arbitrary commands may execute with the Renovate service user's privileges
  • The Renovate worker or container could be compromised
  • Repository credentials, tokens, or accessible secrets could be exposed
  • Attackers could alter generated updates or automation results
  • The host or connected services could face further compromise, depending on isolation and permissions

General mitigation guidance

Mitigation generally focuses on removing shell interpretation from data-driven execution paths and reducing trust in repository-controlled configuration.

Common defensive patterns include:

  • Pass validated values as structured process arguments rather than constructing shell command strings
  • Apply strict allowlisting and canonical validation to wrapper distribution URLs
  • Treat repository configuration as untrusted input, even when processed by automation
  • Disable unsafe Gradle Wrapper execution capabilities unless they are explicitly required
  • Run Renovate with a dedicated low-privilege identity and strong container isolation
  • Limit mounted credentials, network access, filesystem access, and container capabilities
  • Use read-only or ephemeral execution environments where practical

How teams detect issues like this

Organizations can look for:

  • Static analysis findings involving shell execution, string concatenation, or interpolation of repository-controlled values
  • Code review signals where URLs or configuration fields are passed to command runners without structured argument handling
  • Policy checks that flag broad unsafe-execution allowlists or unrestricted Gradle Wrapper processing
  • Runtime monitoring for unexpected child processes, shell interpreters, outbound connections, or file changes from Renovate workers
  • Audit records correlating Gradle Wrapper update jobs with unusual command activity

Automated code review and software composition analysis tools may help identify unsafe command construction patterns, but should be complemented by deployment-level controls.

Sources

SourceLink
github.comgithub.com/renovatebot/renovate/security/advisories/GHSA-7chm-46wx-888m
vulncheck.comvulncheck.com/advisories/renovate-before-44.14.7-command-injection-via-gradle-wrapper

Frequently asked

questions

It can be exploitable through a monitored repository when the affected self-hosted Renovate configuration permits the required Docker-based Gradle Wrapper execution. The attacker generally needs the ability to supply or modify the repository's Gradle Wrapper properties.

Authentication to Renovate itself is not necessarily required. The relevant prerequisite is authorization to place a crafted distributionUrl in a repository that the vulnerable automation processes.

Remove the Gradle Wrapper capability from unsafe execution policies when it is not essential, and ensure command execution uses validated structured arguments rather than shell-interpreted strings.

Treat repository metadata as untrusted, strictly validate URL-like configuration values, avoid shell construction, apply least privilege, and monitor automation workers for unexpected process activity.

Find out what's already
exploitable in your codebase.