CVE-2026-25063 Details
Description
gradle-completion provides Bash and Zsh completion support for Gradle. A command injection vulnerability was found in gradle-completion up to and including 9.3.0 that allows arbitrary code execution when a user triggers Bash tab completion in a project containing a malicious Gradle build file. The `gradle-completion` script for Bash fails to adequately sanitize Gradle task names and task descriptions, allowing command injection via a malicious Gradle build file when the user completes a command in Bash (without them explicitly running any task in the build). For example, given a task description that includes a string between backticks, then that string would be evaluated as a command when presenting the task description in the completion list. While task execution is the core feature of Gradle, this inherent execution may lead to unexpected outcomes. The vulnerability does not affect zsh completion. The first patched version is 9.3.1. As a workaround, it is possible and effective to temporarily disable bash completion for Gradle by removing `gradle-completion` from `.bashrc` or `.bash_profile`.
A command injection vulnerability allowing arbitrary code execution has been identified in the gradle-completion tool for Bash, in versions through 9.3.0. This vulnerability arises when a user activates Bash tab completion in a project with a malicious Gradle build file. The issue stems from the gradle-completion script not properly sanitizing Gradle task names and descriptions. As a result, an injected command could be executed when the task description is displayed in the completion list. While executing tasks is a fundamental aspect of Gradle, this vulnerability could lead to unintended consequences. Notably, this issue does not impact Zsh completion.
Users can upgrade to gradle-completion version 9.3.1 or later to address this vulnerability. Alternatively, the gradle-completion tool can be temporarily disabled in Bash by removing it from the .bashrc or .bash_profile files.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
| CWE-157 | Failure to Sanitize Paired Delimiters | [email protected] |
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gradle gradle-completion | <= 9.3.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 12, 2026 | Initial Analysis | [email protected] |
| Feb 10, 2026 | CVE Modified | CVE |
| Jan 29, 2026 | New CVE Received | [email protected] |