CVE-2026-25063: gradle-completion · OS Command Injection
Affects gradle-completionSource CVE Database V5
Not known to be exploited · CVSS 8.3 High : upgrade to 9.3.1 soon.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 55% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 9.3.1
CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:A/VC:H/VI:H/VA:H/SC:N/SI:H/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 29 Jan 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade gradle-completion and gradle/gradle-completion to 9.3.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| gradlegradle-completion | Affected
| Fixed in
|
GitHubgradle/gradle-completionpkg:github/gradle/gradle-completionOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. Upgrade gradle-completion to version 9.3.1 or later immediately to apply the official patch that properly sanitizes task names and descriptions. 2. As an interim measure, disable Bash completion for Gradle by removing or commenting out the gradle-completion script invocation in user shell initialization files such as .bashrc or .bash_profile. 3. Educate developers and build engineers about the risks of opening or working in projects with untrusted or unknown Gradle build files, especially when using Bash completion. 4. Implement strict access controls and code review policies to prevent malicious Gradle build files from entering source repositories or build environments. 5. Monitor developer workstations and CI/CD systems for unusual command execution or shell activity that could indicate exploitation attempts. 6. Consider restricting local user permissions and employing endpoint detection and response (EDR) solutions to detect anomalous behavior related to shell command execution. 7. Encourage use of alternative shells like Zsh for Gradle completion, as this vulnerability does not affect Zsh completion scripts. 8. Regularly audit and update development tools and dependencies to minimize exposure to known vulnerabilities.
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`.
References
- github.com/gradle/gradle-completion/security/advisories/GHSA-qggc-44r3-cjgv (opens in a new tab)
- github.com/gradle/gradle-completion/commit/ecacc32bb882210e5d37cd79a74de1af0d0ccad7 (opens in a new tab)
- vicarius.io/vsociety/posts/cve-2026-25063-detection-script-command-injection-vulnerability-in-bash-completion-component (opens in a new tab)
- vicarius.io/vsociety/posts/cve-2026-25063-mitigation-script-command-injection-vulnerability-in-bash-completion-component (opens in a new tab)