CVE-2026-25063 gradle-completion has a Bash command injection issue
Attackers can execute arbitrary code via malicious Gradle build files when users trigger Bash tab completion, requiring an upgrade to gradle-completion.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-25063?
CVE-2026-25063 is a high-severity command injection vulnerability in gradle-completion, published on 29 Jan 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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`.
Which versions are affected by CVE-2026-25063?
It affects 1 product.
Products include Gradle Gradle-Completion.
How do I fix CVE-2026-25063?
No fix has been published for CVE-2026-25063 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-25063 being exploited?
There is no known exploitation of CVE-2026-25063 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-25063, GHSA-qggc-44r3-cjgv, UBUNTU-CVE-2026-25063.